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

DB lost after restart #1315

Closed
jonira opened this Issue Jan 13, 2015 · 4 comments

Comments

Projects
None yet
4 participants
@jonira
Copy link

jonira commented Jan 13, 2015

My current installation looses all data after restart

  1. create a new db (name 'test') through web ui
  2. $ sudo /etc/init.d/influxdb restart
  3. db is gone, log.txt does not tell what went wrong (default config.toml)

influxdb v0.8.7, tried to change db between rocksdb and leveldb - no effect

@jonira

This comment has been minimized.

Copy link
Author

jonira commented Jan 13, 2015

as a workaround did manual reinstall:

  1. $ rm -rf /opt/influxdb
  2. fetch new deb package & install (v.0.8.8)

seems to work now. Closing ticket.

@jonira jonira closed this Jan 13, 2015

@toddboom

This comment has been minimized.

Copy link
Contributor

toddboom commented Jan 13, 2015

@jonira Thanks for the update. It's possible that the initial database creation wasn't actually being persisted to disk, so the restart would have just reverted the original state. In any event, it's good to know that a fresh data directory fixed everything.

@syunusic

This comment has been minimized.

Copy link

syunusic commented Mar 31, 2016

Hi, I have the same problem. I restarted the server before without that problem. Now the DB is gone, but is still in the hard drive. I have 120GB in /var/opt/influxdb/data/mydb (my DB is called mydb). How can I make Influx to read that again?

@r9liucc

This comment has been minimized.

Copy link

r9liucc commented Aug 29, 2016

@syunusic Do you resolve your problem? I have a similar problem with you. The difference is that I can find the database via 'show databases', but there is no measurements in there. I can also find the data in the filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment