influxdata / influxdata/influxdb

Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: getsockopt: connection refused Please check your connection settings and ensure ‘influxd’ is running

Open
#19,499 4 comments 2 reactions 0 assignees View on GitHub
1.x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

After I run influxd -config ../../etc/influxdb/influxdb.conf, and then run `./influx`, an error occurred:
Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp 127.0.0.1:8086: getsockopt: connection refused Please check your connection settings and ensure ‘influxd’ is running

but if I change a new data dir, `influx` can run. Why does it happen?
like this
图片

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `influxd -config ../../etc/influxdb/influxdb.conf` followed by `./influx`, then compare its behavior with a new data directory. Trace why the existing data directory leaves `http://localhost:8086/ping` unreachable; done means the cause and a verified resolution are documented.

Written by the indexing model from the issue text.

Assessment

Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.