Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] : Issue with Creating a Testnet Account Using near account create-account on WSL #2348

Open
2 of 6 tasks
Amira1502 opened this issue Dec 5, 2024 · 0 comments
Open
2 of 6 tasks
Labels
bug Something isn't working

Comments

@Amira1502
Copy link
Contributor

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.

{D2675099-E756-4497-BFB5-B3D99945781F}

Page URL

https://docs.near.org/build/smart-contracts/quickstart#deploy-the-contract

Impact

  • Incorrect information
  • Missing information
  • Unclear explanation
  • Broken link
  • Code example doesn't work
  • Other (please specify in description)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: NEW❗
Status: No status
Development

No branches or pull requests

1 participant