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

[feature request] CLI should catch "getsockopt: connection refused" and give clearer error message #4463

Closed
beckettsean opened this issue Oct 15, 2015 · 2 comments
Assignees

Comments

@beckettsean
Copy link
Contributor

If the influxd process is not running or accessible, the influx CLI gives cryptic error messages that don't point users to the actual issue:

$ influx
Connected to http://localhost:8086 version 
InfluxDB shell 0.9.4.1
> show databases
ERR: Get http://localhost:8086/query?db=&q=show+databases: dial tcp [::1]:8086: getsockopt: connection refused
>

Let's catch that error in the CLI and spit out something like:

$ influx
Connected to http://localhost:8086 version 
InfluxDB shell 0.9.4.1
> show databases
ERR: Get http://localhost:8086/query?db=&q=show+databases: dial tcp [::1]:8086: getsockopt: connection refused
No InfluxDB process was found at the expected URL. Please check your connection settings and verify the influxd process is running
>
@otoolep
Copy link
Contributor

otoolep commented Oct 15, 2015

The CLI also spits out this message on start up:

Connected to http://localhost:8086 version

even though it is not connected. This is quite confusing.

otoolep added a commit that referenced this issue Oct 15, 2015
@otoolep
Copy link
Contributor

otoolep commented Oct 15, 2015

Fixed by #4465

@otoolep otoolep closed this as completed Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants