rand256 / valetudo

Valetudo RE - experimental vacuum software, cloud free
Apache License 2.0
666 stars 73 forks source link

OTA Update via web-interface dosen't start #387

Closed 10bn closed 3 years ago

10bn commented 3 years ago

Describe the bug The OTA web-interface update process is not working.

  1. Pasting the firmware github link: https://github.com/rand256/valetudo/releases/download/0.10.4/vacuum_2034_valetudo_re_0_10_4.pkg
  2. Pasting the Hash (the number set displayed in the md5 file)
  3. Displayed popup shows: update request sent, wait for leds to..., the popup disapears
  4. Firmware update column shows: status: idle -->

Screenshots

Vacuum Model:

Roborock Gen2 S50

Valetudo Version:

v0.10.3

User-Agent

Chrome Version 88.0.4324.150 (Official Build) (x86_64)

Additional context

Valetudo LOG:

2021-02-11T08:26:23.026Z will try to perform updating from https://github-releases.githubusercontent.com/188584220/15590780-6bde-11eb-8122-1eef5c33774b?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210211%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210211T082607Z&X-Amz-Expires=300&X-Amz-Signature=02b3e6c4a9c44c65e46f190d0625b36bf37bc782c952e44c6edc728f74ce2487&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=188584220&response-content-disposition=attachment%3B%20filename%3Dvacuum_2034_valetudo_re_0_10_4.pkg&response-content-type=application%2Foctet-stream hashed as 9d263efdb6332f9f4b5ab4518b712b96 2021-02-11T08:11:05.227Z Got an expired token. Changing to new. 2021-02-11T08:10:57.464Z Connected successfully to mqtt server 2021-02-11T08:10:15.637Z Got token from handshake: mytoken 2021-02-11T08:08:00.973Z Got token from handshake: mytoken 2021-02-11T08:07:59.966Z Got an expired token. Changing to new. 2021-02-11T02:22:28.975Z Connected successfully to mqtt server 2021-02-11T02:22:27.328Z Probed last id = 1001 using get_status (3 retries) 2021-02-11T02:22:26.242Z Webserver is running on port 80 (http) 2021-02-11T02:22:26.238Z Dummycloud is spoofing 203.0.113.1:8053 on 127.0.0.1:8053 2021-02-11T02:22:26.178Z No ssl key found. Expected path: /mnt/data/valetudo/key.pem 2021-02-11T02:22:26.177Z No ssl cert found. Expected path: /mnt/data/valetudo/cert.pem 2021-02-11T02:22:26.066Z Loading configuration file: /mnt/data/valetudo/config.json

rand256 commented 3 years ago

Update record in valetudo's log looks correct, but a lot of 'expired token' warnings is strange. Could you actually see a current map in the web UI at the time you tried to update the firmware? I'm asking that cause in case you can't would mean an issue with communicating between the device and the "cloud emulator" integrated into valetudo, and that's required for updates to work.

10bn commented 3 years ago

The map was not working at that time. I now did a complete reinstall via the latest provided binary from your repo "2032" and now its working. Before i used the binary builder https://builder.dontvacuum.me/