solana-test-validator Unable to connect to validator: Client error: test-ledger/admin.rpc does not exist

See original GitHub issue

Hi, 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:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

7reactions
Meachocommented, Feb 28, 2022

I’m having this very same issue, below is a supporting file.

Error:admin.rpc

The test-ledger folder is created at runtime by the solana-test-validator command, so even thinking of getting the file (that’s if I find a sample anywhere) externally wouldn’t work…

I’m stuck.

I ran into this issue as well initially. I found out that solana-test-validator has to be run from the route directory. so enter cd ~/ then enter solana-test-validator

7reactions
Coloradetecommented, Aug 30, 2021

I did reinstall everything to make sure nothing get messed up (even the virtual machine) but maybe you can try without doing that first.

imagen

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found