solana-test-validator Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist
See original GitHub issueHi, I’m running an Ubuntu 18.04 WSL2 machine under Windows 10.
When running the solana-test-validator line I got the following messages
Ledger location: test-ledger
Log: test-ledger/validator.log
Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist
I tried with the 1.7.0 version and the LTS solana-cli 1.6.22 (src:45e3cd37; feat:3316993441)
Any clues? thanks!
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7
Top Results From Across the Web
Solana hello_world problem on Windows 10/WSL2/Ubuntu ...
When starting your WSL terminal the starting directory is /mnt/c/... you need to cd ~/ and then run solana-test-validator. Share.
Read more >WSL + anchor: ERROR "admin.rpc does not exist"
... to test the app I get the following error: "Unable to connect to validator: Client error: .anchor/test-ledger/admin.rpc does not exist".
Read more >Starting a Validator - Solana Docs
Confirm The Cluster Is Reachable#. Before attaching a validator node, sanity check that the cluster is accessible to your machine by fetching the...
Read more >Get local Solana env running. | buildspace
... or you get the following error Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist make sure you do the...
Read more >Dockerでsolana-test-validatorするとUnable to connect to ...
Dockerでsolana-test-validatorするとUnable to connect to validatorエラー ... to validator: Client error: test-ledger/admin.rpc does not exist.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into this issue as well initially. I found out that
solana-test-validatorhas to be run from the route directory. so entercd ~/then entersolana-test-validatorI did reinstall everything to make sure nothing get messed up (even the virtual machine) but maybe you can try without doing that first.
See the /mnt/c/Users/… ? that means that you are on a mounted windows image inside your WSL Ubuntu (or whatever distro you installed) machine. you should do command cd … until you are out of the mnt directory and then change to home/<USER_NAME_YOU_CHOOSE>. that will take you out of the windows mounted system to the actual linux WSL, and then working from there everything should be fine. Take into account that everytime you open a new bash it will open by default on the mnt system, so you need to change it.