influxdb/influxdb — pull request #215 by jvshahid (2014-01-30 17:37:02+00:00)
Title: http port not bound

That's the third time I got this error which but I have no idea how it was caused and how to solve it (since this is a test project for now I just removed the data/raft folders).

When I start the server I get this:

```
[01/30/14 13:44:55] [INFO] Redirectoring logging to stdout
[01/30/14 13:44:55] [INFO] Starting Influx Server...
[01/30/14 13:44:55] [INFO]
+---------------------------------------------+
| _____ __ _ _____ ____ |
| |_ _| / _| | | __ \| _ \ |
| | | _ __ | |_| |_ ___ _| | | | |_) | |
| | | | '_ \| _| | | | \ \/ / | | | _ < |
| _| |_| | | | | | | |_| |> <| |__| | |_) | |
| |_____|_| |_|_| |_|\__,_/_/\_\_____/|____/ |
+---------------------------------------------+

[01/30/14 13:44:55] [INFO] Opening database at /apps/monitoring/data/metrics
[01/30/14 13:44:55] [INFO] ProtobufServer listening on 127.0.0.1:8099
[01/30/14 13:44:55] [INFO] Initializing Raft HTTP server
[01/30/14 13:44:55] [INFO] Raft Server Listening at http://monitoring-dev:8090
[01/30/14 13:44:55] [INFO] Initializing Raft Server: /apps/monitoring/data/raft 8090
[01/30/14 13:44:55] [INFO] ClusterServer: 1 connecting to: monitoring-dev:8099
[01/30/14 13:44:55] [INFO] connected to monitoring-dev:8099
[01/30/14 13:44:55] [INFO] ProtobufServer: client connected: 127.0.0.1:48726
[01/30/14 13:44:55] [INFO] Recovered from log
[01/30/14 13:44:55] [INFO] Waiting for local server to be added
[01/30/14 13:44:56] [INFO] (raft:d62d2aa) Selected as leader. Starting leader loop.
```

I think the notable part here is "Recovered from log" but when it starts like this it doe snot appear to do anything: no cpu is used, and the http port is not bound:

```bash
$sudo lsof -nPi | grep influxdb
influxdb 22227 monitoring 15u IPv4 11668631 0t0 TCP 127.0.0.1:8090 (LISTEN)
influxdb 22227 monitoring 16u IPv4 11666947 0t0 TCP 127.0.0.1:8099 (LISTEN)
influxdb 22227 monitoring 20u IPv4 11666952 0t0 TCP 127.0.0.1:48727->127.0.0.1:8099 (ESTABLISHED)
influxdb 22227 monitoring 21u IPv4 11666953 0t0 TCP 127.0.0.1:8099->127.0.0.1:48727 (ESTABLISHED)
```

Here is my config file:

```toml

[logging]
level = "info"
file = "stdout"

# Configure the admin server
# [admin]
# port = 8083
# assets = "./admin"

# Configure the http api
[api]
port = 8086

# Raft configuration
[raft]
port = 8090
dir = "/apps/monitoring/data/raft"

[storage]
dir = "/apps/monitoring/data/metrics"

[cluster]

protobuf_port = 8099
```

I am running influxdb 0.4.0 on Linux.
any idea what happenned and how can I restore the service when in this state ?