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

Attempting to start faucet results in error "Key Faucet not found" #1

Closed
kristovatlas opened this issue Dec 4, 2023 · 2 comments
Closed

Comments

@kristovatlas
Copy link

kristovatlas commented Dec 4, 2023

When going through tutorial.md, the gnokey command appears to complete successfully:

% gnokey add --recover Faucet
Enter a passphrase to encrypt your key to disk:
Repeat the passphrase:
Enter your bip39 mnemonic
source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast

* Faucet (local) - addr: g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 pub: gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pq0skzdkmzu0r9h6gny6eg8c9dc303xrrudee6z4he4y7cs5rnjwmyf40yaj, path: <nil>

The node appears to have started successfully with blocks discovered:

% gnoland start
.level 1 .msg Starting multiAppConn [impl multiAppConn [module proxy]]
...
.level 1 .msg Finalizing commit of block with 0 txs [height 3 hash [76 1 90 181 106 33 249 151 146 177 175 110 149 43 61 22 66 46 20 68 232 65 175 125 203 239 65 205 73 193 125 62] root [127 88 35 216 64 216 251 57 53 67 223 50 24 56 194 68 182 167 15 177 190 96 176 232 169 72 70 29 131 53 193 179] [module consensus]]
.level 1 .msg Block{
  Header{
    Version:        v1.0.0-rc.0
    ChainID:        dev
    Height:         3
    Time:           2023-12-04 19:11:56.737909 +0000 UTC
    NumTxs:         0
    TotalTxs:       0
    AppVersion:
    LastBlockID:    012E6D5CAA45D4AB669498833E4016EB2DEEE1780172CE9EE7832A646D110BBE:1:70E7CEB1EC7F
    LastCommit:     [242 215 248 242 164 129 23 64 252 235 240 144 105 155 103 234 217 30 141 69 218 195 59 88 92 19 2 138 143 241 163 199]
    Data:           []
    Validators:     [145 108 86 196 36 253 197 206 101 22 247 112 186 228 43 31 140 213 86 230 3 201 189 120 123 97 229 197 241 35 81 51]
    NextValidators: [145 108 86 196 36 253 197 206 101 22 247 112 186 228 43 31 140 213 86 230 3 201 189 120 123 97 229 197 241 35 81 51]
    App:            [127 88 35 216 64 216 251 57 53 67 223 50 24 56 194 68 182 167 15 177 190 96 176 232 169 72 70 29 131 53 193 179]
    Consensus:      [184 168 103 92 89 134 82 76 96 65 34 95 215 186 32 109 130 205 92 58 55 80 67 240 66 252 221 118 142 21 146 236]
    Results:        []
    Proposer:       g1hhma7uxkjefg8nsz70f3sujqpuzq6mvgl3jm2e
  }#[76 1 90 181 106 33 249 151 146 177 175 110 149 43 61 22 66 46 20 68 232 65 175 125 203 239 65 205 73 193 125 62]
  Data{

  }#[]
  Commit{
    BlockID:    012E6D5CAA45D4AB669498833E4016EB2DEEE1780172CE9EE7832A646D110BBE:1:70E7CEB1EC7F
    Precommits:
      Vote{0:BDF7DF70D696 2/00/2(Precommit) 012E6D5CAA45 8EE83EF68812 @ 2023-12-04T19:11:56.737909Z}
  }#[242 215 248 242 164 129 23 64 252 235 240 144 105 155 103 234 217 30 141 69 218 195 59 88 92 19 2 138 143 241 163 199]
}#[76 1 90 181 106 33 249 151 146 177 175 110 149 43 61 22 66 46 20 68 232 65 175 125 203 239 65 205 73 193 125 62] [[module consensus]]
.level 1 .msg Executed block [height 3 validTxs 0 invalidTxs 0 [module state]]
.level 0 .msg Commit synced commit 436F6D6D697449447B5B3132372038382033352032313620363420323136203235312035372035332036372032323320353020323420353620313934203638203138322031363720313520313737203139302039362031373620323332203136392037322037302032392031333120353320313933203137395D3A337D
.level 1 .msg Committed state [height 3 txs 0 appHash 7F5823D840D8FB393543DF321838C244B6A70FB1BE60B0E8A948461D8335C1B3 [module state]]
.level 0 .msg Broadcast [channel 32 msgBytes 0A172F746D2E4E6577526F756E64537465704D6573736167651206080818012007 [module p2p]]
.level 0 .msg Attempt to update stats for non-existent peer [peer  [module consensus]]
.level 0 .msg Received tick [old_ti {3s 3 0 RoundStepPropose} new_ti {4.977469s 4 0 RoundStepNewHeight} [module consensus]]
.level 0 .msg Scheduled timeout [dur 4.977469s height 4 round 0 step RoundStepNewHeight [module consensus]]
.level 1 .msg Timed out [dur 4.977469s height 4 round 0 step RoundStepNewHeight [module consensus]]
.level 0 .msg Received tock [timeout 4.977469s height 4 round 0 step RoundStepNewHeight [module consensus]]
.level 1 .msg enterNewRound(4/0). Current: 4/0/RoundStepNewHeight [[[height 4 round 0]] [module consensus]]
.level 1 .msg enterPropose(4/0). Current: 4/0/RoundStepNewRound [[[height 4 round 0]] [module consensus]]
.level 0 .msg This node is a validator [[[height 4 round 0]] [module consensus]]
.level 1 .msg enterPropose: Our turn to propose [[proposer g1hhma7uxkjefg8nsz70f3sujqpuzq6mvgl3jm2e privValidator PrivValidator{g1hhma7uxkjefg8nsz70f3sujqpuzq6mvgl3jm2e LH:3, LR:0, LS:3} [height 4 round 0]] [module consensus]]
.level 0 .msg Received tick [old_ti {4.977469s 4 0 RoundStepNewHeight} new_ti {3s 4 0 RoundStepPropose} [module consensus]]
.level 0 .msg Timer already stopped [[module consensus]]
.level 0 .msg Scheduled timeout [dur 3s height 4 round 0 step RoundStepPropose [module consensus]]
.level 1 .msg Signed proposal [height 4 round 0 proposal Proposal{4/0 (E5A040E6F3F792D4E898667ED72D454EB5A342E40151828E5A3CCEDEE093035A:1:EBB9C816C903, -1) 6ADB756A0392 @ 2023-12-04T19:12:06.79523Z} [module consensus]]
...

However, starting the faucet produces this error message:

% gnofaucet serve --chain-id dev Faucet
Key Faucet not found
@leohhhn
Copy link
Owner

leohhhn commented Dec 6, 2023

Hey, gnokey saves keypairs in its home directory, which you can check by running gnokey -help.

In order for gnofaucet to see your keypairs, it needs to read from the same -home directory as gnokey. You can pass in the home parameter for gnofaucet with -home <path_to_home>. Please try this and let me know how it goes :)

Small heads up, this repo is migrating to here.

@iuricmp
Copy link

iuricmp commented Dec 16, 2023

Hey @leohhhn , thanks for your support!

I had the same issue.

gnokey list

# output:
# 0. iuri (local) - addr: g1rck......
# 1. test1 (local) - addr: g1jg8.......

gnokey --help

# output:
# -home /Users/iuri/Library/Application Support/gno  home directory

Then I ran the command below and it did not work:

gnofaucet serve --chain-id dev --home /Users/iuri/Library/Application Support/gno iuri

After several attempts, I realized that I had to change my folder to:

gnofaucet serve --chain-id dev --home /Users/iuri/Library/Application\ Support/gno iuri

# Then I got this:
Enter password
Starting server at port 5050

Maybe the docs could be more clear about this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants