niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

G2H Mosquitto Glibc error #221

Closed Silverow closed 10 months ago

Silverow commented 10 months ago
          > > Try to telnet to G2H. and use the following command to have a try.
killall -9 mosquitto; /data/bin/mosquitto -d

i get

/data/bin/mosquitto: /lib/libm.so.6: version GLIBC_2.29 not found (required by /data/bin/mosquitto) /data/bin/mosquitto: /lib/libc.so.6: version GLIBC_2.25 not found (required by /data/bin/mosquitto) /data/bin/mosquitto: /lib/libc.so.6: version GLIBC_2.28 not found (required by /data/bin/mosquitto)

I got the same result. What can be done about it?

Originally posted by @Silverow in https://github.com/niceboygithub/AqaraGateway/issues/171#issuecomment-1871751144

niceboygithub commented 10 months ago

You use wrong mosquitto. Where did you get it?

Silverow commented 10 months ago

I telneted in and ran these commands from manual

mkdir /data/bin cd /data/bin wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1"; chmod +x /tmp/curl /tmp/curl -s -k -L -o /data/bin/mosquitto https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/binutils/mosquitto; chmod a+x /data/bin/mosquitto

niceboygithub commented 10 months ago

Can you use this command 'agetprop | grow miio' and paste the output here?

Silverow commented 10 months ago

Camera-Hub-G2H` login: root
BusyBox v1.24.1 (2020-04-28 18:44:59 CST) built-in shell (ash) Enter 'help' for a list of built-in commands.
Welcome to Linux.

agetprop | grep miio

#

Empty. I looked through the full output of the agetprop command, nothing like "miio".

niceboygithub commented 10 months ago

I tested the commands in my G2H and without any problems to run mosquitto.

can you get the boot log and the output of agetprop?

Silverow commented 10 months ago

I telneted in and ran these commands from manual

mkdir /data/bin cd /data/bin wget -O /tmp/curl "http://master.dl.sourceforge.net/project/aqarahub/binutils/curl?viasf=1"; chmod +x /tmp/curl /tmp/curl -s -k -L -o /data/bin/mosquitto https://raw.githubusercontent.com/niceboygithub/AqaraCameraHubfw/main/binutils/mosquitto; chmod a+x /data/bin/mosquitto

Repeat commands and it works. Thanks