SonOTA icon indicating copy to clipboard operation
SonOTA copied to clipboard

Script crashed starting web server

Open arodriguezf opened this issue 4 years ago • 4 comments

  • Operating System: Windows 10
  • Python Version: python 3.8.0
  • Sonoff model: sonoff basic
  • Sonoff firmware version: not sure, never used an it has more than 1 year
  • I have read the README, and understand that SonOTA does not work with the latest Sonoff firmware: yes

** 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": "XXXXXXXX", "apikey": "XXXXXXXXXXXXXXXXXXXXXXXX", "accept": "post" } HTTP POST /10.10.7.1/ap { "version": 4, "ssid": "XXXXXXXX", "password": "*************", "serverName": "10.0.0.67", "port": 8443 } << { "error": 0 } ~~ Provisioning completed Starting stage2... ** The IP address of <serve_host> (10.0.0.67) is not assigned to any interface on this machine. ** Please change WiFi network to SweetHome and make sure 10.0.0.67 is being assigned to your WiFi interface. ** This application should be kept running and will wait until connected to the WiFi... ...Current IPs: ['10.0.0.67'] ~~ Starting web server (HTTP port: 8080, HTTPS port 8443) Using proactor: IocpProactor Traceback (most recent call last): File "C:\Repos\SonOTA\sonota.py", line 736, in main() File "C:\Repos\SonOTA\sonota.py", line 732, in main stage2() File "C:\Repos\SonOTA\sonota.py", line 654, in stage2 app.listen(DEFAULT_PORT_HTTP) File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\web.py", line 2112, in listen server.listen(port, address) File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\tcpserver.py", line 152, in listen self.add_sockets(sockets) File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\tcpserver.py", line 165, in add_sockets self._handlers[sock.fileno()] = add_accept_handler( File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\netutil.py", line 279, in add_accept_handler io_loop.add_handler(sock, accept_handler, IOLoop.READ) File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\platform\asyncio.py", line 99, in add_handler self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ) File "C:\Users\arfer\AppData\Local\Programs\Python\Python38-32\lib\asyncio\events.py", line 501, in add_reader raise NotImplementedError NotImplementedError

After that, the script ends. Any idea? debug_1573845850.log

arodriguezf avatar Nov 15 '19 19:11 arodriguezf

Have you got around it? Ran into the same issue with Sonoff Mini.

theomythos avatar Dec 10 '19 13:12 theomythos

Have you got around it? Ran into the same issue with Sonoff Mini.

No didn´t find a solution and didn´t have any response

arodriguezf avatar Dec 10 '19 14:12 arodriguezf

have the same Issue here. Any Updates? Edit: after getting the same error as @arodriguezf I cant reconnect to the AP of the device

HasslerEngineering avatar Feb 29 '20 00:02 HasslerEngineering

#177

kellerza avatar Apr 27 '20 17:04 kellerza