Hello everyone,
My nextcloudpi server is suddenly unreachable (gui in browser, both locally and from outside LAN) but i can ssh into it. No config changes were manually made.
It seems to be an issue with the certificates/letsencrypt. opening up the respective files which are supposed to have a syntax error, there does not seem to be anything wrong with it.
β how do i fix this issue? I cannot access the gui, and so i cannot easily renew or change the letsencrypt certs. not that comfortable with CLI, but some research got me the following:
apachectl configtest
gives:
AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/ncp.conf: SSLCertificateFile: file '/etc/letsencrypt/live/[DOMAIN.DOMAIN.COM]/fullchain.pem' does not exist or is empty
Action 'configtest' failed.
Additionally, sudo systemctl status apache2.service -l --no-pager
gives:
Oct 16 14:48:57 nextcloudpi apachectl[4317]: AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/ncp.conf:
Oct 16 14:48:57 nextcloudpi apachectl[4317]: SSLCertificateFile: file '/etc/letsencrypt/live/[DOMAIN.DOMAIN.COM]/fullchain.pem' does not exist or is empty
Oct 16 14:48:57 nextcloudpi apachectl[4317]: Action 'start' failed.
Oct 16 14:48:57 nextcloudpi apachectl[4317]: The Apache error log may have more information.
Oct 16 14:48:57 nextcloudpi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 16 14:48:57 nextcloudpi systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 16 14:48:57 nextcloudpi systemd[1]: Failed to start The Apache HTTP Server.
Similarly, trying to renew letsencrypt in ncp-config
has the following output:
INFO: Letsencrypt domain is [DOMAIN]
INFO: Metrics enabled: no
WARN: [DOMAIN] will not be included in trusted domains for Nextcloud (maximum reached). It will still be included in the SSL certificate
System config value trusted_domains => 3 set to string [DOMAIN]
System config value overwrite.cli.url set to string https://[DOMAIN]/
System config value trusted_proxies => 11 set to string 127.0.0.1
System config value trusted_proxies => 12 set to string ::1
System config value trusted_proxies => 13 set to string [DOMAIN]
System config value trusted_proxies => 14 set to string [LOCALIP]
β redis is configured
π΄ can't connect to push server: cURL error 7: Failed to connect to [DOMAIN] port 443: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://[DOMAIN]/push/test/cookie
AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/ncp.conf:
SSLCertificateFile: file '/etc/letsencrypt/live/[DOMAIN]/fullchain.pem' does not exist or is empty
Action '-k graceful' failed.
The Apache error log may have more information.
I hope anyone can help me out.
NextCloudPi version v1.41.10
Operating system and version: Raspbian GNU/Linux 10. 5.10.63-v7l+ (armv7l)
Apache or nginx version: unknown
PHP version: unknown