Aaargh, it’s back. The wicd service is still disabled and I’m looking this in the face again:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
So OK, as requested, I set the loglevel to 0. A little more clarification is always helpful so I’ll provide it. I find the config in:
/var/www/nextcloud/config/config.php
loglevel was 2 and I set it 0. These are documented as:
- 0: DEBUG: All activity; the most detailed logging.
- 1: INFO: Activity such as user logins and file activities, plus warnings, errors, and fatal errors.
- 2: WARN: Operations succeed, but with warnings of potential problems, plus errors and fatal errors.
- 3: ERROR: An operation fails, but other services and operations continue, plus fatal errors.
- 4: FATAL: The server stops.
I restart Apache:
sudo systemctl restart apache2
I find the log file in:
/media/USBdrive/ncdata/nextcloud.log
given in config.php: 'datadirectory' => '/media/USBdrive/ncdata',
Then I reload my Nextcloud page in the browser. Same error.
But it’s now 21:50 and:
cirrus@nephele:/media/USBdrive/ncdata $ ll nextcloud.log
-rw-r----- 1 www-data www-data 54938221 Dec 3 18:37 nextcloud.log
cirrus@nephele:/media/USBdrive/ncdata $ date
Tue 3 Dec 21:51:40 AEDT 2019
So ZERO degugging output or any output.
To be 100% clear on what I’m getting:
$ wget --server-response https://mynextcloud.server
--2019-12-03 21:59:19-- https://mynextcloud.server/
Resolving mynextcloud.server (mynextcloud.server)... MyIP
Connecting to mynextcloud.server (mynextcloud.server)|MyIP|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 500 Internal Server Error
Date: Tue, 03 Dec 2019 10:59:19 GMT
Server: Apache
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: none
X-XSS-Protection: 1; mode=block
Upgrade: h2,h2c
Content-Length: 289
Content-Type: text/plain; charset=utf-8
2019-12-03 21:59:19 ERROR 500: Internal Server Error.
and there remains zero useful output in any log anywhere. Note:
cirrus@nephele:~ $ touch /tmp/foobar
cirrus@nephele:~ $ wget --server-response https://mynextcloud.server
--2019-12-03 21:59:19-- https://mynextcloud.server/
Resolving mynextcloud.server (mynextcloud.server)... MyIP
Connecting to mynextcloud.server (mynextcloud.server)|MyIP|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 500 Internal Server Error
Date: Tue, 03 Dec 2019 10:59:19 GMT
Server: Apache
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
Referrer-Policy: no-referrer
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-Robots-Tag: none
X-XSS-Protection: 1; mode=block
Upgrade: h2,h2c
Content-Length: 289
Content-Type: text/plain; charset=utf-8
2019-12-03 21:59:19 ERROR 500: Internal Server Error.
cirrus@nephele:~ $ sudo find / -regextype posix-extended -regex "/(sys|srv|proc|dev)" -prune -o -newer /tmp/foobar
/run/sudo/ts/cirrus
/dev
/sys
/var/log/apache2/other_vhosts_access.log
/var/log/apache2/error.log
/var/log/apache2/nc-error.log
/var/log/apache2/nc-access.log
/var/log/auth.log
/var/log/syslog
/proc
/tmp
/tmp/21184a148693539f45e8857900db59f6/var/www/nextcloud/config
/tmp/21184a148693539f45e8857900db59f6/var/www/nextcloud/config/config.php.bin
/srv
remembering (and having double checked) that the apache2 logs which are listed contain zero useful information. The access request appears and the error logs are just full of Authorization requests as I have Apache in debug mode too.