Skip to content
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

Server getting stuck on raft init sometimes #343

Closed
farcaller opened this issue Mar 14, 2014 · 3 comments
Closed

Server getting stuck on raft init sometimes #343

farcaller opened this issue Mar 14, 2014 · 3 comments

Comments

@farcaller
Copy link

I'm running influxdb in a docker container as a single instance. Sometimes after a restart it gets stuck:

[03/14/14 20:41:28] [INFO] Opening database at /var/lib/influxdb/db
[03/14/14 20:41:29] [INFO] Initializing Raft HTTP server
[03/14/14 20:41:29] [INFO] ProtobufServer listening on 0.0.0.0:8099
[03/14/14 20:41:29] [INFO] Raft Server Listening at http://influxdb-0:8090
[03/14/14 20:41:29] [INFO] Initializing Raft Server: /var/lib/influxdb/raft 8090
[03/14/14 20:41:29] [INFO] ClusterServer: 1 connecting to: influxdb-0:8099
[03/14/14 20:41:29] [INFO] ProtobufServer: client connected: 172.17.0.3:50378
[03/14/14 20:41:29] [INFO] connected to influxdb-0:8099
[03/14/14 20:41:29] [INFO] Recovered from log
[03/14/14 20:41:29] [INFO] Waiting for local server to be added
[03/14/14 20:41:29] [INFO] (raft:d798d28) Selected as leader. Starting leader loop.

The only way to fix it is to remove raft directory, restart server and re-create all the databases and users.

@jvshahid
Copy link
Contributor

We've seen this problem when the local hostname detection fails. Try to set the hostname in the config file to influxdb-0 on line 6. So line 6 should look like this:

hostname = "influxdb-0"

This should fix the problem.

@jvshahid
Copy link
Contributor

I opened issue #345 to fix this problem. I'll go ahead and close this one, but please feel free to reopen if you think this problem is unrelated to the hostname detection issue.

@nichdiekuh
Copy link

Works like a charm! Thank you John! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants