-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
All databases lost after restart #9413
Comments
Unfortunately, it seems the meta information got hosed somehow. Here are some recovery steps.
Make sure to backup the data on disk before attempting this so you can try again if something goes wrong. There is also a bug in |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
This process helped me out after powerloss of our VM host - thank you! |
Our database server restarted yesterday and when it came back online it had lost all track of the databases.
The databases are there on the disk and there is a lot of log messages about reading files from the databases, but the databases does not show up with the
SHOW DATABASES
command.I've poked around and the databases aren't mentioned in meta/meta.db. I recreated the database structure on my own computer and copied meta.db to the server. That worked so far as the databases now show up with
SHOW DATABASES
, but none of the old data can be found via queries.I've upgraded InfluxDB from 1.3.6 to 1.4.2 in my attempts to have it find the old databases, but that doesn't seem to have made any difference.
Logs from when InfluxDB first started after the server restart and my last attempt to fix it by copying meta.db from my computer are attached below.
InfluxDB log after server restart
InfluxDB log after copying meta.db
The text was updated successfully, but these errors were encountered: