decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

Issue running the node in Docker, possibly caused by carriage returns #39

Closed dospunk closed 7 years ago

dospunk commented 7 years ago

Whenever I try to run the node in Docker, I get this error

/bin/sh: 1: /decentraland/bin/start: not found

I'm on Windows 10 using Docker Toolbox

dospunk commented 7 years ago

Changing the CMD of the Dockerfile from CMD /decentraland/bin/start to CMD sh /decentraland/bin/start results in this error

: not foundecentraland/bin/start: 2: /decentraland/bin/start:
    /decentraland/bin/start: 3: /decentraland/bin/start: ./bin/decentraland-node: not found

So the start script is running, but the system is now unable to find ./bin/decentraland-node

dospunk commented 7 years ago

it seems that the line #!/bin/bash in start is what's causing the first line of the error

UPDATE: it was actually the carriage returns created by Windows

dospunk commented 7 years ago

It actually seems that all the errors stopping it from running were caused by carriage returns, specifically those in the files in /bin

However, now that it is running, I'm getting this output

[info] Chain is loading.
[info] Checkpoints are enabled.
[info] Coin cache is enabled.
[info] Content server listening on port 9301
[info] Opening ChainDB...
[info] Chain is loading.
[info] Checkpoints are enabled.
[info] Coin cache is enabled.
[info] Opening ChainDB...
[debug] Error: IO error: data/testnet/chain.ldb: Invalid argument
[error] IO error: data/testnet/chain.ldb: Invalid argument
[error] IO error: data/testnet/chain.ldb: Invalid argument
Error: IO error: data/testnet/chain.ldb: Invalid argument
[error] IO error: data/testnet/chain.ldb: Invalid argument
Error: IO error: data/testnet/chain.ldb: Invalid argument
[debug] Error: IO error: data/testnet/chain.ldb: Invalid argument
dospunk commented 7 years ago

Whelp, at the end of it all it turns out what I needed to do was remove the carriage returns from the files in bin and follow the instructions in this issue