"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,050 points
484 views

1 answer to this question.

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
• 67,120 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,050 points
217 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,050 points
217 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
198 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,050 points
379 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
105 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
• 67,120 points
54 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 233 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
• 67,120 points
389 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
• 67,120 points
19 views