1

I started monerod on my linux server to sync the (pruned) blockchain and start working with a wallet.

The syncing completed fine.
However trying to restart monerod the next day yielded the following error. How can I resolve it?

$ LANG=C LC_ALL=C  ./monerod --prune-blockchain
2021-05-01 07:56:27.451 I Monero 'Oxygen Orion' (v0.17.2.0-release)
2021-05-01 07:56:27.451 I Initializing cryptonote protocol...
2021-05-01 07:56:27.451 I Cryptonote protocol initialized OK
2021-05-01 07:56:27.451 I Initializing core...
2021-05-01 07:56:27.452 I Loading blockchain from folder /home/deploy/.bitmonero/lmdb ...
2021-05-01 07:56:27.529 I Loading checkpoints
2021-05-01 07:56:27.535 I Core initialized OK
2021-05-01 07:56:27.535 I Initializing p2p server...
2021-05-01 07:56:27.540 F Error starting server: Failed to bind IPv4 (set to required)
2021-05-01 07:56:27.540 I Deinitializing core...
2021-05-01 07:56:27.560 I Stopping cryptonote protocol...
2021-05-01 07:56:27.560 I Cryptonote protocol stopped successfully
2021-05-01 07:56:27.561 E Exception in main! Failed to initialize p2p server.
2
  • 1
    Are you sure you don't already have it running? killall monerod You can only run one daemon server process. – jtgrassie May 1 at 8:11
  • ok - without doing anything else, running monerd again now works. probably a stale process as you said. – de. May 1 at 8:13
1

This error is typically due to trying to start more that one daemon process or a previous process not exiting cleanly. Thus make absolutely sure there is no other monerod process running, such as running killall monerod, then trying to start again should fix the issue (or a reboot).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.