Skip to content

Proposed fix to file upload race condition#2436

Open
chong-he wants to merge 2 commits intodappnode:developfrom
chong-he:file-upload
Open

Proposed fix to file upload race condition#2436
chong-he wants to merge 2 commits intodappnode:developfrom
chong-he:file-upload

Conversation

@chong-he
Copy link
Copy Markdown

@chong-he chong-he commented May 6, 2026

Context

This is a race condition for a fresh install of a DAppNode package, where if there is a file upload involved, the package will crash on the first run, as described in the issue below:

dappnode/DAppNodePackage-anchor-generic#6

Approach

Removed the start/stop logic. docker cp works on containers in any state (created, stopped, or running). The container no longer gets prematurely started before the file is ready.

Test instructions

Tested on both Anchor and SSV packages, the crash-on-first-run when import operator mode is selected is no longer there, i.e., it successfully run on fresh setup.

Disclaimer: the solution is 100% generated by Claude code, I only tweak the comments a bit

@chong-he chong-he requested a review from a team as a code owner May 6, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant