MinaProtocol / mina

Mina is a cryptocurrency protocol with a constant size blockchain, improving scaling while maintaining decentralization and security.
https://minaprotocol.com
Apache License 2.0
1.99k stars 529 forks source link

Invalid Keypair Permissions Crash #6654

Closed sandhao closed 3 years ago

sandhao commented 4 years ago

coda_crash_report_2020-11-11_13-00-05.457919.tar.gz

garethtdavies commented 4 years ago

@sandhao you need to set the permissions correctly on the private keyfile.

Corrupted coda keypair: insecure permissions on `/usr/local/bin/my-wallet`. They should be 0600, they are 777\\\n  \\nHint: chmod 600 /usr/local/bin/my-wallet\\\n  \\ninsecure permissions on `/usr/local/bin`. They should be 0700, they are 777\\\n  \\nHint: chmod 700 /usr/local/bin\\\n  \\n

Move your keypair into a subdirectory and give the subdirectory 0700 permissions and the keyfile 0600 permissions.

gnosed commented 4 years ago

coda_crash_report_2020-11-11_18-25-43.776950.tar.gz

garethtdavies commented 4 years ago

@gnosed this is a seperate issue can you open a new one.

"level":"Fatal","source":{"module":"Init__Coda_run","location":"File \"src/app/cli/src/init/coda_run.ml\", line 575, characters 2-26"},"message":"Unhandled top-level exception: $exn\nGenerating crash report","metadata":{"exn":"(monitor.ml.Error\n  (Failure \"bin_read_t: version read 2 does not match expected version 1\")\n
garethtdavies commented 4 years ago

@gnosed looks like yours is covered here https://github.com/MinaProtocol/mina/issues/6623. Remove ~/.coda-config and try again.

gnosed commented 4 years ago

@garethtdavies Yes, removing the .coda-config, fixed the problem. Thanks!

mrmr1993 commented 3 years ago

The error message and instructions should be much clearer in the next network due to #6741. Will close this once that PR has merged into the develop branch.