You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
postprocessing logs "cannot get upload" for every non-empty file the posix driver assimilates #3606
When non-empty files are written into the posix storage directly instead of being uploaded, postprocessing logs errors for each of them. The files are assimilated and listed fine, only the log is wrong. On 8.0.1 it is two lines per file:
{"level":"error","service":"postprocessing","uploadID":"","error":"Failed to get object from bucket: nats: invalid key","message":"cannot get upload"}
{"level":"error","service":"postprocessing","error":"event error: cannot get upload","message":"continuing"}
Steps to reproduce
Start opencloudeu/opencloud-rolling:latest (8.0.1) with the default posix driver and log in once as admin, so the personal space exists.
Stop the server.
Copy 300 non-empty files into storage/users/users/<user-id>/copied/, owned by uid 1000.
Start the server and count the cannot get upload lines in the log.
Expected behavior
No errors. A WebDAV upload in the same setup logs none.
Actual behavior
300 cannot get upload and 300 continuing errors at startup. With STORAGE_USERS_POSIX_WATCH_FS=true, appending to 20 existing files and creating 20 new ones while the server runs gives 40 of each. Empty files don't trigger it.
Setup
Plain docker run after opencloud init --insecure true.
Details
OC_URL=https://<host>:<port>
OC_INSECURE=truePROXY_ENABLE_BASIC_AUTH=trueSTORAGE_USERS_POSIX_WATCH_FS=true # only for the live case
Additional context
Tree.assimilate in reva publishes events.UploadReady for new and changed non-empty files, so search, activitylog and clientlog see them (pkg/storage/fs/posix/tree/assimilation.go, lines 603 and 673 on reva main). Empty files get FileTouched instead. There is no upload session, so UploadID is empty. The UploadReady case in services/postprocessing/pkg/service/service.go looks the empty ID up in its store, and nats-js-kv rejects it with invalid key. The PostprocessingStepFinished case already returns early for an empty UploadID.
On main getPP also logs reading from store: upload store read error for this error, so there it is three lines per file.
The same cause is listed as error 8 in #2045, and the lines show up in #3318 and #1885.
Still present on opencloud-rolling:9.2.0, three lines per file as described for main (reading from store: upload store read error, cannot get upload, continuing).
A second trigger: no direct writes to the storage are needed. Moving folders within a personal space through the web UI produces the same burst. Moving 12 folders holding about 16,800 non-empty files produced 6,666 × 3 errors over 12 seconds, starting 12 seconds after the move. All files ended up at the new location with correct sizes and none were stuck in processing, so the impact is only log noise. But the burst is large enough to look like data loss when someone reads the log after a reorganization.
Activity
eslevitt commentedon Nov 22, 2026
Still present on
opencloud-rolling:9.2.0, three lines per file as described for main (reading from store: upload store read error,cannot get upload,continuing).A second trigger: no direct writes to the storage are needed. Moving folders within a personal space through the web UI produces the same burst. Moving 12 folders holding about 16,800 non-empty files produced 6,666 × 3 errors over 12 seconds, starting 12 seconds after the move. All files ended up at the new location with correct sizes and none were stuck in processing, so the impact is only log noise. But the burst is large enough to look like data loss when someone reads the log after a reorganization.
Setup: posix driver, rootless Podman, defaults otherwise.