Skip to content

postprocessing logs "cannot get upload" for every non-empty file the posix driver assimilates #3606

Open

Description

@junkerderprovinz

Describe the bug

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

  1. Start opencloudeu/opencloud-rolling:latest (8.0.1) with the default posix driver and log in once as admin, so the personal space exists.
  2. Stop the server.
  3. Copy 300 non-empty files into storage/users/users/<user-id>/copied/, owned by uid 1000.
  4. 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=true
PROXY_ENABLE_BASIC_AUTH=true
STORAGE_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.

Assisted-by: Claude Code:claude-opus-5-5

Activity

  1. eslevitt commented on Nov 22, 2026

    @eslevitt

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions