Open RamiHaikal opened 5 years ago
Have you tried running without --legacy
- it'll be an extremely old unit if you need that.
If you do need legacy, run it as root (ie: sudo ./sonota...
)
When I ran without --legacy it didn't work and I read somewhere that it might help, I tried sudo but also didn't work.
I ran without --legacy and here is what I am getting:
./sonota.py Current IPs: ['192.168.1.20'] Select IP address of the WiFi interface: 0: 192.168.1.20 Select IP address [0]: 0 WiFi SSID: R&R WiFi Password: *****
Using the following configuration: Server IP Address: 192.168.1.20 WiFi SSID: R&R WiFi Password: **** Platform: darwin Now connect via WiFi to your Sonoff device. Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678. To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly. ** This application should be kept running and will wait until connected to the Sonoff... ...........................Current IPs: ['10.10.7.2'] ~~ Connection attempt
HTTP GET /10.10.7.1/device << { "deviceid": "1000439fa8", "apikey": "c7d3afc6-4ddb-4d77-922c-c410502dbfa6", "accept": "post" } HTTP POST /10.10.7.1/ap { "version": 4, "ssid": "R&R", "password": "****", "serverName": "192.168.1.20", "port": 8443 } << { "error": 0 } ~~ Provisioning completed Starting stage2... The IP address of
(192.168.1.20) is not assigned to any interface on this machine. Please change WiFi network to R&R and make sure 192.168.1.20 is being assigned to your WiFi interface. ** This application should be kept running and will wait until connected to the WiFi... ......Current IPs: [] ..Current IPs: ['192.168.1.20'] ~~ Starting web server (HTTP port: 8080, HTTPS port 8443) Traceback (most recent call last): File "./sonota.py", line 734, inmain() File "./sonota.py", line 730, in main stage2() File "./sonota.py", line 653, in stage2 app.listen(DEFAULT_PORT_HTTP) File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/web.py", line 2042, in listen server.listen(port, address) File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/tcpserver.py", line 143, in listen sockets = bind_sockets(port, address=address) File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/netutil.py", line 168, in bind_sockets sock.bind(sockaddr) OSError: [Errno 48] Address already in use
You will see the error is "Address already in use" - that means something is already running on one of the ports (eg: port 8080). Be sure to shut down all services that are listening on your Mac to be safe.
Now I am getting this error:
Starting stage2...
The IP address of
IMPORTANT!
AFTER the first download is COMPLETE, with in a minute or so you should connect to the new SSID "FinalStage" to finish the process.
ONLY disconnect when the new "FinalStage" SSID is visible as an available WiFi network.
This server should automatically be allocated the IP address: 192.168.4.2.
If you have successfully connected to "FinalStage" and this is not the IP Address you were allocated, please ensure no other device has connected, and reboot your Sonoff.
.Uncaught exception, closing connection.
Traceback (most recent call last):
File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/iostream.py", line 709, in _handle_events
self._handle_read()
File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/iostream.py", line 1581, in _handle_read
self._do_ssl_handshake()
File "/Users/ramihaikal/Library/Python/3.7/lib/python/site-packages/tornado/iostream.py", line 1501, in _do_ssl_handshake
self.socket.do_handshake()
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1108, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error
Exception in callback None()
handle:
That's.... weird... I would suggest trying Python 3.6 as it's not been tested with 3.7 on a Mac as it has only been released recently.
I installed 3.6 and I am not getting the handshake exception anymore. But Sonoff is not changing to the Finalstage SSID, I have waited for 20 minutes but still it is not switching to that SSID.
The firewall on my MAC is turned off
@RamiHaikal have you resolved the issue ?
I get the exact same messages as @RamiHaikal as listed in the Aug 18 comment. Sonoff Basic running 2.6.0, SonOTA downloaded today.
Same issue...Maybe SonOTA method doesn’t work on 2.6.0 firmware...
Raspian: The same issue as @RamiHaikal as listed in the Aug 18 comment. Windows: No Error Messages, but won't start downloading firmware in "Stage2" Looks like Sonoff connects brave to local update Server - but serversite crashes.
Python version 2.7.10 Mac O/S Majove Sonoff PoW v 2.0.2 Firewall has been disabled.
Hi. I've attempted to up date 2 PoWs and they are both in the same state now. The LED is permanently on and the relay clicks every X minutes.
When I ran through the upgrade process, stage 4 did not appear to execute
Attached is the log. "Once the firmware has been downloaded, there will be a new FinalStage SSID that you can connect to. Do this, and the device will then download the final stages of the firmware, including the Arduino image, replacing the default boot loader."
2018-12-02 20:31:35,118: DEBUG: Current IPs: ['192.168.1.15', '10.6.6.152']
2018-12-02 20:32:31,232: INFO: Using the following configuration:
2018-12-02 20:32:31,232: INFO: Server IP Address: 192.168.1.15
2018-12-02 20:32:31,232: INFO: WiFi SSID: belkin.7fd_front
2018-12-02 20:32:31,232: INFO: WiFi Password: **
2018-12-02 20:32:31,232: INFO: Platform: darwin
2018-12-02 20:32:31,243: INFO: Now connect via WiFi to your Sonoff device.
2018-12-02 20:32:31,243: INFO: Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678.
2018-12-02 20:32:31,243: INFO: To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly.
2018-12-02 20:32:31,243: INFO: This application should be kept running and will wait until connected to the Sonoff...
2018-12-02 20:32:59,382: DEBUG: Current IPs: []
2018-12-02 20:33:03,397: DEBUG: Current IPs: ['10.10.7.3']
2018-12-02 20:33:03,404: DEBUG: ~~ Connection attempt
2018-12-02 20:33:03,404: DEBUG: >> HTTP GET /10.10.7.1/device
2018-12-02 20:33:03,432: DEBUG: << {
2018-12-02 20:33:03,432: DEBUG: "deviceid": "100003ac96",
2018-12-02 20:33:03,432: DEBUG: "apikey": "747c979d-a2ed-4952-a34b-fc622b64d572",
2018-12-02 20:33:03,432: DEBUG: "accept": "post"
2018-12-02 20:33:03,432: DEBUG: }
2018-12-02 20:33:03,432: DEBUG: >> HTTP POST /10.10.7.1/ap
2018-12-02 20:33:03,433: DEBUG: >> {
2018-12-02 20:33:03,433: DEBUG: "version": 4,
2018-12-02 20:33:03,433: DEBUG: "ssid": "belkin.7fd_front",
2018-12-02 20:33:03,434: DEBUG: "password": "****",
2018-12-02 20:33:03,434: DEBUG: "serverName": "192.168.1.15",
2018-12-02 20:33:03,434: DEBUG: "port": 443
2018-12-02 20:33:03,434: DEBUG: }
2018-12-02 20:33:03,542: DEBUG: << {
2018-12-02 20:33:03,543: DEBUG: "error": 0
2018-12-02 20:33:03,543: DEBUG: }
2018-12-02 20:33:03,543: INFO: ~~ Provisioning completed
2018-12-02 20:33:03,543: INFO: Starting stage2...
2018-12-02 20:33:03,549: INFO: The IP address of
Please advise. Thanks
Since fw 2.6 on sonoff ota is no longer working. Seems to work 2> <2.6 Make shure you disabled all firewalls including windows defender for public networks.
debug_1548842483.log Getting the issue with Sonoff fw : 2.6.1 and Python 3.7 is any body else facing this issue
@sushenmathur Looks exactly the same for me.
The issue reported by by @RamiHaikal in https://github.com/mirko/SonOTA/issues/141#issuecomment-414009618 might be due to the following issue: https://github.com/tornadoweb/tornado/issues/2504
I have tried everything but it is not working, can anyone help? Below is what I am getting.
./sonota.py --legacy Current IPs: ['192.168.1.20'] Select IP address of the WiFi interface: 0: 192.168.1.20 Select IP address [0]: 0 WiFi SSID: R&R WiFi Password: ****
Using the following configuration: Server IP Address: 192.168.1.20 WiFi SSID: R&R WiFi Password: **** Platform: darwin Now connect via WiFi to your Sonoff device. Please change into the ITEAD WiFi network (ITEAD-100001XXXX). The default password is 12345678. To reset the Sonoff to defaults, press the button for 7 seconds and the light will start flashing rapidly. ** This application should be kept running and will wait until connected to the Sonoff... ...Current IPs: [] ..Current IPs: ['10.10.7.2'] ~~ Connection attempt