Network up to date

When I run this command “truffle migrate --network goerli” and get the following “error”:
$ truffle migrate --network goerli

Compiling your contracts…

Compiling .\contracts\Migrations.sol
Compiling .\contracts\SmartGrid.sol
Compiling .\contracts\SmartGrid.sol
Artifacts written to C:\Users\asafy\ExjobbFinal\build\contracts
Compiled successfully using:

  • solc: 0.8.11+commit.d7f03943.Emscripten.clang
    Network up to date.
1 Like

Hi @robinho46 could you please share the full error trace you receive?

1 Like

This is the message i get:
truffle migrate --netowrk goerli

Compiling your contracts…

Compiling .\contracts\Migrations.sol
Compiling .\contracts\SmartGrid.sol
Artifacts written to C:\Users\asafy\ExjobbFinal\build\contracts
Compiled successfully using:

  • solc: 0.8.11+commit.d7f03943.Emscripten.clang

Something went wrong while attempting to connect to the network at http://127.0.0.1:8545. Check your network configuration.
CONNECTION ERROR: Couldn’t connect to node http://127.0.0.1:8545.
Truffle v5.8.3 (core: 5.8.3)
Node v18.15.0

1 Like

@Flaveeu Now it says as before just “Network up to date.”. It was working before, i dont know why i get this error…

1 Like

@Flaveeu When i try the command truffle deploy i get this following error:

truffle deploy
Compiling your contracts…

Compiling .\contracts\Migrations.sol
Compiling .\contracts\SmartGrid.sol
Artifacts written to C:\Users\X\build\contracts
Compiled successfully using:

  • solc: 0.8.11+commit.d7f03943.Emscripten.clang

Something went wrong while attempting to connect to the network at http://127.0.0.1:8545. Check your network configuration.
CONNECTION ERROR: Couldn’t connect to node http://127.0.0.1:8545.
Truffle v5.8.3 (core: 5.8.3)
Node v18.15.0

1 Like

This is my network config in turffle-config.js:
networks: {
// Useful for testing. The development name is special - truffle uses it by default
// if it’s defined here and no other network is specified at the command line.
// You should run a client (like ganache, geth, or parity) in a separate terminal
// tab if you use this network and you must also set the host, port and network_id
// options below to some value.
//
development: {
host: “127.0.0.1”, // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: “*”, // Any network (default: none)
},

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.