Repository navigation
Description
Summary
In a disposable single-container OpenCloud rolling 9.0.0 lab, an 11-byte TUS upload resumed after a server stop/start reached its full offset but the final PATCH and a GET of the target both timed out after 20 seconds. This happened in three attempts in the same installation. In one attempt a HEAD immediately after restart returned offset 5; in two attempts a HEAD after the PATCH timeout returned offset 11. The original file was readable and unchanged before restart. I have not established whether the new bytes were committed, whether the state eventually recovers, or whether the lab configuration is responsible.
A control in the same installation completed two-chunk uploads without restarting (204 for both PATCH requests and correct GET). In one restart attempt I omitted the pre-PATCH HEAD; the timeout still occurred. This is an HTTP-level test, not a desktop-client test. Potentially related but distinct reports: #3679 involves very large uploads and a 120-second deadline; desktop#898 concerns client retry state. Here the file is 11 bytes and HEAD reports the full offset, so I cannot assume the same cause.
Environment
- Official
opencloudeu/opencloud-rolling:9.0.0@sha256:bd57f039d0dd3df510fb25f178beefdf0b1f049097285feead607824460e6506, Linux amd64, local storage, one container, persistent data volume and configuration. - Docker Desktop, synthetic local user and verified HTTPS; Basic Auth enabled only for the test.
- Default single-container services, no external NATS, reverse proxy or S3. Container ran as a non-root host UID with all capabilities dropped. The container was stopped normally and started again; Graph and a separate DAV write/read probe passed before resumption. Storage logs included NATS disconnect messages around shutdown; I do not know whether these explain the behavior.
Steps
Use a disposable space and a TUS client capable of separate creation and PATCH requests:
- Create a new folder and
document.txtwith bytes0000000000\nvia DAV PUT; GET it and record its ETagE. - Create an 11-byte TUS session using POST to the space DAV root, empty body,
Tus-Resumable: 1.0.0,Upload-Length: 11,If-Match: EandUpload-Metadatacontaining base64-encodedfilename(relative folder/document.txt),checksum(SHA1and the hex SHA-1 ofRRRRRRRRRR\n), andmtime. SaveLocationfrom the 201 response. - PATCH the first five bytes with
Tus-Resumable: 1.0.0,Content-Type: application/offset+octet-stream, andUpload-Offset: 0; observe 204 and offset 5. Confirm the original DAV file is unchanged. - Normally stop and restart the same container with its persistent volume. Wait for Graph and an independent DAV write/read to work. HEAD the saved upload location with
Tus-Resumable: 1.0.0; it returns 200 and offset 5. - PATCH the remaining six bytes to the saved location with
Upload-Offset: 5and the same TUS/content-type headers, with a 20-second client timeout. In my test it timed out. HEAD returned 200 and offset 11, while GET on the target timed out at 20 seconds.
Expected: final PATCH completes and the target becomes readable with the complete uploaded bytes, or the server clearly reports a recoverable failure without misleading the client about completion. Actual: full offset but no final response or readable target within the observed window.
Could this be related to upload-session recovery or postprocessing after restart? The documented storage-users uploads sessions --resume / postprocessing recovery commands may be relevant, but I have not run them or verified them as a workaround. An atomic, recoverable transition from persisted TUS offset to finalized file, plus a regression test across restart, seems worth investigating. I have not identified a root cause or tested crash/forced shutdown, different backends, multiple replicas, longer waits, or data recovery.
Activity
reimon commentedon Oct 31, 2026
Follow-up on the documented administrative recovery command: the local session list showed three synthetic 11-byte sessions at offset 11 with status
uploading. Runningstorage-users uploads sessions --id <id> --resumeseparately for each returned exit code 0. On the next list, two of the three remained; I did not establish the outcome of the missing entry or successfully read its target, so this is not evidence of a successful recovery. A later attempt to prepare a fresh test file failed its initial assertion, with cause not yet determined; the lab may have become unhealthy. No cleanup command was run. Further investigation should correlate each session with the target and verify bytes and accessibility after recovery, preferably in a fresh independent installation.