A bug: The wallet passphrase entered was incorrect #23295

issue huangwb8 opened this issue on October 17, 2021
  1. huangwb8 commented at 9:43 AM on October 17, 2021: none

    Hi~

    I'm new to bitcoin, so I just start to use Bitcoin core on my Ubuntu server.

    I first created 2 wallet, one of which is called 'testwallet'.

    $  bitcoin-cli createwallet testwallet false false -passphrase="test1234567" false false true 
    

    However, when I try to unlock it for 60s:

    $  bitcoin-cli -rpcwallet="testwallet" walletpassphrase "test1234567" 60
    

    error returned:

    error code: -14
    error message:
    Error: The wallet passphrase entered was incorrect.
    

    It's a little bit confusing, because another one wallet seemed to be normal. Is it because I use one more wallets?

    Here is the environment of my machine and bitcoin-core:

    $ uname -a
    Linux <servername> 5.4.0-050400-generic [#201911242031](/bitcoin-bitcoin/201911242031/) SMP Mon Nov 25 01:35:10 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    
    $ bitcoin-cli getnetworkinfo
    {
      "version": 220000,
      "subversion": "/Satoshi:22.0.0/",
      "protocolversion": 70016,
      "localservices": "0000000000000409",
      "localservicesnames": [
        "NETWORK",
        "WITNESS",
        "NETWORK_LIMITED"
      ],
      "localrelay": true,
      "timeoffset": 0,
      "networkactive": true,
      "connections": 10,
      "connections_in": 0,
      "connections_out": 10,
      "networks": [
        {
          "name": "ipv4",
          "limited": false,
          "reachable": true,
          "proxy": "",
          "proxy_randomize_credentials": false
        },
        {
          "name": "ipv6",
          "limited": false,
          "reachable": true,
          "proxy": "",
          "proxy_randomize_credentials": false
        },
        {
          "name": "onion",
          "limited": true,
          "reachable": false,
          "proxy": "",
          "proxy_randomize_credentials": false
        },
        {
          "name": "i2p",
          "limited": true,
          "reachable": false,
          "proxy": "",
          "proxy_randomize_credentials": false
        }
      ],
      "relayfee": 0.00001000,
      "incrementalfee": 0.00001000,
      "localaddresses": [
      ],
      "warnings": ""
    }
    
    

    Hope somebody could help. Thanks a lot!

  2. huangwb8 added the label Bug on Oct 17, 2021
  3. huangwb8 renamed this:
    walletpassphrase: The wallet passphrase entered was incorrect
    walletpassphrase bug: The wallet passphrase entered was incorrect
    on Oct 17, 2021
  4. huangwb8 renamed this:
    walletpassphrase bug: The wallet passphrase entered was incorrect
    A bug: The wallet passphrase entered was incorrect
    on Oct 17, 2021
  5. promag commented at 9:56 AM on October 17, 2021: member

    I first created 2 wallet, one of which is called 'testwallet'.

    $  bitcoin-cli createwallet testwallet false false -passphrase="test1234567" false false true 
    

    This is not the correct call, try:

    $  bitcoin-cli createwallet testwallet false false test1234567 false false true 
    
  6. promag commented at 10:03 AM on October 17, 2021: member

    In case you are wondering, the actual passphrase used was -passphrase=test1234567, so the following should work:

    $ bitcoin-cli -rpcwallet=testwallet walletpassphrase -passphrase=test1234567 60
    
  7. MarcoFalke added the label Questions and Help on Oct 17, 2021
  8. MarcoFalke removed the label Bug on Oct 17, 2021
  9. huangwb8 commented at 10:38 AM on October 17, 2021: none

    @promag Thanks for quick replying!

    I try codes you provided and they works!

    $  bitcoin-cli createwallet testwallet false false -passphrase=test1234567 false false true 
    {
      "name": "testwallet",
      "warning": ""
    }
    
    $  bitcoin-cli -rpcwallet=testwallet walletpassphrase -passphrase=test1234567 60  # work well
    $  bitcoin-cli -rpcwallet=testwallet walletpassphrase -passphrase="test1234567" 60  # work well
    
    

    Next, I try to test more complicated passwords like test!123@45=67:

    $  bitcoin-cli createwallet testwallet false false -passphrase=test!123@45=67 false false true
    -bash: !123: event not found
    

    It's hard to even create this kind of passwords! Any suggestions? Thanks a lot!

  10. promag commented at 10:43 AM on October 17, 2021: member

    Don't use -passphrase=, it's not doing what you think.

    Try

    bitcoin-cli createwallet testwallet false false "test!123@45=67" false false true
    
  11. huangwb8 commented at 10:47 AM on October 17, 2021: none
    $ bitcoin-cli createwallet testwallet false false "test!123@45=67" false false true
    -bash: !123: event not found
    

    This bug still appeared.

  12. promag commented at 10:49 AM on October 17, 2021: member

    It’s not a bug, you have to escape !

  13. huangwb8 commented at 10:52 AM on October 17, 2021: none

    OK! I think the ! should not be used in the password. Thanks a lot!

  14. huangwb8 closed this on Oct 17, 2021

  15. MarcoFalke commented at 10:52 AM on October 17, 2021: member

    Indeed, it should be possible to generate a password of the same strength with only alpha-numeric characters.

  16. huangwb8 commented at 10:57 AM on October 17, 2021: none

    Indeed, it should be possible to generate a password of the same strength with only alpha-numeric characters.

    Thanks. You're so nice!

  17. DrahtBot locked this on Oct 30, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-26 06:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me