Help Required for setting up gaia hub using CLI

Hello everyone,

I have recently configured my Gaia hub. As the next step, I want to configure my Gaia hub as the default app storage hub.

I tried using the Stacks-cli way following the forum post and Stacks-cli docs. I hit the below roadblocks. Appreciate any leads on the same. Thank you so much.

  1. get_app_keys and gaia_sethub commands are failing with the below error, unable to make getfile/putfile command.

$ export BACKUP_PHRASE=“97cs6kzsUiXTQuHzHpDvV6otS2WKySCPPWYi/tgz4AVGf7yrEnqFTY6s/ZeZ3qYIByfGB5stzpmogN6BGRSixfaMYrRmqiZhxvzYQ52ZzzM=”
[email protected]:~$ stx get_app_keys “$BACKUP_PHRASE” lockwise.id.blockstack https://blocksurvey.io
Enter password:
Error: Non-base58 character
at Object.decode (/home/gaia/.nvm/versions/node/v16.1.0/lib/node_modules/@stacks/cli/node_modules/base-x/src/index.js:115:11)
at Object.decode (/home/gaia/.nvm/versions/node/v16.1.0/lib/node_modules/@stacks/cli/node_modules/bs58check/base.js:39:25)
at Object.fromBase58Check (/home/gaia/.nvm/versions/node/v16.1.0/lib/node_modules/@stacks/cli/node_modules/bitcoinjs-lib/src/address.js:11:29)
at BlockstackNetwork.coerceAddress (/home/gaia/.nvm/versions/node/v16.1.0/lib/node_modules/@stacks/cli/node_modules/blockstack/src/network.ts:84:42)
at /home/gaia/.nvm/versions/node/v16.1.0/lib/node_modules/@stacks/cli/node_modules/blockstack/src/network.ts:353:62
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Non-base58 character

  1. stx authenticator is starting on port 8888. But not sure how to proceed, since blockstack browser is not active anymore. Any guidance on this is appreciated.

stx authenticator “http://gaia.blsy.me:3000” “$BACKUP_PHRASE” “https://hub.blockstack.org” 8888
Press Ctrl+C to exit
Authentication server started on 8888

  1. With the new keychain, couldn’t proceed further. As I couldn’t get app-keys without domain name and register subdomain command also fails with the same error ,Invalid command arguments.

stx get_app_keys “$BACKUP_PHRASE” 1PQ4NSLCJLbge95AXd8tWmY6TX8KfxduPM https://blocksurvey.io
Invalid command arguments: Schema “#/items/1/pattern” failed validation (problem: “should match pattern “^([0-9a-z_.±]{3,37})$|^([0-9a-z_±]{1,37}).([0-9a-z_.±]{3,37})$|^ID-[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{1,35}$””, cause: “{“pattern”:”^([0-9a-z_.±]{3,37})$|^([0-9a-z_±]{1,37}).([0-9a-z_.±]{3,37})$|^ID-[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{1,35}$"}")

  1. Also, make_keychain command generates 24 word seed phrase and stx encrypt_keychain fails for the newly created key, as it throws the below error.

Invalid command arguments: Schema “#/items/1/pattern” failed validation (problem: “should match pattern “^([0-9a-z_.±]{3,37})$|^([0-9a-z_±]{1,37}).([0-9a-z_.±]{3,37})$|^ID-[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{1,35}$””, cause: “{“pattern”:”^([0-9a-z_.±]{3,37})$|^([0-9a-z_±]{1,37}).([0-9a-z_.±]{3,37})$|^ID-[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{1,35}$"}")

Hi Harini,

I think these may be bugs in the CLI itself. Would you mind posting this comment to the CLI’s Github repo here? GitHub - blockstack/stacks.js: JavaScript libraries for identity, auth, storage and transactions on the Stacks blockchain. Thanks!

Thank you for the quick response, Jude @jude . I have opened a new github issue. Meanwhile, requesting you to guide me on the best approach to setup the custom app level Gaia. I have my Gaia hub and bucket configured.However, I’m not sure how to implement it at the app level. Requesting your inputs on the same. Thank you so much.

Thanks for opening the issue! I replied on Github.