-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for using upgrade tool in docker environment #7
Comments
I have tried the following, FWIW (excuse having a number of "parity" paths in there, that's leftover from "ye ole times"): docker-compose setup
Build upgrade toolRun the below within the container, i.e. after
Run the actual update
This isn't the nicest or cleanest way, but all that's needed is a one-off after all, and it runs the migration successfully on a DB previously run with OE v3.0.0 - but then running And when I restart OE to repair the DB, it ends up not being able to recover with this:
Is this a problem of how I'm running this or an issue with the DB upgrade tool itself (in the latter case, should probably move to a different issue)? |
Thanks to @rakita for answering some questions of me on chat recently, confirming this should be a problem of my setup here, that he tested upgrades successfully (which I assumed anyhow but wanted to make sure) and that RocksDB versions should not be an issue. I had an idea this morning of what may be the cause here, and it may come down to permissions: The |
OK, that idea did not work out. Despite corrected permissions, the same errors do come again, at least on this Ropsten DB I used for testing. And as there's no time left until Berlin to figure more things out, I guess I'll have to re-sync all our nodes from scratch and we'll need to pay a lump of money and invest a lot of syncing time to run more archive nodes as we otherwise can't have event logs for the last 2 years available any more (which our DApp needs, at least for our contracts). |
@KaiRo-at please try this pull request for updated lib: openethereum/openethereum#329 |
Thanks, I will try once a release with those changes is out as a docker container. Unfortunately, due to Berlin, I'm out of testnet machines/DBs to try with, and had to start re-synching from scratch on mainnet archive nodes, so the only machines I still could try a DB upgrade on are the two that our production DApp is depending on right now... |
When running OpenEthereum as a docker container, a DB upgrade should be possible and supported. As the data is of course in a volume outside the container, it's accessible to a different container, so if instructions would be published on how to build and use a container with the upgrade tool, that would be very helpful.
The text was updated successfully, but these errors were encountered: