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

Sonota.exe 2.6.0 close itself #161

Open
blazkom opened this issue Dec 18, 2018 · 4 comments
Open

Sonota.exe 2.6.0 close itself #161

blazkom opened this issue Dec 18, 2018 · 4 comments

Comments

@blazkom
Copy link

blazkom commented Dec 18, 2018

  • Operating System: windows 10 64 bit
  • Python Version: 3.7
  • Sonoff model: basic
  • Sonoff firmware version: 2.6.0

When i start sonota.exe I input wifi and password of my home network. then i connect PC to wifi of sonoff but then sonota.exe close itself after 2-5 seconds. Maybe sonota.exe is not compatible with FW 2.6.0?

@Klangen82
Copy link

Same for me:/ Will never start the flash process or the sonata.exe will close itself.

@eloo
Copy link

eloo commented Dec 21, 2018

For me the same.
And i see the following output before it stops.

...Current IPs: ['10.10.7.2']
~~ Connection attempt
>> HTTP GET /10.10.7.1/device
<< {
    "deviceid": "****",
    "accept": "post",
    "apikey": "********"
}
>> HTTP POST /10.10.7.1/ap
>> {
    "serverName": "192.168.178.24",
    "password": "***************",
    "version": 4,
    "ssid": "***",
    "port": 8443
}
Traceback (most recent call last):
  File "sonota.py", line 734, in <module>
  File "sonota.py", line 729, in main
  File "sonota.py", line 612, in stage1
  File "httplib2\__init__.py", line 1322, in request
  File "httplib2\__init__.py", line 1072, in _request
  File "httplib2\__init__.py", line 1025, in _conn_request
  File "http\client.py", line 1198, in getresponse
  File "http\client.py", line 297, in begin
  File "http\client.py", line 258, in _read_status
  File "socket.py", line 576, in readinto
socket.timeout: timed out
[7380] Failed to execute script sonota
[7380] LOADER: OK.
[7380] LOADER: Cleaning up Python interpreter.
[7356] LOADER: Back to parent (RC: -1)
[7356] LOADER: Doing cleanup
[7356] LOADER: Freeing archive status for E:\Downloads\sonota.exe

any ideas?

@Klangen82
Copy link

Klangen82 commented Dec 21, 2018

I missed this:

image

So I guess this is a know issue...

https://github.com/mirko/SonOTA

@mgabor3141
Copy link

I'm getting the same error, but I'm only on 1.6.0; I would think that this version should still work.

Log:

        Server IP Address: 192.168.0.38
        WiFi SSID: mgnet_home
        WiFi Password: ******************
Platform: win32
** 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
<< {
    "apikey": "e657c395-c1f5-43df-824a-f4f1fde041d2",
    "deviceid": "1000373102",
    "accept": "post"
}
>> HTTP POST /10.10.7.1/ap
>> {
    "port": 8443,
    "serverName": "192.168.0.38",
    "version": 4,
    "ssid": "mgnet_home",
    "password": "******************"
}
Traceback (most recent call last):
  File "sonota.py", line 734, in <module>
  File "sonota.py", line 729, in main
  File "sonota.py", line 612, in stage1
  File "httplib2\__init__.py", line 1322, in request
  File "httplib2\__init__.py", line 1072, in _request
  File "httplib2\__init__.py", line 1025, in _conn_request
  File "http\client.py", line 1198, in getresponse
  File "http\client.py", line 297, in begin
  File "http\client.py", line 258, in _read_status
  File "socket.py", line 576, in readinto
socket.timeout: timed out
[15064] Failed to execute script sonota
[15064] LOADER: OK.
[15064] LOADER: Cleaning up Python interpreter.
[11224] LOADER: Back to parent (RC: -1)
[11224] LOADER: Doing cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants