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

Webserver not reachable #266

Closed
raisude opened this issue Mar 22, 2017 · 24 comments
Closed

Webserver not reachable #266

raisude opened this issue Mar 22, 2017 · 24 comments
Labels
help needed Action - Asking for help from the community

Comments

@raisude
Copy link

raisude commented Mar 22, 2017

I have one sonoff basic and one sonoff dual. Both have the latest firmware. After some time both are not reachable via the webserver. But both are sending mqtt messages and are responding for mqtt requests like switching the relay. Is this normal behavior?

Regards Rainer

@davidelang
Copy link
Collaborator

davidelang commented Mar 22, 2017 via email

@arendst arendst added the help needed Action - Asking for help from the community label Mar 23, 2017
@raisude
Copy link
Author

raisude commented Mar 23, 2017

I have configured login in mode 4. But while I tried to connect to the son off via browser there were only such messages every 20 seconds:

Mar 22 23:05:23 sonoff-7535 ESP-Wifi: Checking connection...
Mar 22 23:05:23 sonoff-7535 ESP-Wifi: Connected

@davidelang
Copy link
Collaborator

davidelang commented Mar 23, 2017 via email

@raisude
Copy link
Author

raisude commented Mar 23, 2017

I have enabled the DS18x20. The config is sonoff basic. And the second device sonoff dual.

Where can I look for if the TLS is enabled?

The webserver is not dead. Sometimes after about 20 tries to reach it, it answers ... .

@davidelang
Copy link
Collaborator

davidelang commented Mar 23, 2017 via email

@gemitro
Copy link

gemitro commented Mar 24, 2017

I also have two Sonoffs basic configured in exactly the same way with static ip addresses. After some time (at least twice a day) only one of them is not accessible via the webserver.
When this device loses the webserver I can still ping it and send mqtt requests, as reboot.

@raisude
Copy link
Author

raisude commented Mar 24, 2017

I have compiled the firmware with everything disabled not needed. The behaviour is the same as before. The Webserver is not generally dead. Sometimes the server responds and sometimes not. Not responding could be after power off the sonoff an then restarting the device. Trying to connect to the server fails. Half an hour later without doing something I can connect. 5 minutes later clicking on a menu Point fails. Trying later could be success ... .

@PaulBendall
Copy link

Might be having a similar issue although it is more around slowness than losing the webserver completely. For example I can send a HTTP command to my Sonoff PoW, http://sonoff_ip/cm?cmnd=Status%208 most of the time it will respond in less than 1 second, but sometimes it will take over 13 seconds.

Another example is from the web portal clicking on "Information" will often fail on first attempt with page unavailable. Refreshing and the page is displayed

Program version : 4.0.8
Build Date & Time : 2017-03-22T18:31:58
Core/SDK version : 2_3_0/1.5.3(aec24ac9)

ESP Chip id : 10497513
Flash Chip id : 1458400
Flash size : 4096kB
Program flash size : 1024kB
Program size : 465kB
Free program space : 472kB
Free memory : 15kB

@davidelang
Copy link
Collaborator

davidelang commented Mar 24, 2017 via email

@davidelang
Copy link
Collaborator

davidelang commented Mar 24, 2017 via email

@Nayar
Copy link

Nayar commented Mar 24, 2017

I flashed the lastest firmware on all my sonoffs: 4 Sonoff POW and 2 Sonoff classic.

My sonoffs classic are not responding to HTTP or even ping. Sometimes some pings go.

But when i toggle the buttons, MQTT messages are sent immediately. But when I send MQTT messages to them, nothing.

It seems like they are not liking "incoming connections"

@davidelang
Copy link
Collaborator

davidelang commented Mar 24, 2017 via email

@Nayar
Copy link

Nayar commented Mar 24, 2017

screen shot 2017-03-24 at 10 39 57 pm
screen shot 2017-03-24 at 10 39 42 pm

Seems good

P.S. If you guys want graylog for your sonoffs, feel free to contact me.

@davidelang
Copy link
Collaborator

davidelang commented Mar 24, 2017 via email

@Nayar
Copy link

Nayar commented Mar 24, 2017

screen shot 2017-03-24 at 10 50 36 pm

It tries to connect like every 5 mins according to my graph

@davidelang
Copy link
Collaborator

can you increase the logging level and show a full cycle of logs (ideally as text not images)?

@Nayar
Copy link

Nayar commented Mar 24, 2017

It responded to my MQTT message of setting logs to 4 instantly.

"timestamp","message"
"2017-03-24T19:08:55.050Z","{""SysLog"":""4 (Active 4)""}"
"2017-03-24T19:08:55.054Z","Receive topic cmnd/SONOFF_1C1B81/SysLog, data size 1, data 4"
"2017-03-24T19:08:55.054Z","DataCb Topic SONOFF_1C1B81, Group 0, Index 1, Type SYSLOG, Data 4 (4)"
"2017-03-24T19:08:55.516Z","{""SysLog"":""4 (Active 4)""}"
"2017-03-24T19:08:55.750Z","Saved configuration (1348 bytes) to flash at F7 and count 1544"
"2017-03-24T19:09:04.915Z","Checking connection..."
"2017-03-24T19:09:04.916Z","Connected"
"2017-03-24T19:09:24.940Z","Checking connection..."
"2017-03-24T19:09:24.941Z","Connected"
"2017-03-24T19:09:44.963Z","Connected"
"2017-03-24T19:09:44.960Z","Checking connection..."
"2017-03-24T19:10:04.918Z","Checking connection..."
"2017-03-24T19:10:04.930Z","Connected"
"2017-03-24T19:10:24.915Z","Checking connection..."
"2017-03-24T19:10:24.915Z","Connected"
"2017-03-24T19:10:44.916Z","Checking connection..."
"2017-03-24T19:10:44.919Z","Connected"
"2017-03-24T19:11:05.272Z","Checking connection..."
"2017-03-24T19:11:05.338Z","Connected"
"2017-03-24T19:11:25.274Z","Checking connection..."
"2017-03-24T19:11:25.274Z","Connected"

It's continuing like this while cannot ping.

@davidelang
Copy link
Collaborator

davidelang commented Mar 24, 2017 via email

@tam481
Copy link

tam481 commented Mar 24, 2017

Having a similar issue with Sonoff Basic. No TLS (yet) or anything else other than logging turned off and DHT22 connected to GPIO14.

Firmware version 4.0.4

I thought it was my router until I read this issue and tried sending an MQTT command and it worked fine while the web server is still not connecting.

@Nayar
Copy link

Nayar commented Mar 24, 2017

"2017-03-24T19:08:55.050Z",,"SONOFF_1C1B81-7041 ESP-MQTT: stat/SONOFF_1C1B81/RESULT = {""SysLog"":""4 (Active 4)""}","{""SysLog"":""4 (Active 4)""}"
"2017-03-24T19:08:55.054Z",,"SONOFF_1C1B81-7041 ESP-RSLT: Receive topic cmnd/SONOFF_1C1B81/SysLog, data size 1, data 4","Receive topic cmnd/SONOFF_1C1B81/SysLog, data size 1, data 4"
"2017-03-24T19:08:55.054Z",,"SONOFF_1C1B81-7041 ESP-RSLT: DataCb Topic SONOFF_1C1B81, Group 0, Index 1, Type SYSLOG, Data 4 (4)","DataCb Topic SONOFF_1C1B81, Group 0, Index 1, Type SYSLOG, Data 4 (4)"
"2017-03-24T19:08:55.516Z",,"SONOFF_1C1B81-7041 ESP-MQTT: stat/SONOFF_1C1B81/RESULT = {""SysLog"":""4 (Active 4)""}","{""SysLog"":""4 (Active 4)""}"
"2017-03-24T19:08:55.750Z",,"SONOFF_1C1B81-7041 ESP-Config: Saved configuration (1348 bytes) to flash at F7 and count 1544","Saved configuration (1348 bytes) to flash at F7 and count 1544"
"2017-03-24T19:09:04.915Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:09:04.916Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:09:24.940Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:09:24.941Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:09:44.963Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:09:44.960Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:10:04.918Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:10:04.930Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:10:24.915Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:10:24.915Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:10:44.916Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:10:44.919Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:11:05.272Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:11:05.338Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:11:25.274Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:11:25.274Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:11:45.272Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:11:45.272Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:12:05.303Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:12:05.304Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:12:25.275Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:12:25.275Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:12:45.277Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:12:45.277Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"
"2017-03-24T19:12:55.473Z",,"SONOFF_1C1B81-7041 ESP-MQTT: Attempting connection...","Attempting connection..."
"2017-03-24T19:12:56.477Z",,"SONOFF_1C1B81-7041 ESP-mDNS: Query done with 0 mqtt services found","Query done with 0 mqtt services found"
"2017-03-24T19:12:57.310Z",,"SONOFF_1C1B81-7041 ESP-MQTT: Connected","Connected"
"2017-03-24T19:12:57.768Z",,"SONOFF_1C1B81-7041 ESP-MQTT: tele/SONOFF_1C1B81/LWT = Online (retained)","Online (retained)"
"2017-03-24T19:12:58.186Z",,"SONOFF_1C1B81-7041 ESP-MQTT: cmnd/SONOFF_1C1B81/POWER =","cmnd/SONOFF_1C1B81/POWER ="
"2017-03-24T19:13:09.177Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Checking connection...","Checking connection..."
"2017-03-24T19:13:09.204Z",,"SONOFF_1C1B81-7041 ESP-Wifi: Connected","Connected"

Updated the logs with full message

@Nayar
Copy link

Nayar commented Mar 24, 2017

Filtering Wifi module from logs, I get this during last 30 mins

"timestamp","full_message","message","tasmota_module"
"2017-03-24T19:08:55.050Z","SONOFF_1C1B81-7041 ESP-MQTT: stat/SONOFF_1C1B81/RESULT = {""SysLog"":""4 (Active 4)""}","{""SysLog"":""4 (Active 4)""}","MQTT"
"2017-03-24T19:08:55.054Z","SONOFF_1C1B81-7041 ESP-RSLT: Receive topic cmnd/SONOFF_1C1B81/SysLog, data size 1, data 4","Receive topic cmnd/SONOFF_1C1B81/SysLog, data size 1, data 4","RSLT"
"2017-03-24T19:08:55.054Z","SONOFF_1C1B81-7041 ESP-RSLT: DataCb Topic SONOFF_1C1B81, Group 0, Index 1, Type SYSLOG, Data 4 (4)","DataCb Topic SONOFF_1C1B81, Group 0, Index 1, Type SYSLOG, Data 4 (4)","RSLT"
"2017-03-24T19:08:55.516Z","SONOFF_1C1B81-7041 ESP-MQTT: stat/SONOFF_1C1B81/RESULT = {""SysLog"":""4 (Active 4)""}","{""SysLog"":""4 (Active 4)""}","MQTT"
"2017-03-24T19:08:55.750Z","SONOFF_1C1B81-7041 ESP-Config: Saved configuration (1348 bytes) to flash at F7 and count 1544","Saved configuration (1348 bytes) to flash at F7 and count 1544","Config"
"2017-03-24T19:12:55.473Z","SONOFF_1C1B81-7041 ESP-MQTT: Attempting connection...","Attempting connection...","MQTT"
"2017-03-24T19:12:56.477Z","SONOFF_1C1B81-7041 ESP-mDNS: Query done with 0 mqtt services found","Query done with 0 mqtt services found","mDNS"
"2017-03-24T19:12:57.310Z","SONOFF_1C1B81-7041 ESP-MQTT: Connected","Connected","MQTT"
"2017-03-24T19:12:57.768Z","SONOFF_1C1B81-7041 ESP-MQTT: tele/SONOFF_1C1B81/LWT = Online (retained)","Online (retained)","MQTT"
"2017-03-24T19:12:58.186Z","SONOFF_1C1B81-7041 ESP-MQTT: cmnd/SONOFF_1C1B81/POWER =","cmnd/SONOFF_1C1B81/POWER =","MQTT"
"2017-03-24T19:25:03.235Z","SONOFF_1C1B81-7041 ESP-MQTT: Connected","Connected","MQTT"
"2017-03-24T19:25:03.738Z","SONOFF_1C1B81-7041 ESP-MQTT: tele/SONOFF_1C1B81/LWT = Online (retained)","Online (retained)","MQTT"
"2017-03-24T19:25:04.154Z","SONOFF_1C1B81-7041 ESP-MQTT: cmnd/SONOFF_1C1B81/POWER =","cmnd/SONOFF_1C1B81/POWER =","MQTT"
"2017-03-24T19:24:59.726Z","SONOFF_1C1B81-7041 ESP-MQTT: Attempting connection...","Attempting connection...","MQTT"
"2017-03-24T19:25:00.733Z","SONOFF_1C1B81-7041 ESP-mDNS: Query done with 0 mqtt services found","Query done with 0 mqtt services found","mDNS"

@davidelang
Copy link
Collaborator

there were significant improvements in 4.1.0, can you check to see if you still have problems with it?

@Nayar
Copy link

Nayar commented Mar 28, 2017

After flashing the device to 4.1.0 via serial, the sonoff is pingable and web server accessible.

Lots of packets loss though: 12% despite the sonoff is within 2 m from my AP

@davidelang
Copy link
Collaborator

davidelang commented Mar 28, 2017 via email

vicfergar pushed a commit to vicfergar/Sonoff-Tasmota that referenced this issue Jul 17, 2017
3.2.8 20170124
* Change PowerOnState function to only trigger when Power On (and not on
restart) (arendst#238)
* Add command LedPower On|Off to control main led (arendst#247)
* Add charset=utf-8 to webpages (arendst#266)
* Update Hue emulation (arendst#268)
* Rewrite WS2812 code and prep for 4.0
* Add support for domoticz Dimmer on WS2812
* Add commands SwitchTopic and SwitchRetain On|Off to be used with
external switch instead of ButtonTopic and ButtonRetain
* Enforce at least IDE 1.6.10 and ESP8266 2.3.0
vicfergar pushed a commit to vicfergar/Sonoff-Tasmota that referenced this issue Jul 17, 2017
3.9.1 20170124
* Change PowerOnState function to only trigger when Power On (and not
just restart) (arendst#238)
* Move HLW interrupts back to RAM and make WS2812_DMA optional as it
generates Exception on Pow (arendst#264)
* Add charset=utf-8 to webpages (arendst#266)
* Update Hue emulation (arendst#268)
* Fix status module number
* Add support for domoticz Dimmer on Sonoff_Led and WS2812
* Fix possible ESP8285 flash problem by updating Flash Chip Mode to DOUT
during web upload
vicfergar pushed a commit to vicfergar/Sonoff-Tasmota that referenced this issue Jul 17, 2017
3.2.9 20170124
* Fix compile error when MQTT is disabled (arendst#269)
* Change PowerOnState function to only trigger when Power On (and not on
restart) (arendst#238)
* Add command LedPower On|Off to control main led (arendst#247)
* Add charset=utf-8 to webpages (arendst#266)
* Update Hue emulation (arendst#268)
* Rewrite WS2812 code and prep for 4.0
* Add support for domoticz Dimmer on WS2812
* Add commands SwitchTopic and SwitchRetain On|Off to be used with
external switch instead of ButtonTopic and ButtonRetain
* Enforce at least IDE 1.6.10 and ESP8266 2.3.0
vicfergar pushed a commit to vicfergar/Sonoff-Tasmota that referenced this issue Jul 17, 2017
3.2.10 20170124
* Add confirmation before Reset Configuration via webpage (arendst#244)
* Add WS2812 features (see Wiki commands)
* Fix compile error when MQTT is disabled (arendst#269)
* Change PowerOnState function to only trigger when Power On (and not on
restart) (arendst#238)
* Add command LedPower On|Off to control main led (arendst#247)
* Add charset=utf-8 to webpages (arendst#266)
* Update Hue emulation (arendst#268)
* Rewrite WS2812 code and prep for 4.0
* Add support for domoticz Dimmer on WS2812
* Add commands SwitchTopic and SwitchRetain On|Off to be used with
external switch instead of ButtonTopic and ButtonRetain
* Enforce at least IDE 1.6.10 and ESP8266 2.3.0
vicfergar pushed a commit to vicfergar/Sonoff-Tasmota that referenced this issue Jul 17, 2017
3.9.2 20170124
* Add confirmation before Reset Configuration via webpage (arendst#244)
* Add WS2812 features (see Wiki commands)
* Change PowerOnState function to only trigger when Power On (and not
just restart) (arendst#238)
* Move HLW interrupts back to RAM and make WS2812_DMA optional as it
generates Exception on Pow (arendst#264)
* Add charset=utf-8 to webpages (arendst#266)
* Update Hue emulation (arendst#268)
* Fix status module number
* Add support for domoticz Dimmer on Sonoff_Led and WS2812
* Fix possible ESP8285 flash problem by updating Flash Chip Mode to DOUT
during web upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help needed Action - Asking for help from the community
Projects
None yet
Development

No branches or pull requests

7 participants