Giter Site home page Giter Site logo

Comments (4)

333miiko avatar 333miiko commented on September 21, 2024 1

You will need to run the following

systemctl stop zen-node
docker run --rm --net=host -p 9033:9033 -p 18231:18231 -v /mnt/zen:/mnt/zen --name zen-node -it --entrypoint=/bin/bash whenlambomoon/zend:latest
gosu user zend -reindex

Once it finishes reindexing you can exit and restart the zen-node normally

# ctrl+c
exit
docker stop zen-node
systemctl restart zen-node

Hope this helps!

from docker-zen-node.

bginter avatar bginter commented on September 21, 2024

Thank you for the fast response!

That didn't quite work because entrypoint.sh sets up several things first, so the gosu user command doesn't work because the "user" isn't persisted to /etc/passwd, I think, and gets setup during container startup.

I copied the initialization blocks from entrypoint.sh, created /usr/local/bin/reindex.sh and got it working. I'll send a pull request illustrating how I was able to make this work, though you may have improvements or a better idea about how to do it. Maybe refactor it to init.sh and source that from entrypoint.sh or reindex.sh?

I appreciate the assistance!

from docker-zen-node.

333miiko avatar 333miiko commented on September 21, 2024

Ah sorry, yes you're correct. I actually think you could've just ran:

docker run --rm --net=host -p 9033:9033 -p 18231:18231 -v /mnt/zen:/mnt/zen --name zen-node whenlambomoon/zend:latest zend -reindex

This will pass the reindex to the entrypoint. Glad you got it working in the end.

from docker-zen-node.

bginter avatar bginter commented on September 21, 2024

Aha, I figured there was a simpler way. :)

from docker-zen-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.