Skip to content

Conversation

@echowandere
Copy link
Contributor

Was debugging a disk cache issue and got this in my logs:

[2026-01-12T10:23:45Z TRACE backend] created disk state cache dir path="/tmp/anvil-state-12-01-2026-10-23"
[2026-01-12T10:23:45Z TRACE backend] wrote state json file hash=0xabcd...
[2026-01-12T10:23:46Z ERROR backend] Failed to load state snapshot hash=0xef01... err="Permission denied (os error 13)"

Spent way too long checking the read path because the error said "Failed to load", but the actual problem was the write failing due to permissions. Then I checked the code and realized line 71 in the write function just copied the error message from the read function below it. Changed it to say "Failed to write" so it actually matches what's happening.

@grandizzy grandizzy added this pull request to the merge queue Jan 12, 2026
Merged via the queue into foundry-rs:master with commit cac0f28 Jan 12, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants