mnutt / davros

Personal file storage server
Apache License 2.0
297 stars 35 forks source link

Davros fails after deleting sample files #143

Open ocdtrekkie opened 2 years ago

ocdtrekkie commented 2 years ago

This seemed really novel: I deleted the sample files in a Davros grain, then proceeded to try to upload a file (a txt file, to be specific). Upload did not work either via UI or drag and drop. The grain log seemed really interesting, suggesting the thumbnailer was flipping out over the missing sample files:

...** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: privileged
Mounting webdav from data dir /var/davros/data
Storing temporary files in /var/davros/tmp
Davros started in 195ms, listening on port 8000
PROPFIND /dav/ 207 68.088 ms - -
GET /api/permissions 200 0.114 ms - -
Thumbnailer cache miss for 24-24-/dav/apollo-6.jpg
GET /api/thumbnail?url=%2Fdav%2Fapollo-6.jpg&width=24&height=24&op=fit&ts=1638593307000 200 187.856 ms - -
Thumbnailer cache miss for 24-24-/dav/pluto.jpg
GET /api/thumbnail?url=%2Fdav%2Fpluto.jpg&width=24&height=24&op=fit&ts=1638593307000 200 70.737 ms - -
Thumbnailer cache miss for 24-24-/dav/shuttle.jpg
GET /api/thumbnail?url=%2Fdav%2Fshuttle.jpg&width=24&height=24&op=fit&ts=1638593307000 200 81.709 ms - -
DELETE /dav/apollo-6.jpg 204 4.358 ms - 0
DELETE /dav/pluto.jpg 204 2.142 ms - 0
DELETE /dav/shuttle.jpg 204 3.516 ms - 0
PROPFIND /dav/ 207 62.521 ms - -
PROPFIND /dav/ 207 14.230 ms - -
DELETE /dav/Welcome%20to%20Davros.md 204 2.057 ms - 0
PROPFIND /dav/ 207 9.685 ms - -
File at location /pluto.jpg not found
File at location /shuttle.jpg not found
File at location /shuttle.jpg not found
Input buffer contains unsupported image format
[Error: Input buffer contains unsupported image format]
GET /api/thumbnail?url=%2Fdav%2Fpluto.jpg&width=24&height=24&op=fit&ts=1638593312836 200 35.668 ms - 70
Input buffer contains unsupported image format
[Error: Input buffer contains unsupported image format]
GET /api/thumbnail?url=%2Fdav%2Fshuttle.jpg&width=24&height=24&op=fit&ts=1638593312855 200 23.724 ms - 70
Input buffer contains unsupported image format
[Error: Input buffer contains unsupported image format]
GET /api/thumbnail?url=%2Fdav%2Fshuttle.jpg&width=24&height=24&op=fit&ts=1638593312836 200 36.648 ms - 70
PROPFIND /dav/ 207 4.404 ms - -
PROPFIND /dav/ 207 4.062 ms - -
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.
POST /api/upload 201 12.663 ms - 0
POST /api/upload 200 4.583 ms - 0
POST /api/upload 200 3.222 ms - 0
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.

It seems like maybe I deleted the files while the thumbnailer was trying to work?

ocdtrekkie commented 2 years ago

Update: On restarting the grain, the file I uploaded was present, so the UI apparently didn't update because of the thumbnailer issue, but upload is fine.