Open LuisDiazUgena opened 2 years ago
Hi @LuisDiazUgena,
Have you tried to change server_ssl_enable
to 0
in /mnt/UDISK/config/sysConfig.ini
and /etc/sysconf/sysConfig.ini
and starting Valetudo?
Hi! thanks for the quick response.
I have disabled ssl server on both files:
root@TinaLinux:~# cat /mnt/UDISK/config/sysConfig.ini
[Sys_Config]
server_cmd_address=cecotec-ota.3irobotix.net
server_map_address=cecotec-ota.3irobotix.net
server_log_address=eu.log.3irobotics.net
server_ota_address=cecotec-ota.3irobotix.net
server_ssl_cmd_port=8001
server_ssl_map_port=8001
server_ssl_enable=0
server_cmd_port=4010
server_map_port=4030
server_sync_time_port=4050
server_log_port=21
server_ota_check_port=8001
server_ota_download_port=2300
wlan_port=8111
wlan_broad_port=8888
deviceFirmsID=1003
deviceType=4
languageType=2
hardwareRtc=1
timezoneSec=28800
ctrl_version=V5.0
root@TinaLinux:~# cat /etc/sysconf/sysConfig.ini
[Sys_Config]
server_cmd_address=cecotec-ota.3irobotix.net
server_map_address=cecotec-ota.3irobotix.net
server_log_address=eu.log.3irobotics.net
server_ota_address=cecotec-ota.3irobotix.net
server_ssl_cmd_port=8001
server_ssl_map_port=8001
server_ssl_enable=0
server_cmd_port=4010
server_map_port=4030
server_sync_time_port=4050
server_log_port=21
server_ota_check_port=8001
server_ota_download_port=2300
wlan_port=8111
wlan_broad_port=8888
deviceFirmsID=1003
deviceType=4
languageType=2
hardwareRtc=1
timezoneSec=28800
After that I have restarted the congatudo addond. WebUi shows Loading State...! and addon log is:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:28:16] INFO: Using configuration from '/config/valetudo.json'...
[2022-01-14T10:28:19.918Z] [INFO] Loading configuration file: /config/valetudo.json
[2022-01-14T10:28:20.585Z] [INFO] Set Logfile to /tmp/valetudo.log
[2022-01-14T10:28:20.608Z] [INFO] Starting Valetudo 2021.09.1
[2022-01-14T10:28:20.610Z] [INFO] Commit ID: ref: refs/heads/feature-conga
[2022-01-14T10:28:20.611Z] [INFO] Configuration file: /config/valetudo.json
[2022-01-14T10:28:20.612Z] [INFO] Logfile: /tmp/valetudo.log
[2022-01-14T10:28:20.613Z] [INFO] Robot: Cecotec Conga (CecotecCongaRobot)
[2022-01-14T10:28:20.613Z] [INFO] JS Runtime Version: v16.8.0
[2022-01-14T10:28:20.614Z] [INFO] Arch: arm64
[2022-01-14T10:28:20.616Z] [INFO] Max Heap Size: 64 MiB
[2022-01-14T10:28:20.617Z] [INFO] Node Flags: --expose-gc --max-heap-size=64 --sparkplug
[2022-01-14T10:28:20.624Z] [INFO] Autogenerated System ID: FatPortlyCapybara
[2022-01-14T10:28:24.434Z] [INFO] Webserver running on port 8080
[2022-01-14T10:28:24.462Z] [INFO] Connected successfully to MQTT broker
[2022-01-14T10:28:24.915Z] [INFO] MQTT configured
After that I have rebooted the robot via ssh and restarted the addon.
Same output as before. webui shows 502:bat_gataway error in the bottom for a few seconds.
@LuisDiazUgena, I think you need to add your robot domains to the host list. This one seems to not be in the list:cecotec-ota.3irobotix.net
I have followed the instructions on https://github.com/txitxo0/congatudo-add-on#connect-your-robot
The server listed there is cecotec.ota.3irobotix.net instead of cecotec-ota.3irobotix.net (- instead of . between cecotec and ota). I have added cecotec-ota.3irobotix.net to the hosts file.
root@TinaLinux:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.1.56 cecotec.das.3irobotix.net cecotec.download.3irobotix.net cecotec.log.3irobotix.net cotec-ota.3irobotix.net .ota.3irobotix.net eu.das.3irobotics.net eu.log.3irobotics.net eu.ota.3irobotics.net cecotec-das.3irobotix.net cecotec-log.3irobotix.net cecotec-upgrade.3irobotix.net cecotec-download.3irobotix.net
and rebooted the robot.
After that, webUI or logs are not updating. So, I proceed to restart the addon. (I have reverted the SSL values to default to make the fresh from start).
webUi shows loading state message and log is
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[11:52:43] INFO: Using configuration from '/config/valetudo.json'...
[2022-01-14T10:52:47.203Z] [INFO] Loading configuration file: /config/valetudo.json
[2022-01-14T10:52:47.683Z] [INFO] Set Logfile to /tmp/valetudo.log
[2022-01-14T10:52:47.706Z] [INFO] Starting Valetudo 2021.09.1
[2022-01-14T10:52:47.708Z] [INFO] Commit ID: ref: refs/heads/feature-conga
[2022-01-14T10:52:47.708Z] [INFO] Configuration file: /config/valetudo.json
[2022-01-14T10:52:47.710Z] [INFO] Logfile: /tmp/valetudo.log
[2022-01-14T10:52:47.710Z] [INFO] Robot: Cecotec Conga (CecotecCongaRobot)
[2022-01-14T10:52:47.711Z] [INFO] JS Runtime Version: v16.8.0
[2022-01-14T10:52:47.712Z] [INFO] Arch: arm64
[2022-01-14T10:52:47.713Z] [INFO] Max Heap Size: 64 MiB
[2022-01-14T10:52:47.714Z] [INFO] Node Flags: --expose-gc --max-heap-size=64 --sparkplug
[2022-01-14T10:52:47.720Z] [INFO] Autogenerated System ID: FatPortlyCapybara
[2022-01-14T10:52:51.329Z] [INFO] Webserver running on port 8080
[2022-01-14T10:52:51.357Z] [INFO] Connected successfully to MQTT broker
[2022-01-14T10:52:51.790Z] [INFO] MQTT configured`
Now I'm going to proceed to disable ssl server on /mnt/UDISK/config/sysConfig.ini and /etc/sysconf/sysConfig.ini :
root@TinaLinux:~# cat /etc/sysconf/sysConfig.ini
[Sys_Config]
server_cmd_address=cecotec-ota.3irobotix.net
server_map_address=cecotec-ota.3irobotix.net
server_log_address=eu.log.3irobotics.net
server_ota_address=cecotec-ota.3irobotix.net
server_ssl_cmd_port=8001
server_ssl_map_port=8001
server_ssl_enable=0
server_cmd_port=4010
server_map_port=4030
server_sync_time_port=4050
server_log_port=21
server_ota_check_port=8001
server_ota_download_port=2300
wlan_port=8111
wlan_broad_port=8888
deviceFirmsID=1003
deviceType=4
languageType=2
hardwareRtc=1
timezoneSec=28800
ctrl_version=V5.0
root@TinaLinux:~# cat /mnt/UDISK/config/sysConfig.ini
[Sys_Config]
server_cmd_address=cecotec-ota.3irobotix.net
server_map_address=cecotec-ota.3irobotix.net
server_log_address=eu.log.3irobotics.net
server_ota_address=cecotec-ota.3irobotix.net
server_ssl_cmd_port=8001
server_ssl_map_port=8001
server_ssl_enable=0
server_cmd_port=4010
server_map_port=4030
server_sync_time_port=4050
server_log_port=21
server_ota_check_port=8001
server_ota_download_port=2300
wlan_port=8111
wlan_broad_port=8888
deviceFirmsID=1003
deviceType=4
languageType=2
hardwareRtc=1
timezoneSec=28800
ctrl_version=V5.0
After changing that nothing changes on webui or log. Rebooting the robot, nothing changes. Rebooting the addon, nothing changes.
___ Update:
I have seen that the hosts file was not properly fullfiled. there was a mistake in one of the servers. I have fixed that:
root@TinaLinux:~# cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.1.56 cecotec.das.3irobotix.net cecotec.download.3irobotix.net cecotec.log.3irobotix.net cecotec-ota.3irobotix.net cecotec.ota.3irobotix.net eu.das.3irobotics.net eu.log.3irobotics.net eu.ota.3irobotics.net cecotec-das.3irobotix.net cecotec-log.3irobotix.net cecotec-upgrade.3irobotix.net cecotec-download.3irobotix.net
root@TinaLinux:~# reboot
restarted the robot and the addon and NOW we have some progress! 👍
[2022-01-14T11:07:39.964Z] [ERROR] Uncaught Exception {
err: DomainException: Max length exceeded
at PacketSocket.onReadable (/snapshot/app/node_modules/@agnoc/core/lib/sockets/packet.socket.js:110:29)
at processImmediate (node:internal/timers:464:21) {
metadata: undefined
},
origin: 'uncaughtException'
}
[2022-01-14T11:07:39.974Z] [INFO] Valetudo shutdown in progress...
[2022-01-14T11:07:40.025Z] [INFO] Valetudo shutdown done
[2022-01-14T11:07:40.027Z] [INFO] exiting with code 0...
[cmd] dumb-init exited 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
@LuisDiazUgena,
[2022-01-14T11:07:39.964Z] [ERROR] Uncaught Exception {
err: DomainException: Max length exceeded
This is a hint that the protocol used by this robot may be different. Take a look at #34 to see if you could record a proper network dump of your robot.
Thanks. I will get back as soon as I got the network dump.
@adrigzr Just sended this morning the network dump and the ssl keylog file to Jesus from freeconga telegram group.
Hi @LuisDiazUgena, perfect.
If the protocol is the same as with the 6090 and 4690, we are working hard and getting great results towards the integration with the library. It should be ready soon.
Hi all, I'm new to the underground conga world and I'm amazed with all your work. I can help with a Conga 3890 to test. I can't develop this kind of stuff but I manage fine in linux world.
Hi! Also, I have the 3890 model, if you need some information or network dumps without any problem, I'm not a developer, but I am a sysadmin.
hi @thekimera and @ZeroKing666, I have already extracted the logs and send those logs to some people in the conga telegram group. I don't know if there is any need to get more info.
That's perfect, I was just offering. You say there's a telegram group, could you share that please?
@thekimera https://t.me/freeconga
Hi, My 3590 got changed by a 3890 2 months before warranty expiration and I was wondering if there was any option to connect it to Congatudo, but I reached this issue and it seems that there is no implementation yet.
If my help is needed, I can share anything from my robot to get this integration working. Thanks in advance for your hard work!
Hello. I got a Conga 3890 recently. There is some news of this proyect?
Hello.
Is there any progress about this one?
Hi!
I would like to provide help to integrate the 3890 model. I have installed the congatudo Addon and conneced to the 3890 via SSH and to edit the host file. (password is @3I#sc$RD%xm^2S& for this model)
content of hosts file is:
being 192.168.1.56 the IP of a home assistant server running on a rasbperry pi 4 using home assistant OS.
This robot has SSL enabled:
I would like to know if there is anything I can do to help integrating this model. I assume that many models would have the same or similar protocol. Please let me know if there is anything else I can do.