Service unavailable after DNS problem

My NextcloudPi somehow got stuck and I get ā€˜service unavailableā€™ after I log in. The client doesnā€™t sync any more either. I suppose, it started when my dynamic DNS provides was off. I fixed this issue now, but I canā€™t get ncp back on.

The first thing I noticed when logging into the admin panel was that HPB service was down. I strongly suppose this had to do with the domain not being accessible. When I fixed DNS and the domain worked again, HPB worked again.

I now have the following system info:

NextCloudPi version v1.50.3
NextCloudPi image NextCloudPi_06-09-22
OS Debian GNU/Linux 11. 5.15.32-v8+ (aarch64)
automount yes
USB devices sda
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 43G/235G
rootfs usage 43G/235G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 24.0.5.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
public IPv4 ā€˜redactedā€™
public IPv6 not found
Port check 80 open (ipv4)
Port check 443 open (ipv4)
IP ā€˜redactedā€™
gateway 192.168.178.1
Interface eth0
certificates ā€˜redactedā€™
NAT loopback no
Uptime 1min

ncp, nc and apps are configured to automatically upgrade. Of course, I rebooted ncp. Still, I get the error message. What other information do you need to figure out what the problem is? Iā€™d appreciate any help greatly.

Hey ,first of all please remove your public IP from your post. It is not necessary.
Better is to post the ncp-report here so someone can see if there is an issue with your instance or something misconfigured.

The crash happens with all users after login or just with specific?
Did you install any apps in the last time?
Do you use a docker, curl or image installation?

1 Like

Thank you @REAPERSbattlecry for looking into this.

I canā€™t log into the web interface with different accounts. So far, I havenā€™t figured out one I still can log in. However, I noticed that some syncs and ways to access my data work again. Notes, calendar items and contacts are synced on my Android phone. I can also access the files via the Android Nextcloud App. The desktop computer sync client doesnā€™t work.

The last app I installed is ā€˜Passwordsā€™ a couple of days ago. But Nextcloud didnā€™t break as soon as I installed it. It kept working totally fine.

I use an image installation.

Here is the output of ncp-report:

NextCloudPi diagnostics

NextCloudPi version  v1.50.3
NextCloudPi image    NextCloudPi_06-09-22
OS                   Debian GNU/Linux 11. 5.15.32-v8+ (aarch64)
automount            yes
USB devices          sda 
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      43G/235G
rootfs usage         43G/235G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    24.0.5.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          up
Postfix service      up
Internet check       ok
public IP            ***REMOVED SENSITIVE VALUE***
public IP            ***REMOVED SENSITIVE VALUE***
Port check 80        open (ipv4)
Port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
Interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               10:46

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "7": "nextcloudpi",
            "5": "nextcloudpi.local",
            "8": "nextcloudpi.lan",
            "3": "***REMOVED SENSITIVE VALUE***",
            "11": "***REMOVED SENSITIVE VALUE***",
            "1": "***REMOVED SENSITIVE VALUE***",
            "14": "nextcloudpi"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "24.0.5.1",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "has_rebuilt_cache": true,
        "theme": ""
    }
}

HTTPd logs

[Wed Oct 05 00:00:10.733385 2022] [mpm_event:notice] [pid 859696:tid 548633879616] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Oct 05 00:00:10.733479 2022] [core:notice] [pid 859696:tid 548633879616] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 05 07:28:00.092572 2022] [ssl:warn] [pid 537:tid 548531074112] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 07:28:00.214945 2022] [ssl:warn] [pid 663:tid 548531074112] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 07:28:00.226422 2022] [mpm_event:notice] [pid 663:tid 548531074112] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Oct 05 07:28:00.226598 2022] [core:notice] [pid 663:tid 548531074112] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 05 09:31:07.978436 2022] [proxy_fcgi:error] [pid 664:tid 548345123200] [client 192.168.178.45:55428] AH01067: Failed to read FastCGI header
[Wed Oct 05 09:31:08.008788 2022] [proxy_fcgi:error] [pid 664:tid 548345123200] (104)Connection reset by peer: [client 192.168.178.45:55428] AH01075: Error dispatching request to :4443: 
[Wed Oct 05 09:31:08.489447 2022] [mpm_event:notice] [pid 663:tid 548531074112] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Oct 05 09:31:19.770019 2022] [ssl:warn] [pid 547:tid 547654935616] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 09:31:19.884875 2022] [ssl:warn] [pid 663:tid 547654935616] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 09:31:19.895358 2022] [mpm_event:notice] [pid 663:tid 547654935616] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Oct 05 09:31:19.895543 2022] [core:notice] [pid 663:tid 547654935616] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 05 09:57:02.471241 2022] [proxy_fcgi:error] [pid 664:tid 547460583808] [client 192.168.178.45:50804] AH01067: Failed to read FastCGI header
[Wed Oct 05 09:57:02.472596 2022] [proxy_fcgi:error] [pid 664:tid 547460583808] (104)Connection reset by peer: [client 192.168.178.45:50804] AH01075: Error dispatching request to :4443: 
[Wed Oct 05 09:57:02.643244 2022] [mpm_event:notice] [pid 663:tid 547654935616] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Oct 05 09:57:13.203068 2022] [ssl:warn] [pid 533:tid 548501615680] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 09:57:13.308612 2022] [ssl:warn] [pid 659:tid 548501615680] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 09:57:13.319579 2022] [mpm_event:notice] [pid 659:tid 548501615680] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Oct 05 09:57:13.321112 2022] [core:notice] [pid 659:tid 548501615680] AH00094: Command line: '/usr/sbin/apache2'

Database logs

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory

Nextcloud logs

{"reqId":"Yz0ajfN1freIXPA5O9DFyAAAABM","level":2,"time":"2022-10-05T05:47:57+00:00","remoteAddr":"192.***REMOVED SENSITIVE VALUE***.152","user":"--","app":"core","method":"GET","url":"/ReportServer","message":"Trusted domain error. \"192.***REMOVED SENSITIVE VALUE***.152\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz0amvN1freIXPA5O9DFyQAAABU","level":2,"time":"2022-10-05T05:48:10+00:00","remoteAddr":"192.***REMOVED SENSITIVE VALUE***.190","user":"--","app":"core","method":"GET","url":"/login","message":"Trusted domain error. \"192.***REMOVED SENSITIVE VALUE***.190\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz0bA-osH8dbYtD06eFALQAAAI0","level":2,"time":"2022-10-05T05:49:55+00:00","remoteAddr":"193,***REMOVED SENSITIVE VALUE***.210","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"193.***REMOVED SENSITIVE VALUE***.210\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz0eveosH8dbYtD06eFALgAAAJA","level":2,"time":"2022-10-05T06:05:49+00:00","remoteAddr":"152.***REMOVED SENSITIVE VALUE***.23","user":"--","app":"core","method":"GET","url":"/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession","message":"Trusted domain error. \"152.***REMOVED SENSITIVE VALUE***.23\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236:443\" as host.","userAgent":"Python-urllib/3.8","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz0j2vN1freIXPA5O9DFygAAABc","level":2,"time":"2022-10-05T06:27:38+00:00","remoteAddr":"85.***REMOVED SENSITIVE VALUE***.69","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"85.***REMOVED SENSITIVE VALUE***.69\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236\" as host.","userAgent":"--","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz0mN_N1freIXPA5O9DFzAAAAAI","level":2,"time":"2022-10-05T06:37:43+00:00","remoteAddr":"87.***REMOVED SENSITIVE VALUE***.68","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"87.***REMOVED SENSITIVE VALUE***.68\" tried to access using \"188.***REMOVED SENSITIVE VALUE***.236\" as host.","userAgent":"Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Yz2k-90cCX3_c8_cRXdDigAAAgQ","level":2,"time":"2022-10-05T15:38:35+00:00","remoteAddr":"194.187.160.94","user":"--","app":"no app in context","method":"POST","url":"/index.php/login","message":"Login failed:  (Remote IP: 194.***REMOVED SENSITIVE VALUE***.94)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36","version":"24.0.5.1","data":[]}
{"reqId":"Yz3N9N0cCX3_c8_cRXdD_QAAAAs","level":2,"time":"2022-10-05T18:33:24+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200449.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200449.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200449.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200449.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200449.jpg could not be located"}}
{"reqId":"Yz3N-QEIzYv7QEKI_ZcW2AAAAFg","level":2,"time":"2022-10-05T18:33:30+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200439.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200439.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200439.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200439.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200439.jpg could not be located"}}
{"reqId":"Yz3N_t0cCX3_c8_cRXdEDQAAAAI","level":2,"time":"2022-10-05T18:33:34+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200424.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200424.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200424.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200424.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200424.jpg could not be located"}}
{"reqId":"Yz3OCQEIzYv7QEKI_ZcW4wAAAEw","level":2,"time":"2022-10-05T18:33:45+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200328.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200328.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200328.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200328.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200328.jpg could not be located"}}
{"reqId":"Yz3OD90cCX3_c8_cRXdEEwAAABI","level":2,"time":"2022-10-05T18:33:51+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200336.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200336.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200336.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200336.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200336.jpg could not be located"}}
{"reqId":"Yz3OFN0cCX3_c8_cRXdEGQAAAAw","level":2,"time":"2022-10-05T18:33:56+00:00","remoteAddr":"188.***REMOVED SENSITIVE VALUE***.236","user":"user","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/user//Photos/2022/10/IMG_20221005_200332.jpg","message":"File with name /Photos/2022/10/IMG_20221005_200332.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.1","version":"24.0.5.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Photos/2022/10/IMG_20221005_200332.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":75,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Photos/2022/10/IMG_20221005_200332.jpg could not be located","exception":{},"CustomMessage":"File with name /Photos/2022/10/IMG_20221005_200332.jpg could not be located"}}

There still seems to be an issue with the HPB service. When I checked the system info today, Nextcloud was in maintenance mode and HPB service was down again. I managed to get it back up using ā€˜systemctl restart notify_pushā€™. Then, I could turn off maintenance mode again. But still, I canā€™t log into the Nextcloud web interface and everything else is as described above.

Is there any other log file or information I could provide in order for you to help me figure out the solution? I rely pretty strongly on Nextcloud as a hub for many things and it is quite difficult to work around the issue all day long. I would be relieved if this could be fixed and Iā€™d appreciate any effort youā€™d make to help.

I tried different things and I think what finally worked was upgrading my system using ā€˜sudo apt-get upgradeā€™. I can access the web interface again.

Still, my Nextcloud behaves strangely. See: Only ncp users' calendars are accessible But this may be completely unrelated.

Hi,
after some reboots of the host raspberry pi 4 (8GB) with nextcloudpi installed, the internet router and even the netgear switch, I found a network cable was not plugged in (wifi is not reliable enough). Then I got this problem that nextcloud did not work. The nextcloudpi configuration panel said that a so called HPB Service is down (I do not know yet what this is). And nextcloud website said it is unavailable. Then I searched for this problem and DDG found this site. As indicated I updated manually the linux distribution as I had access with SSH again. But I used #apt dist-upgrade (yes, I forgot #apt update).

After the updates I rebooted (here #reboot is enough, on a internet server it was recommended to reboot with #shutdown -r now - why required? O do not know ā€¦). Then web interface did work again. After some tests (caldav & carddav access with a different user works again - also access to calendar and address book work for a user - I do not use ncp ā€¦ several users use this nextcloud ā€¦ it is almost always better to us a non-administrative user for daily works, if no administrative things have to be done ā€¦). Thankfully all works again (what I use: nextcloudpi 1.51.2, nextcloud 25.0.5), although this site recommended: ncp-updater recommends that what is said in title.

Although this post is old, I want to confirm for others having this problem with the (ā€˜nowā€™) current nextcloudpi read this, so that it hopefully solves their problem, too.

Now to your specific problem @kltrg

Do you use a SD-card for nextcloudpi (as recommended from them)?

My first nextcloud I used and installed (nextcloudpi did not exist yet if I remember correctly) was on a raspberry pi 2. There I used a SD-card (I took care to choose a perhaps little but speedy SD-card ā€¦ seemed to be a reason why it was not extremely slow as some other tried it, too). A external hard disc was not possible. Then after a year or so I had strange problems. I could copy a older backup of the image to the same SD-card, then updated it again and then surprisingly it worked again. This happened several times again. At one time this did not help and almost nothing worked. And I had more and more strange bugs. When there were so many bugs, I assumed this can not be all bugs from nextcloud or other software. Then I searched in the net to find out how to find out if sd-card has strange errors itself. Sadly I did not find a simple test but I could measure how many IO-errors the filesystem has. And it had many (the maximum), why I could not write anything on SD-card. Somehow I found how to reduce these strange IO errors (I do not want to bore with too much details) and it worked again. This happened again several times. Now on a raspberry pi 4 I can use an external hard disc. I use an old but good samsung ssd and for now after about 1.5 years I do not have strange errors.

So perhaps the software system on your raspberry pi has this errors because of IO errors on SD-card and not the system nextcloud itself. Yes, sadly this comment does not halp to solve the problem, but hopefully it helps to find the real reason. So for next nextcloudpi I recommend to configure the raspberry pi in that manner, that it boots from an external USB disc. Then install nextcloudpi on this external disc (yes, burned image on disc is much smaller, but thankfully on next boot it automatically expands the partition to the whole disc). My reliable ssd did have only 256B. Some weeks ago I read raspberry pi can address only maximal 256GB. So I was in luck (earlier I thought a 1TB hard disc would be better but I did not know this limit). So, it is almost 4am ā€¦ so I have to go to sleep. I wish good luck with the next nextcloudpi.