WebDAV Error 500 / ErrorPrinter: caught Exception / Error -5 while decompressing data: incomplete or truncated stream


We have a problem on a test server with the WebDAV.
Raspberry 3 with Seafile 6.3.4

We were testing it by uploading pics from a camera on another RPI every 10seconds.

Everything was fine for 2 months, working in localhost and behind Nginx.
Since last week, after entering our login, we have an error 500 when trying to visit the page (https://,seafile,myserver,com/seafdav). We’ve tried Chrome, Firefox, Dav2FS, Cyberduck.
Everything else works perfectly fine (Seafile, SeaDrive, the web page).

seafile-controller.c(411): pid file /home/pi/Seafile/pids/seafdav.pid does not exist
seafile-controller.c(73): spawn_process: /usr/bin/python2.7 -m wsgidav.server.run_server --log-file /home/pi/Seafile/logs/seafdav.log --pid /home/pi/Seafile/pids/seafdav.pid --port 8080 --host
seafile-controller.c(88): spawned /usr/bin/python2.7, pid 1146

[2019-04-19 16:40:29,815]: ErrorPrinter: caught Exception
[2019-04-19 16:40:29,869]: Traceback (most recent call last):
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/error_printer.py”, line 42, in call
app_iter = self._application(environ, sub_app_start_response)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/http_authenticator.py”, line 195, in call
return self.authBasicAuthRequest(environ, start_response)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/http_authenticator.py”, line 238, in authBasicAuthRequest
return self._application(environ, start_response)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/dir_browser.py”, line 173, in call
return self._listDirectory(davres, environ, start_response)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/dir_browser.py”, line 263, in _listDirectory
childList = davres.getDescendants(depth=“1”, addSelf=False)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/dav_provider.py”, line 447, in getDescendants
for child in self.getMemberList():
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/addons/seafile/seafile_dav_provider.py”, line 496, in getMemberList
res = self._createRootRes(repo, repo.name)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/addons/seafile/seafile_dav_provider.py”, line 507, in _createRootRes
obj = get_repo_root_seafdir(repo)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/wsgidav/addons/seafile/seafile_dav_provider.py”, line 621, in get_repo_root_seafdir
return fs_mgr.load_seafdir(repo.store_id, repo.version, root_id)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/seafobj/fs.py”, line 205, in load_seafdir
data = self.obj_store.read_obj(store_id, version, dir_id)
File “/home/pi/Seafile/seafile-server-6.3.4/seahub/thirdpart/seafobj/backends/base.py”, line 16, in read_obj
data = zlib.decompress(data)
error: Error -5 while decompressing data: incomplete or truncated stream

Any ideas on how to correct whithout scrapping everything ?
Thanks in advance

Seems some python library broke. Have you installed anything else?

No, this Pi is dedicated to testing the WebDAV.

There is unatended-upgrades with this configuration :

“origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation”;

Unattended-Upgrade::Mail “alertes@mydomain”;
Unattended-Upgrade::Remove-Unused-Dependencies “true”;

I’ve done the usual setup again :

sudo apt update && sudo apt install -y python && sudo apt install -y sqlite3 python2.7 libpython2.7 python-setuptools python-ldap python-urllib3 python-requests
sudo apt install -y python-pip ffmpeg libjpeg-dev && pip install Pillow==4.3.0 && pip install moviepy

python-ldap and libjpeg-dev were missing, but still after checking another time and after reboot, I have the same problem.

Ok, I found the culprit.
The Pi’s ram could not support the Photos library. I deleted everything and now the WebDAV is running ok.

72 319 files for 34.6 Go