HPB service down every few days -> Maintenance mode

Hello, my nexcloudpi-cloud on my Raspberry Pi 3 is going strong. But every few days (sometimes 1 day, sometimes up to a week) it goes to maintenance mode because HPB service is down. After I noticed that, which is mostly because my phone can’t upload the pics I took, I reboot the ncp and after that it works fine again. Until 2 or 3 days later it all happens again.

I created a gist on github with the latest report after yesterday’s crash, reboot and updating ncp to v1.47.0.

Is it a settings issue or maybe a wrong version that I installed?

if you have any further question, I try the best to give you the informations you need to help me solve this problem.
Thanks in advance.

I don’t know for sure… but it might be that you have an SD card or drive that is beginning to fail, a permissions issue or network issue. I think it is most likely the first one tho, due to the line at the bottom appearing for more than one user. Can you check the other logs at /var/log & run sudo journalctl -xe and dmesg? Should give you more information

Log

{"reqId":"YlWRf0-@sPEus6ktTVReIwAAAFA","level":3,"time":"2022-04-12T14:49:38+00:00","remoteAddr":"88.64.185.161","user":"Julia","app":"no app in context","method":"PUT","url":"/remote.php/dav/uploads/Julia/878f6c3e2b25b1719835aef175005657/0000000000000000-0000000004821120","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 4821120 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2727936 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[null]},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":46,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["0000000000000000-0000000004821120",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->","args":["0000000000000000-0000000004821120",null]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["uploads/Julia/878f6c3e2b25b1719835aef175005657/0000000000000000-0000000004821120",null,null]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":246,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"21.0.4.1"}