Skip to content

Clef logs flood CLI while entering password during new account creation #28132

Closed
@subashcs

Description

System information

Geth version: geth version 1.12.2-stable
CL client & version: ---
OS & Version: mac OS ventura 13.5.1

Expected behaviour

When trying to create a new account using the clef command, the terminal prompts confirmation to enter 'ok'. After entering 'ok' on the CLI as input, the clef should prompt for a password in the command line without showing warning logs.

clef newaccount --keystore geth-tutorial/keystore

Actual behaviour

The clef CLI app floods the Command line with warning logs due to which I am not able to enter my password. Though, If I enter my password blindly and save it, It works, but, the behaviour is not intuitive as it becomes unclear for the user what to do.

Steps to reproduce the behaviour

  1. Open the Command line Interface and navigate to the folder you wish to initialize your keystore.
  2. Run command clef newaccount --keystore geth-tutorial/keystore
  3. The CLI will prompt for confirmation by entering 'ok', Enter 'ok' as input.
  4. Observe the flooding warning logs

Backtrace

Here's the CLI copy of the situation.

WARNING!

Clef is an account management tool. It may, like any software, contain bugs.

Please take care to
- backup your keystore files,
- verify that the keystore(s) can be opened with your password.

Clef is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.

Enter 'ok' to proceed:
> ok

## New account password

Please enter a password for the new account to be created (attempt 0 of 3)
> WARN [09-16|14:52:34.120] Failed to watch keystore folder          path=/Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore err="lstat /Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore: no such file or directory"
WARN [09-16|14:52:37.121] Failed to watch keystore folder          path=/Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore err="lstat Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore: no such file or directory"
WARN [09-16|14:52:40.123] Failed to watch keystore folder          path=/Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore err="lstat /Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore: no such file or directory"
WARN [09-16|14:52:43.129] Failed to watch keystore folder          path=/Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore err="lstat /Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore: no such file or directory"
WARN [09-16|14:52:46.129] Failed to watch keystore folder          path=/Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore err="lstat /Projects/learn/blockchain/privateblockchain/geth-tutorial/keystore: no such file or directory"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions