I'm trying to change the port used by Influx's HTTP (from 8086 to 80) and Admin. I've been revising and experimenting with the config file to do this. Once I finished revising the config file, I start influx like so:
sudo /opt/influxdb/influxd -config /home/ec2-user/influxdb/influx.conf
If it's a port I've tried in the past, I'll recieve the following message:
_using configuration at: /home/ec2-user/influxdb/influx.conf
run: open server: listen: listen tcp :8088: bind: address already in use_
If I run the config file with a new port, I get something like the following:
_using configuration at: /home/ec2-user/influxdb/influx.conf
[metastore] 2015/08/04 14:25:57 [INFO] raft: Node at 127.0.0.1:9001 [Follower] entering Follower state
[metastore] 2015/08/04 14:25:57 read local node id: 1
[httpd] 2015/08/04 14:25:57 authentication enabled: false
2015/08/04 14:25:57 InfluxDB starting, version 0.9.2, commit 6c0a91f775f9fc0e625d17ffa04a3fe86945ba09
2015/08/04 14:25:57 GOMAXPROCS set to 2
[run] 2015/08/04 14:25:57 listening for signals
[metastore] 2015/08/04 14:25:58 [WARN] raft: Heartbeat timeout reached, starting election
[metastore] 2015/08/04 14:25:58 [INFO] raft: Node at 127.0.0.1:9001 [Candidate] entering Candidate state
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Votes needed: 1
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Vote granted. Tally: 1
[metastore] 2015/08/04 14:25:58 [INFO] raft: Election won. Tally: 1
[metastore] 2015/08/04 14:25:58 [INFO] raft: Node at 127.0.0.1:9001 [Leader] entering Leader state
[metastore] 2015/08/04 14:25:58 [INFO] raft: Disabling EnableSingleNode (bootstrap)
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:88]
[metastore] 2015/08/04 14:25:58 [INFO] raft: Added peer 127.0.0.1:88, starting replication
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:1234]
[metastore] 2015/08/04 14:25:58 [INFO] raft: Added peer 127.0.0.1:1234, starting replication
[metastore] 2015/08/04 14:25:58 [INFO] raft: Removed peer 127.0.0.1:88, stopping replication (Index: 3)
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:80]
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:88: dial tcp 127.0.0.1:88: connection refused
[metastore] 2015/08/04 14:25:58 [INFO] raft: Added peer 127.0.0.1:80, starting replication
[metastore] 2015/08/04 14:25:58 [INFO] raft: Removed peer 127.0.0.1:1234, stopping replication (Index: 4)
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:1234: dial tcp 127.0.0.1:1234: connection refused
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:80]
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:80: dial tcp 127.0.0.1:80: connection refused
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:9001]
[metastore] 2015/08/04 14:25:58 [INFO] raft: Removed peer 127.0.0.1:80, stopping replication (Index: 6)
[metastore] 2015/08/04 14:25:58 [DEBUG] raft: Node 127.0.0.1:9001 updated peer set (2): [127.0.0.1:9001]
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:88: dial tcp 127.0.0.1:88: connection refused
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:1234: dial tcp 127.0.0.1:1234: connection refused
[metastore] 2015/08/04 14:25:58 [ERR] raft: Failed to AppendEntries to 127.0.0.1:80: dial tcp 127.0.0.1:80: connection refused
2015/08/04 14:25:58 Sending anonymous usage statistics to m.influxdb.com
2015/08/04 14:26:56 tcp.Mux: handler not registered: 71
2015/08/04 14:26:56 tcp.Mux: handler not registered: 71
2015/08/04 14:26:57 tcp.Mux: handler not registered: 71
2015/08/04 14:26:57 tcp.Mux: handler not registered: 71_
I've tried many different ports for HTTP functionality, and only 8086 (the default works). Can someone outline for me the steps needed to change the port for HTTP / Admin? Am I doing something wrong?
My netstat -lntp command shows that only ports 8083, 8086, and 8088 are being used, even after running influx with the config file defining other ports. I'm doing something wrong here, I presume.
Solved the problem: I had to manually kill all previously existing influx processes. Then I could run influx command successfully with -config flag.
ps -xa | grep influx
kill
Most helpful comment
Solved the problem: I had to manually kill all previously existing influx processes. Then I could run influx command successfully with -config flag.
ps -xa | grep influx
kill