NCP Randomly temporary unavailable

Hello,

I’m using ncp, for a few days now, only in my LAN (local), and sometimes ncp is unavailable.
My hardware setup is a Rpi4 8GB and wired in my LAN.
Someone knows why ncp sometimes unavailable.

My ncp info:

NextCloudPi version v1.49.0
NextCloudPi image NextCloudPi_08-16-22
OS Debian GNU/Linux 11. 5.15.61-v8+ (aarch64)
automount yes
USB devices sda
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 25G/110G
rootfs usage 25G/110G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 24.0.4.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
public IPv4 94.110.XXX.XXX
public IPv6 not found
Port check 80 closed
Port check 443 closed
IP 192.168.0.41
Gateway 192.168.0.1
Interface eth0
certificates none
NAT loopback no
Uptime 1day

how do you try to access your raspi - ip? url?
how is it connected to your network - wifi? wired?

I don’t know, you would have to get some more information, as the cause isn’t immediately obvious in the information available with ncp-info.

What happens when it becomes unavailable?
What do you see in the browser when you try to access it?

What does it say in the logs at /var/log/?
Look at ncp, apache2, mysql logs
(take a quick look in the other logs too, there might be a hint somewhere else)

Then there is sudo ncp-report & sudo journalctl -xe that you can check as well and dmesg, which are commands you run in the terminal.

dmesg might be slightly overkill and a bit overwhelmingly much info since it is more useful when troubleshooting the boot sequence or low-level system issues (system to hardware level issues) but it can be worth taking a look since we don’t know where the issue stems from on your RPi4 and there isn’t enough info to locate a cause at the moment