[BUG] : Issue with Creating a Testnet Account Using near account create-account on WSL #2348
Open
2 of 6 tasks
Labels
bug
Something isn't working
Description
Description:
I encountered an issue when trying to create a testnet account using the near account create-account command (Short & Full) on WSL. The command fails with this error message :
Error:
0: Failed to save password to keychain. You may need to install the secure keychain package by following this instruction: https://github.com/jaraco/keyring#using-keyring-on-headless-linux-systems
1: Platform secure storage failure: DBus error: Failed to connect to socket /run/user/0/bus: No such file or directory
2: DBus error: Failed to connect to socket /run/user/0/bus: No such file or directory
3: Failed to connect to socket /run/user/0/bus: No such file or directory
Steps to Reproduce:
Run the following command in WSL:
Short command : near create-account <your-account-id.testnet> --useFaucet
Full command : near account create-account sponsor-by-faucet-service <your-account-id.testnet> autogenerate-new-keypair save-to-keychain network-config testnet create
Expected Behavior:
New account "<your-account-id.testnet>" created successfully
Actual Behavior:
The command fails, and the testnet account is not created. It appears that WSL is unable to handle the credential storage process properly.
Page URL
https://docs.near.org/build/smart-contracts/quickstart#deploy-the-contract
Impact
Suggested Fix
In windows / linux, we should use save-to-legacy-keychain instead of save-to-keychain
Create a Testnet Account
Now that you know the contract is passing the tests, let's create a testnet account in which to deploy the contract. near-cli supports two versions of some commands - full and short one. It's up to you which format you prefer, but full version provides more features.
Full Command
Replace <your-account-id.testnet> with a custom name
near account create-account sponsor-by-faucet-service <your-account-id.testnet> autogenerate-new-keypair save-to-legacy-keychain network-config testnet create
The text was updated successfully, but these errors were encountered: