Comments (4)
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.
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.
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.
Aha, I figured there was a simpler way. :)
from docker-zen-node.
Related Issues (20)
- Docker keeps filling drive up HOT 1
- update documentation HOT 2
- Hard fork build failing. HOT 13
- zen-secnodetracker stuck at "Unable to collect stats without a nodeid" after install HOT 1
- Are we allset for 2.0.16? HOT 2
- Hi, here is an error thrown on 4.0.1. please look into this one. it's a current node, and reapplied the install script HOT 2
- zend 2.0.17 HOT 3
- zend update 2.0.18
- new zend coming HOT 7
- Ipv6 issues HOT 1
- ZEN 2.0.18 Tech Note - Node unable to pass challenge HOT 1
- add "docker system prune" to master script??
- No config found. Exiting. HOT 1
- Maintaining Repository HOT 4
- Update to Zen 2.0.19 HOT 5
- is this repo relevant?
- Please update to zen 2001951, thx HOT 1
- Mandatory Software Upgrade: ZEN 2.0.20 HOT 1
- ZEN 2.0.20 will stop working at block height 736000 on Tue, 02 Jun 2020 HOT 1
- zen 2.0.22 info
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-zen-node.