artela-network / artela

Powerful blockchain node with Aspect programming enabled.
https://www.artela.network/
Apache License 2.0
101 stars 83 forks source link

Cannot run as docker #100

Closed ycc3000 closed 5 months ago

ycc3000 commented 5 months ago

dear, I run as docker-compose, it start up, but will stop unexpected. artelad command in docker container also does not work.

LukeNinjaX commented 5 months ago

Hi @ycc3000, can you please show me what error occurred, the output of docker logs and the output related to artelad startup?

ycc3000 commented 5 months ago

dear @luketheart , please see image below. when I exec into container and run ./artelad status or other commands, always get 'connection confused'

Weixin Image_20240401102150

LukeNinjaX commented 5 months ago

Sorry for the late reply. It seems that your db has a data problem, which may be caused by not having the correct rollback. You can try using artelad rollback --hard to rollback last height again. If this node is a validator, you also need to modify the wrong state data in ~/.artelad/data/priv_validator_state.json. If this still doesn't solve your problem, I recommend resetting your data and then starting your node from the latest snapshot according to https://docs.artela.network/develop/node/run-full-node.

ycc3000 commented 5 months ago

dear @luketheart , thank you for your response, I tried to create new environment and successfully. there's some hard code, eg: chain-id is artela_11820-1, not chain-id artela_11822-1, I have to use _testnet/node[0-3] for volume, change it will be failure, etc.

LukeNinjaX commented 5 months ago

Got it, thank you for your feedback, we will make some fixes.