-
Notifications
You must be signed in to change notification settings - Fork 637
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
remote reboot ? #953
Comments
using putty (or another telnet client) you can issue commands: I believe reset does what you want. |
You can also use the (undocumented) RPC entry point:
|
Hello, Thanks for the reboot info, I have trying different ways of sending this command you mention above and I didn't get it to work. If you copy paste it on a browser without the curl command I get a "Access denied" if I use curl I don't get any message but the reboot does not happen. IF I state my credentias --user user/pass it seems to be ok but still no reboot happens. Any help or ideas? Thanks Xose! |
Nevermind, it seems to be the sonoff I was testing against, seemed to be unresponsive, after power cycling it the command seems to work. For some reason since the last two months or so all these sonoff with espurna installed become responsive randomly. Here are the symptoms: I will try to create a crontab to reboot all sonoff at home every night just to confirm if they stop this behavior. If you need logs when the sonoff stalls or think of other tests I can do to reprodice the issue I'm happy to help. All the best, |
Yes please, if you happen to find an unresponsive device again try logging into it (telnet or web debug) and check the debug log while sensing an MQTT command or an API request. |
Hello, Yes sure happy to help. In my humble opinion I feel that when I reboot the router wierd things happen like devices that are not reachable. I rebooted the router as part of some troubleshooting and a device that was working, became unresponsive not even to ping. I had to unplug it to get back to it as Telnet or Http was not working. Once is back up there are no logs I can think of to provide to you a part from rebooting the router again just to confirm if another device enters in that state which are not registering their IP (which is a fixed IP address not DHCP). I checked flash.dump and crash logs but nothing there apart from Last reset reason: Power on. Is there any post-morten commands I can run once I detect the problem? Some info if it helps... [143796] [INIT] ESPURNA 1.13.0 [143796] [INIT] CPU chip ID: 0x71D786 crash |
Just did another test, disabling the wifi of my router for a couple minutes. The only problem that caught my eye is that in the process one of the sonoff the uptime was 10 minutes which shows it rebooted... Not sure if it has some realtion with the problem.. The info command shows the last reboot reason: Will keep testing not sure if anyone this could be helpful to connect the dots or it is not related at all. Cheers, |
Hello, Me again, one of the tests I did was disabling the wifi on the router, rebooting the router (basically ways to simulate wifi cuts to force this unresponsiveness reported). One of my sonoff Touch 2 gang became unresponsive at all, not responding to ping so there is no way I can think of to collect info of what state the sonoff is a part that if you touch the sonoff it still switches the relays. BUT if you look at the LED state it was flashing as if it was connected to the wifi (long period off and then a brief led flash), but if you ping the device it appears as host unreachable. This makes me assume that the sonoff thinks it is connected successfully and does not try to reconnect even thought it is not. Rebooting the router several times (just to see what happens), eventually made it connect back to the wifi correctly. With this I feel there is some problem with the wifi library that is not reconnecting correctly. Would be great if someone could reproduce this issue to confirm this or there is something else going on in my network I'm not aware of. |
Just wanted to chime in to share an observation that may or may not be related. I switched some of my devices from DHCP to fixed IP and it completely messed up my aruba controller (using aruba ap's & controller). It was confused about the mac addresses; it was still assigning the 'old' dhcp ip addresses to the mac addresses. This messed up the arp table, so I could no longer ping my devices, even though the sonoffs seemed to connect to wifi just fine (just like you described) Frankly I'm unsure what is the root case of this, and I am tempted to point at the aruba controller. However... take a look at your arp tables, maybe something similar is happening to you |
Thanks for your comment, that sounds like a good place to start. |
Usually there is this one sonoff losing the connection all the time and just happened again and of course the arp shows as the device is not available... ? (192.168.1.22) at "incomplete" on eth0 |
I have been doing some teat configuring the DHCP on all devices, So far I still got some issues with Mqtt not reaching the device, so far I haven't seen devices not reachable via ping, but I would say it is early to discard that problem. |
Just for the sake of updating this post, I think I may have found the issue to the problem at issue #803. |
Would it be possible to add a feature which would automatically reboot the device if MQTT connection is down for more than a selected timeout? |
is there a way to remotely reboot the device, maybe using the REST API ? I need to be able to remotely reboot the devices until the MQTT reconnection issue (#436) is fixed.
thanks,
The text was updated successfully, but these errors were encountered: