[Bug] Cloud download fails on larger files (e.g. 178MB) — 'Operation failed. Check server logs for details.' #38
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom: Downloading a larger peer-cloud file (observed at ~178MB) fails in the UI with:
Smaller files download fine; the failure appears size/duration-related.
Likely cause (to confirm): the peer-content download path lacks chunked/resumable streaming and/or hits a proxy or RPC timeout for long transfers, and the error surfaced to the UI is the generic 'Operation failed' with no detail. Related to #30 (B22 generic 'Operation failed' on peer cloud download) — this is the large-file manifestation.
Where to look:
core/archipelago/src/api/handler/proxy.rs(~196-259) — peer-content stream / Range handling, any total-size or timeout capcontent.download-peerRPC handler — whether it buffers the whole file in memory vs streams, and its timeoutneode-ui/src/views/PeerFiles.vue(~515-554) — download error handling; surface the real server error, not a generic stringproxy_read_timeout/ buffering for large bodiesAcceptance: a 178MB+ peer file downloads successfully (chunked/streamed, no full-buffer), and on genuine failure the UI shows the actual server-side reason.
Fixed in commit
e456c970(together with #30). Large downloads (~178MB) failed because: the free path pulled the whole file as base64 over RPC (doubling it in node memory + the browser), the peer-content proxy buffered the entire file via resp.bytes(), and timeouts were too tight. Now: free downloads stream straight to disk from /api/peer-content (constant memory), the proxy uses hyper wrap_stream (no buffering) with a 900s timeout, nginx peer-content read timeout raised to 900s, and the FIPS client honors the per-request timeout. Pending live deploy verification on a large file.