"Migrations" -- Returned error: authentication needed: password or unlock.

0 votes

truffle migrate command is giving the following error

1_initial_migration.js
======================
   Deploying 'Migrations'
   ----------------------
Error:  *** Deployment Failed ***
"Migrations" -- Returned error: authentication needed: password or unlock.
    at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deployment.js:364:1
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

How to solve this?

Jan 17 in Blockchain by slayer
• 29,040 points
319 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

By default, the accounts are locked and are not allowed to make transactions. So, to migrate the contract, you should unlock the account. 

To unlock the account, you can do this:

personal.unlockAccount("<account_address>")

Enter the password and then try truffle migrate

answered Jan 17 by Omkar
• 65,850 points

Related Questions In Blockchain

0 votes
1 answer

How to solve “ltdl.h: No such file or directory” error?

It seems like you are missing header ...READ MORE

answered Jul 26, 2018 in Blockchain by slayer
• 29,040 points
166 views
0 votes
1 answer

How to solve “Error: Expected a Resource or Concept”?

There are few errors in code. I ...READ MORE

answered Jul 31, 2018 in Blockchain by slayer
• 29,040 points
180 views
0 votes
1 answer

Truffle Error: Migrations contract constructor expected

You are not using constructor() public { ...READ MORE

answered Aug 10, 2018 in Blockchain by digger
• 27,620 points
169 views
0 votes
1 answer

web3.eth.sendSignedTransaction() always return “Returned error: nonce too low”

This bit of code looks wrong: var rawTx ...READ MORE

answered Oct 1, 2018 in Blockchain by slayer
• 29,040 points
308 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
65 views
0 votes
1 answer
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 65,850 points
29 views
0 votes
0 answers

Error: Unexpected token o in JSON at position 1

I have been working with Interacting a ...READ MORE

Mar 6 in Blockchain by saeedi
• 120 points

edited Mar 6 by Omkar 116 views
+1 vote
1 answer

Ethereum Error: authentication needed: password or unlock

First, make sure you have an account. web3.personal.listAccounts If ...READ MORE

answered Aug 8, 2018 in Blockchain by Omkar
• 65,850 points
301 views
0 votes
1 answer

geth personal.newAccount() shows password error

You have to pass the password as ...READ MORE

answered Jan 16 in Blockchain by Omkar
• 65,850 points
18 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.