zvldz/vacuum

loosing data after reboot on _valetudo_2021_02_0.pkg

lukich48 opened this issue ยท 15 comments

Hi! I created issue in valetudo repository but maybe the problem is here
Hypfer/Valetudo#706

Prebuild image vacuum_4028_valetudo_2021_02_0.pkg doesn't save config settings and it recreates clear /tmp/valetudo_config.json after each reboot

log after reboot:

[2021-02-20T15:02:19.602Z] [INFO] Set Logfile to /tmp/valetudo.log
[2021-02-20T15:02:19.610Z] [INFO] Autodetected RoborockV1ValetudoRobot
[2021-02-20T15:02:19.759Z] [INFO] Starting Valetudo 2021.02.0
[2021-02-20T15:02:19.760Z] [INFO] Configuration file: /tmp/valetudo_config.json
[2021-02-20T15:02:19.761Z] [INFO] Logfile: /tmp/valetudo.log
[2021-02-20T15:02:19.762Z] [INFO] Robot: Beijing Roborock Technology Co., Ltd. Xiaomi Mi SDJQR02RR (RoborockV1ValetudoRobot)
[2021-02-20T15:02:19.763Z] [INFO] JS Runtime Version v14.4.0
[2021-02-20T15:02:19.765Z] [INFO] Max Heap Size: 33.5 MiB
[2021-02-20T15:02:19.766Z] [INFO] Node Flags: --max-old-space-size=32
[2021-02-20T15:02:19.775Z] [INFO] DeviceId 82651588
[2021-02-20T15:02:19.776Z] [INFO] IP 127.0.0.1
[2021-02-20T15:02:19.778Z] [INFO] CloudSecret ogp36NPfP2wzhvHe
[2021-02-20T15:02:19.779Z] [INFO] LocalSecret f3Z7yeLTOiDEJSju
[2021-02-20T15:02:19.949Z] [INFO] Dummycloud is spoofing 127.0.0.1:8053 on 127.0.0.1:8053
[2021-02-20T15:02:19.957Z] [INFO] Webserver running on port 80
[2021-02-20T15:02:19.964Z] [INFO] Map Upload Server running on port 8079
[2021-02-20T15:02:19.981Z] [WARN] Error during time sync: Error: queryA ECONNREFUSED pool.ntp.org
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:203:19) {
  errno: undefined,
  code: 'ECONNREFUSED',
  syscall: 'queryA',
  hostname: 'pool.ntp.org'
}
[2021-02-20T15:02:27.873Z] [INFO] Cloud connected
[2021-02-20T15:03:19.004Z] [INFO] Successfully set the robot time via NTP to 2021-02-20T15:03:19.890Z
zvldz commented

Yes, firmware contains old valetudo.conf.
There is no VALETUDO_CONFIG_PATH in it.
I'll recreate firmware images.

zvldz commented

I recreated fw images.
Download and try install again.

Great! It works ๐Ÿ‘

I have this issue also on valetudo_2021_02_0.
I have a S5 and i don't get the maps
Can you give me a clue how this issue is solved?

zvldz commented

Logs please or more details

Attached you will find the logfile

[2021-03-09T02:31:11.601Z] [INFO] Set Logfile to /tmp/valetudo.log
[2021-03-09T02:31:11.608Z] [INFO] Autodetected RoborockS5ValetudoRobot
[2021-03-09T02:31:11.755Z] [INFO] Starting Valetudo 2021.02.0
[2021-03-09T02:31:11.756Z] [INFO] Configuration file: /mnt/data/valetudo_config.json
[2021-03-09T02:31:11.756Z] [INFO] Logfile: /tmp/valetudo.log
[2021-03-09T02:31:11.757Z] [INFO] Robot: Beijing Roborock Technology Co., Ltd. S5 (RoborockS5ValetudoRobot)
[2021-03-09T02:31:11.757Z] [INFO] JS Runtime Version v14.4.0
[2021-03-09T02:31:11.759Z] [INFO] Max Heap Size: 33.5 MiB
[2021-03-09T02:31:11.759Z] [INFO] Node Flags: --max-old-space-size=32
[2021-03-09T02:31:11.768Z] [INFO] DeviceId 261200022
[2021-03-09T02:31:11.768Z] [INFO] IP 127.0.0.1
[2021-03-09T02:31:11.769Z] [INFO] CloudSecret aY1VvW70MZYYkB5w
[2021-03-09T02:31:11.770Z] [INFO] LocalSecret XtaAnBW0RIlhs9dB
[2021-03-09T02:31:11.772Z] [INFO] Firmware Version: 3.5.8_002034
[2021-03-09T02:31:11.935Z] [INFO] Dummycloud is spoofing 127.0.0.1:8053 on 127.0.0.1:8053
[2021-03-09T02:31:11.943Z] [INFO] Webserver running on port 80
[2021-03-09T02:31:11.949Z] [INFO] Map Upload Server running on port 8079
[2021-03-09T02:31:11.976Z] [WARN] Error during time sync: Error: queryA ECONNREFUSED pool.ntp.org
at QueryReqWrap.onresolve [as oncomplete] (dns.js:203:19) {
errno: undefined,
code: 'ECONNREFUSED',
syscall: 'queryA',
hostname: 'pool.ntp.org'
}

zvldz commented

Please show contents of /usr/local/bin/valetudo-daemon.sh

there is no file valetudo-deamon.sh in /usr/local/bin
there is only a binary file named 'valetudo'.

[root@rockrobo ]# ls -ls /usr/local/bin
32189 -rwxr-xr-x 1 root root 32961247 Feb 27 16:50 valetudo
[root@rockrobo ]#

zvldz commented

Did you use ready made image or did you build it yourself?

zvldz commented

You may not have updated the builder from the github.

I am not sure, i think i have used the ready made image

zvldz commented

It's not like the images I created.
Maybe you have used another image.
You can download my image from https://vacuumz.info/download/gen2/ or use buidler from github.

I made an image with dustbuilder, with following:

  • my own SSH-key
  • Replace Xiaomi adbd with generic adbd (enables shell access via USB)
  • Preinstall valetudo newest version
  • Preinstall Nano texteditor, curl, wget, htop, hexdump
  • Fixresets patch new May 2020
  • S5 (ver 2034, 11/2020, stripped-Ubuntu)

Then i used the image v11_002034.pkg

zvldz commented

dustbuilder uses its own builder, you need to contact with http://github.com/dgiese/.

zvldz commented

Resetting to factory settings deletes all maps, you need to restart full cleaning to build new map