NCP 1.50.3: Nextcloud check - error

My NCP suddenly stopped working.
First I got a message on screen that it was in maintenance mode.
I still could get into the NCP panel, but it did not react to any tries to beoot via the UI.
It already said “Nextcloud check - error”
Then I unplugged the pi and restarted it.

Now the login screen is gone and only says “service unavailable”.

I still can get into NCP Panel, which shows:
Nextcloud check error
HPB service down

Rebooting did not help.

ncp-report says:

<--! Paste this in GitHub report -->

<details>
<summary>NextCloudPi diagnostics</summary>

Cannot load Zend OPcache - it was already loaded
/usr/local/bin/ncc: line 3: 5005 Segmentation fault ${SUDO} php /var/www/nextcloud/occ “$@”
NextCloudPi version v1.50.3
NextCloudPi image NextCloudPi_RaspberryPi_v1.50.3.img
OS Debian GNU/Linux 11. 5.15.76-v8+ (aarch64)
automount yes
USB devices sda
datadir /media/myCloudDrive/ncdata/data
data in SD no
data filesystem btrfs
data disk usage 26G/116G
rootfs usage 3.4G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
Internet check ok
public IP REMOVED SENSITIVE VALUE
public IP REMOVED SENSITIVE VALUE
Port check 80 closed
Port check 443 closed
IP REMOVED SENSITIVE VALUE
gateway REMOVED SENSITIVE VALUE
Interface eth0
certificates REMOVED SENSITIVE VALUE
NAT loopback no
Uptime 19min

</details>

I do not know what that segmentation fault means.

Anyone with any tips on how to restore my NCP?

1 Like

Got the similar error, since this week.
Plus can not start mariaDB.

Maybe it’s unrelated, I do not know.

<--! Paste this in GitHub report -->

<details>
<summary>NextCloudPi diagnostics</summary>


Cannot load Zend OPcache - it was already loaded
NextCloudPi version  v1.50.3                                     
NextCloudPi image    NextCloudPi_03-11-22                        
OS                   Debian GNU/Linux 11. 5.15.74-v8+ (aarch64)  
automount            yes                                         
USB devices          sdc                                         
datadir              /var/www/nextcloud/data                     
data in SD           yes                                         
data filesystem      ext2/ext3                                   
data disk usage      219G/917G                                   
rootfs usage         219G/917G                                   
swapfile             /var/swap                                   
dbdir                /var/lib/mysql                              
Nextcloud check      error                                       
HTTPD service        up                                          
PHP service          up                                          
MariaDB service      down                                        
Redis service        up                                          
HPB service          down                                        
Postfix service      up                                          
Internet check       ok                                          
public IP            ***REMOVED SENSITIVE VALUE***               
public IP            ***REMOVED SENSITIVE VALUE***               
Port check 80        Error - IP                                  ***REMOVED SENSITIVE VALUE***
Port check 443       Error - IP                                  ***REMOVED SENSITIVE VALUE***
IP                   ***REMOVED SENSITIVE VALUE***               
gateway              ***REMOVED SENSITIVE VALUE***               
Interface            eth0                                        
certificates         ***REMOVED SENSITIVE VALUE***               
NAT loopback         no                                          
Uptime               25min                                       

So, I do not know what happened.

Since the raspi still works and I even can get into the NCP Admin panel I could check the logs.

It does seem that for a couple of days there have been two errors.

“Cannot load Zend OPcache - it was already loaded”

“/usr/local/bin/ncc: line 3: 76294 Segmentation fault ${SUDO} php /var/www/nextcloud/occ “$@””

The first one I now was able to fix by following PhP warning - Cannot load Zend OPcache - it was already loaded · Issue #416 · nextcloud/nextcloudpi · GitHub by deleting the two 20-opcache.ini files.

My raspi is now on PHP 8.1 and a short while ago I did manually upgrade the raspi which seems to also have updated PHP.

I currently assume this PHP upgrade to 8.1 is the reason for everything.

The segmentation faults are still there though.

This here might be a clue: Service Unavailable after update
“delete the new opache folder and all is good”
I do not know what to do exactly though.

Found this: HPB Down, nothing helps - #3 by sven1234

sudo bash -c 'source /usr/local/etc/library.sh && clear_opcache' 
sudo service php8.1-fpm restart

This did replace the service unavailable screen with the into screen that tells me NCP is in maintenance mode.

And today it really was in maintenance mode (I saw the checkmark in the panel).

After disabling the maintenance mode my NCP now is running again!

1 Like

The bad news is that I now seem unable to do a backup.

[ nc-backup ] (Wed Nov 23 17:33:36 CET 2022)
check free space...
/usr/local/bin/ncc: line 3: 14099 Segmentation fault ${SUDO} php /var/www/nextcloud/occ "$@"
/usr/local/bin/ncc: line 3: 14102 Segmentation fault ${SUDO} php /var/www/nextcloud/occ "$@"
Abort...
/usr/local/bin/ncc: line 3: 14106 Segmentation fault ${SUDO} php /var/www/nextcloud/occ "$@"
/usr/local/bin/ncc: line 3: 14110 Segmentation fault ${SUDO} php /var/www/nextcloud/occ "$@"

Solution was a simple hardware upgrade with more RAM memory.
These segmentation faults basically mean “out of memory”.

NON è così…