0

truffle migrate it gives me this error

I can't migrate the contracts. Here´s what I do:

truffle init
truffle compile
truffle migrate
Jasperan
  • 2,154
  • 1
  • 16
  • 40
  • its work for me , my versions : Truffle v5.4.26 (core: 5.4.26) Node v16.13.2 – Mahdad Jan 18 '22 at 05:31
  • Truffle v5.4.29 (core: 5.4.29) Solidity v0.5.16 (solc-js) Node v16.13.0 Web3.js v1.5.3 – Ibrahim Ben Sabih El Imrany Jan 19 '22 at 00:11
  • please make a new folder and run following again , and then send its errors in this post (not image) : truffle init truffle compile truffle migrage – Mahdad Jan 19 '22 at 02:30
  • C:\Users\ibrah\OneDrive\Bureau\test>truffle init Starting init... ================ > Copying project files to C:\Users\ibrah\OneDrive\Bureau\test Init successful, sweet! Try our scaffold commands to get started: $ truffle create contract YourContractName # scaffold a contract $ truffle create test YourTestName # scaffold a test http://trufflesuite.com/docs – Ibrahim Ben Sabih El Imrany Jan 19 '22 at 23:34
  • C:\Users\ibrah\OneDrive\Bureau\test>truffle compile Compiling your contracts... =========================== > Compiling .\contracts\Migrations.sol > Artifacts written to C:\Users\ibrah\OneDrive\Bureau\test\build\contracts > Compiled successfully using: - solc: 0.8.11+commit.d7f03943.Emscripten.clang C:\Users\ibrah\OneDrive\Bureau\test> C:\Users\ibrah\OneDrive\Bureau\test> C:\Users\ibrah\OneDrive\Bureau\test> C:\Users\ibrah\OneDrive\Bureau\test> – Ibrahim Ben Sabih El Imrany Jan 19 '22 at 23:34
  • C:\Users\ibrah\OneDrive\Bureau\test>truffle migrage Compiling your contracts... =========================== > Compiling .\contracts\Migrations.sol > Artifacts written to C:\Users\ibrah\OneDrive\Bureau\test\build\contracts > Compiled successfully using: - solc: 0.8.11+commit.d7f03943.Emscripten.clang – Ibrahim Ben Sabih El Imrany Jan 19 '22 at 23:40
  • > Something went wrong while attempting to connect to the network at http://127.0.0.1:7545. Check your network configuration. Could not connect to your Ethereum client with the following parameters: - host > 127.0.0.1 - port > 7545 - network_id > 5777 Please check that your Ethereum client: - is running - is accepting RPC connections (i.e., "--rpc" or "--http" option is used in geth) - is accessible over the network - is properly configured in your Truffle configuration file (truffle-config.js) Truffle v5.4.29 (core: 5.4.29) Node v16.13.0 – Ibrahim Ben Sabih El Imrany Jan 19 '22 at 23:41
  • all your 3 steps are true. just you should run a local test network like 'ganache'. please install ganache and run it and then try truffle migrage (or truffle migrate) command again. https://trufflesuite.com/ganache/ – Mahdad Jan 20 '22 at 04:14
  • i alredy have ganache installed – Ibrahim Ben Sabih El Imrany Jan 22 '22 at 12:23

0 Answers0