NCP v1.51.0 -> nextcloud error -> internal server error

Hi,

on my RaspberryPi I run NextCloud for several years, by now. Every now and then, the auto update for NCP seems to cause problems. Now, the time has come again…

Here is what I can see so far, as I recognized the NextCloud service not running anymore on my Clients:

→ configuration

  • RaspberryPi 4B
  • internal 16 GB SD card to store application
  • external USB SSD 240 GB to store user data

→ configuration from NCP status info panel

  • NCP v1.51.0 (auto update)
  • NCP system info shows “error” for Nextcloud check
  • NCP system info shows “down” for HPB service

→ from the command line

  • PHP version v7.3

→ from the error logs

  • cat /var/log/apace2/nc-error.log (shows many lines)
...
[Sat Jan 28 11:09:28.105515 2023] [proxy_fcgi:error] [pid 1206:tid 548064407936] [client 95.116.66.67:39766] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:09:30.429082 2023] [proxy_fcgi:error] [pid 1205:tid 547281109376] [client 95.116.66.67:57135] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:09:48.855548 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:56838] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:00.130502 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:39772] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:19.911911 2023] [proxy_fcgi:error] [pid 1206:tid 547490861440] [client 95.116.66.67:60834] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:20.841940 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:56844] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:32.126485 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:39782] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:32.437314 2023] [proxy_fcgi:error] [pid 1205:tid 547339858304] [client 95.116.66.67:57157] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:10:52.846354 2023] [proxy_fcgi:error] [pid 1206:tid 548064407936] [client 95.116.66.67:56850] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:04.145719 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:39790] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:24.904483 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:56856] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:30.647861 2023] [proxy_fcgi:error] [pid 1205:tid 547297894784] [client 95.116.66.67:44636] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:34.370187 2023] [proxy_fcgi:error] [pid 1206:tid 547457290624] [client 95.116.66.67:57168] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:36.124715 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:39796] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:11:56.916118 2023] [proxy_fcgi:error] [pid 1206:tid 548064407936] [client 95.116.66.67:56862] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:12:08.082332 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:39808] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:12:28.909228 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 95.116.66.67:56868] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:12:36.419698 2023] [proxy_fcgi:error] [pid 1206:tid 547432112512] [client 95.116.66.67:57178] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
[Sat Jan 28 11:12:40.180464 2023] [proxy_fcgi:error] [pid 1206:tid 548064407936] [client 95.116.66.67:39812] AH01071: Got error 'PHP message: PHP Parse error:  syntax error, unexpected '{' in /var/www/nextcloud/3rdparty/symfony/polyfill-php80/bootstrap.php on line 14'
  • cat /var/log/apache2/error.log (after sudo reboot)
[Sat Jan 28 09:13:36.197307 2023] [ssl:warn] [pid 944:tid 548266956160] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Jan 28 09:13:36.198220 2023] [ssl:error] [pid 944:tid 548266956160] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT]
[Sat Jan 28 09:13:36.198273 2023] [ssl:error] [pid 944:tid 548266956160] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 28 09:13:36.413398 2023] [ssl:warn] [pid 1203:tid 548266956160] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Jan 28 09:13:36.413796 2023] [ssl:error] [pid 1203:tid 548266956160] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=archlinux / issuer: CN=archlinux / serial: 0112307086B5A933D74576F54C8FD74C8207A8AF / notbefore: Nov 27 22:55:31 2020 GMT / notafter: Nov 25 22:55:31 2030 GMT]
[Sat Jan 28 09:13:36.413824 2023] [ssl:error] [pid 1203:tid 548266956160] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sat Jan 28 09:13:36.422078 2023] [mpm_event:notice] [pid 1203:tid 548266956160] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Sat Jan 28 09:13:36.422204 2023] [core:notice] [pid 1203:tid 548266956160] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jan 28 10:58:56.681477 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 192.168.1.148:54925] AH01067: Failed to read FastCGI header
[Sat Jan 28 10:58:56.681586 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] (104)Connection reset by peer: [client 192.168.1.148:54925] AH01075: Error dispatching request to :4443:
[Sat Jan 28 11:07:06.428143 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] [client 192.168.1.148:56924] AH01067: Failed to read FastCGI header
[Sat Jan 28 11:07:06.428233 2023] [proxy_fcgi:error] [pid 1205:tid 547980431744] (104)Connection reset by peer: [client 192.168.1.148:56924] AH01075: Error dispatching request to :4443:

I wouldn’t mind to get myself a new RaspberryPi and install a fresh version of NCP, as there seem to be more than just a few issues. e.g. the sudo ncp-dist-upgrade does not seem to work. it just stops without further notice to the user:

pi@RPi-11:~ $ sudo ncp-dist-upgrade

>>> ATTENTION <<<
This is a dangerous process that is only guaranteed to work properly if you
have not made manual changes in the system. Backup the SD card first and
proceed at your own risk.

Note that this is not a requirement for NCP to continue working properly.
The current distribution will keep receiving updates for some time.

Do you want to continue? [y/N]
y
pi@RPi-11:~ $ 

Is there maybe a way to quickly re-configure NCP after re-installing a fresh RaspberryPi, in order to then plug the original 240 GB SSD (still holding all the user data) and continue operation as usual? As I have no further plugins installed but use NextCloud only for basic file share, there might only be the user access settings to be re-configured, right? What should I keep in mind or consider when trying to revive my user data within a new NCP installation?

Thanks.


this thread (and others) didn’t solve the problem on my side, yet: NCP shows Nextcloud check: error and background jobs not running