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

[0.9.2] Timeout on POST or GET of any measurement #3581

Closed
esecules opened this issue Aug 6, 2015 · 1 comment
Closed

[0.9.2] Timeout on POST or GET of any measurement #3581

esecules opened this issue Aug 6, 2015 · 1 comment

Comments

@esecules
Copy link

esecules commented Aug 6, 2015

Client logs

    ifx.write(wrapper)
  File "/usr/local/lib/python2.7/dist-packages/influxdb/client.py", line 262, in write
    expected_response_code=expected_response_code
  File "/usr/local/lib/python2.7/dist-packages/influxdb/client.py", line 242, in request
    raise InfluxDBClientError(response.content, response.status_code)
InfluxDBClientError: 500: {"error":"timeout"}

Server Logs

[http] 2015/08/06 17:50:24 10.244.89.0 - root [06/Aug/2015:17:50:19 +0000] POST /write?p=root&u=root HTTP/1.1 500 44 - python-requests/2.7.0 CPython/2.7.3 Linux/4.0.7-coreos-r2 9a934ed3-3c63-11e5-8e3a-000000000000 5.01217947s

Curl: Things that don't work

# curl -i -XPOST 'http://localhost:8086/write?db=test&precision=s' --data-binary 'temperature,machine=unit42,type=assembly external=25,internal=37 1434059627'                                       
HTTP/1.1 500 Internal Server Error
Request-Id: db2cef09-3c64-11e5-95e5-000000000000
X-Influxdb-Version: 0.9.2
Date: Thu, 06 Aug 2015 17:59:22 GMT
Content-Length: 8
Content-Type: text/plain; charset=utf-8

timeout

All get requests that SELECT data timeout
# curl -G 'http://localhost:8086/query' --data-urlencode "db=test" --data-urlencode "q=SELECT * FROM temperature"

timeout 15s

Curl: things that work

# curl http://localhost:8086 
404 page not found

# curl -X GET http://localhost:8086/write
Method Not Allowed

get requests that SHOW data are fine
# curl -G 'http://localhost:8086/query' --data-urlencode "db=test" --data-urlencode "q=SHOW DATABASES"
{"results":[{"series":[{"name":"databases","columns":["name"],"values":[["test"]]}]}]}

Server load:

# uptime
 18:10:25 up 8 days, 19:56,  0 users,  load average: 0.29, 0.21, 0.42

# free 
             total       used       free     shared    buffers     cached
Mem:       8180408    7166304    1014104          0     109284    2610388
-/+ buffers/cache:    4446632    3733776
Swap:            0          0          0
@esecules esecules changed the title Timeout on POST [0.9.2] Timeout on POST Aug 6, 2015
@esecules esecules changed the title [0.9.2] Timeout on POST [0.9.2] Timeout on POST or GET of any measurement Aug 6, 2015
@esecules
Copy link
Author

esecules commented Aug 6, 2015

Duplicate of #3411

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

No branches or pull requests

1 participant