Skip to content

Comments

Create default directory if it doesn't exist#200

Merged
jking-aus merged 2 commits intosigp:unstablefrom
AgeManning:create-dir
Mar 20, 2025
Merged

Create default directory if it doesn't exist#200
jking-aus merged 2 commits intosigp:unstablefrom
AgeManning:create-dir

Conversation

@AgeManning
Copy link
Member

@AgeManning AgeManning commented Mar 20, 2025

Issue Addressed

I'm trying to run Anchor on unstable via anchor node on a fresh build.

It fails because:

2025-03-20T02:24:41.373883Z  INFO client: Starting the Anchor client beacon_nodes="[\"http://localhost:5052/\"]" execution_nodes="[\"http://localhost:8545/\", \"ws://localhost:8546/\"]" data_dir="\"/home/age/.anchor/holesky\""
2025-03-20T02:24:41.374907Z  INFO client: Creating private key path=/home/age/.anchor/holesky/key.pem
2025-03-20T02:24:41.414674Z ERROR anchor: Failed to start Anchor reason="Unable to write private key: Output(Os { code: 2, kind: NotFound, message: \"No such file or directory\" })"

The default path doesn't exist.

This PR will create the directory if it doesn't exist allowing the node to start part this point.

@AgeManning AgeManning changed the base branch from stable to unstable March 20, 2025 02:38
@AgeManning AgeManning requested a review from Zacholme7 March 20, 2025 02:40
@jking-aus jking-aus merged commit 5e466f0 into sigp:unstable Mar 20, 2025
10 checks passed
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.

2 participants