opendata-stuttgart / sensors-software

sourcecode for reading sensor data
571 stars 308 forks source link

Connection refused #748

Open jwende opened 4 years ago

jwende commented 4 years ago

Ich bekomme immer diese Information auf meinem Sensor:

Data Send | 2 Data Send Return | connection refused

Woran liegt das ? Danke 1960F404-3E9E-43BF-8CBB-1C538ABC2886

WalterPepeka commented 4 years ago

Hi, same to me. It seems a server problem (MapSensor Community), data transfered to Grafana are ok

jwende commented 4 years ago

Similar on my side. Local data and remote database ok - But Sensor is not visible on the map. J.

JoergWende commented 4 years ago

I can confirm that the error disappears if I uncheck API Sensor.Community J.

DeeKey commented 4 years ago

Seems that this was a temporally sensor.com server problem. Now it is resolved. Please close the issue if working now!

JoergWende commented 4 years ago

Not really - problem still exists

kungfo0 commented 4 years ago

Same here. OpenSenseMap works fine but API Sensor.Community produces "Data Send Return | connection refused"

DeeKey commented 4 years ago

sensor.com server/hoster problems (((

WalterPepeka commented 4 years ago

it might be a good idea to include a server health status page, like here https://setiathome.berkeley.edu/show_server_status.php

ricki-z commented 4 years ago

we are working on a server health page. At the moment it shows to many false positives as the connections within the data center are very unstable. So the page is sometimes showing problems but the everything is working when accessed from outside.

MikeMoltoHAJ commented 4 years ago

hi, have the same problem. May be a config error? Tried any versions of config but sorry, I am not a specialist. Screenshot_2020-08-26 Gerätestatus Screenshot_2020-08-26 Konfiguration

marcauberer commented 4 years ago

You could try to configure it like this:

Server: api.thingspeak.com Pfad: /update... ...

This might help

MikeMoltoHAJ commented 4 years ago

Hi, thanks for response. I tried this out but no help. A other question is - shall i use HTTPS or not? And what are the right ports in any case?

MikeMoltoHAJ commented 4 years ago

marcauberer thanks, your hint now works. I changed Port to 443. Next problem: how can i send sensor data.

e.g. &field1=1 sent 1, &field1=test sent test, also with ""

ricki-z commented 4 years ago

@jwende can we close this issue? API should be back to normal now. @MikeMoltoHAJ if the problem persists please open a new issue as you problem is unrelated to the original problem (API Sensor.Community slow or unreachable).

JoergWende commented 4 years ago

I still see the 'connection refused ' in the device log (web page) - but the values are on the web site . So it is q question of beauty :) J.

dirkmueller commented 4 years ago

the error message is supposed to be sticky. basically it shows the error cause the last time an error happened, even if it resumed to working. basically you need to compare "total measurements" with "number of errors" or basically check if "number of errors" go up over time.

any suggestions on how to make that more obvious appreciated. I don't want to wipe the errors at regular intervals, but maybe a "time of last error" field needs to be added?

dirkmueller commented 4 years ago

@jwende can you paste a full /status page screenshot? more concretely what does it say about NTP state ? we have a similar report in #780

JoergWende commented 4 years ago

image does this help ?

JoergWende commented 4 years ago

ok - change on my side after restart of the sensor - no error listed. So it would make sense to have an error date / timestamp to see if it was a temporary issue only. J.

dirkmueller commented 4 years ago

To clarify how to read the status page: you do have NTP sync working (see the 8 cases of successful ntp sync). also, you had 3 out of 175 api submissions fail (which is ~ 1.7% failure rate) and the error of the last sending was "connection refused".

so I'd say this is pretty normal and everything looks good. I need to think about a way to make this more readable (it was meant to make sense for me, but I realize that more people look at the status page :-) ).

ricki-z commented 4 years ago

At the moment the main database server is down because of a hardware problem. Restore of nearly 1TByte needs some time.