-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
InfluxDB refusing connections #8912
Comments
Quick update: this happened again on 1.3.6. I uninstalled and reinstalled, but that didn't fix it either. I had to uninstall and then install the latest nightly. |
@natejgardner have you checked influxd.log? |
@natejgardner at the moment this just looks like Influx is starting up. Port |
The database wasn't very large (~10 million records) and it remained in this condition indefinitely (it was offline for more than one day). I wonder if it's hanging when trying to start? I can't find any logs. |
@natejgardner would you be willing to send us your database via secure and private means? You could probably zip it up and email it (or say a dropbox link). Or we could provide you with access to our SFTP site. I think it will be hard to investigate this further without being able to reproduce it. |
Oh, I just noticed:
Can you confirm this has been fixed with a nightly? |
Hi, |
Having a similar issue as well after upgrading to 1.3.7. We are restarting Influx 1-2 times a day at the moment. After about ~12 hours Influx starts refusing connections to :8086 and backing up connections, a restart is the only way to resolve it. Logs do not show anything. |
I am getting something similar, Raspberry Pi Zero W, with Jessie and a small Python script to write points. On a hard boot, it seems OK, but on the early morning soft reboot that I hoped would cure this it gives: I've put a 60 second sleep before the connection into the Python script, but may increase this to give the database time to 'start'. Logging is off at the moment, because everything is stripped down, so it can potentially run for months. |
I'm curious about sockets, could it be they are exhausted because too many of them in CLOSE_WAIT state for ex. ? |
I have the same problem with influx 1.5.1 on a Raspbery Pi 2 with Jessie. Since a few days I cannot write to the DB anymore. Telegraf complains: E! Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster InfluxDB Output Error: Post http://127.0.0.1:8086/write?consistency=any&db=telegraf: dial tcp 127.0.0.1:8086: getsockopt: connection refused My own writer program outputs: SOCKET_ERROR : [111] Connection refused |
Same issue here. Influx 1.5.2 on Raspberry Pi 3 with Jessie running Openhabian. Failed to connect to http://localhost:8086: Get http://localhost:8086/ping: dial tcp [::1]:8086: getsockopt: connection refused [22:37:03] openhabian@openHABianPi:/var/log$ ps ax | grep influx Log dir is empty and no log at messages |
The only way to make influxdb work again was to move away /var/lib/influxdb/data. Re-installing influxdb without removing the data dir did not make it work. I now have the problem that the old measurement values are in an inaccessible file format in the backup of the old data dir. |
@RREE @saback when this happens (and influxd is not responding), could you please get us profile information using the following command (you may need to change the host).
You can either attach the archive here, or you can email it to me. My address is |
Hi @e-dard, if I got it correct, it will not create the archive as it can't connect. Anyway, the command response is below:
|
@saback when the process is hanging could you You can either send the kill signal manually ( |
Hi @e-dard, sent the profiles.tar.gz via email. The kill -s SIGQUIT didn't provide any output but allowed me to run the curl command. |
Same problem here after upgrading to Influx 1.5.2 on a raspi 3 with jessie
|
Here is my little dirty hack... don't know if it will help you, but
Influx 1.5.2 on a raspberry pi 3 with Strech 9.4 Linux Kernel 4.14.39-v7+ |
Had the same problem when installing influxdb 1.6.2 on ubuntu16.04. When starting influxd as root then it starts listening as it should on port 8086. Found the issue : some files in /var/lib/influxdb were owned by root instead of influxdb Now when influxd is started via systemd it is correctly started and listening on port 8086 :-) |
@MarcVanOevelen I spend few hours on this issue and found beside the way you do, may be can try |
I have installed Oracle Vbox and have Centos7 running in it. I have installed influx on centos. Now I am trying to access Influxdb from java web service(hosted on local tomcat server). |
this work well for me,thx |
Is it possible to make InfluxDB check for and log this permissions issue rather than silently failing? |
Unfortunately the If I attempt to create a backup, I get:
|
Started from scratch, three days later, this behavior started again when someone made long-running query. InfluxDB stopped responding and on restart I get the same behavior. Only solution is to delete the data and start over. Is anyone else still dealing with this issue regularly? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions. |
Seeing similar issue, below is the output of
seeing the below error in the journalctl log
|
pi@raspberrypi:~ $ influx This database has been functioning fine more months and months. I have been using Grafana to display 4 or 5 fields and recently increased that to about 20 and this problem occurred. I removed and re-installed and had influx command connecting then shortly back to this....has anyone actually found the cause and the fix? |
@awwbaker could you share the output of this cmd
You can also check how other users provided details to reproduce above. |
Thank you for reaching out....
pi@raspberrypi:/ $ curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=true" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8086: Connection refusedpi@raspberrypi:/ $ ^C
On Tuesday, April 14, 2020, 02:17:20 PM EDT, Mustafa <notifications@github.com> wrote:
@awwbaker could you share the output of this cmd
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=true"
You can also check how other users provided details to reproduce above.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Omg this is great |
We are having the same problem. I fixed it as follows:
I saw:
Then I increased the RAM and the problem went away |
Same issue on grafana 736 with influxdb 18. running on docker-compose (based from grafana tutorial + influxdb) |
I have the same issue on a pi zero, diet pi, Bullseye :
Influx :
Same error :
Influxd status :
None of the above solution worked for me. |
otherwise influx -help ... ... -host 'host name' Host to connect to. ... ... if : $> influx -host 10.2.3.102 |
influx seems to be picky, installed latest version all working fine, deleted a bucket let it fill again ( few hundred entries ) and now one out of four clients always connection refused... yeah nice fancy ui but the experience has been bad so far, off topic though. |
Bug report
System info: [Include InfluxDB version, operating system name, and other relevant details]
InfluxDB 1.3.5 on Ubuntu 16.04.3 LTS
Steps to reproduce:
sudo influxd run -config /etc/influxdb/influxdb.conf
influx
Expected behavior: [What you expected to happen]
I can connect to InfluxDB.
Actual behavior: [What actually happened]
Additional info:
This issue crops up very randomly. It usually happens after I write a large set of data and the write fails partway through and I restart the database. Deleting the databases doesn't fix it. The only solution I've found to consistently work so far is reinstalling InfluxDB.
When I run
sudo service influxdb start
then checksudo service influxdb status
, it checks out asactive (running)
. No error messages show up in the output, just typical database reads.The text was updated successfully, but these errors were encountered: