ironsheep/RPi-Reporter-MQTT2HA-Daemon

RPI-Reporter Could not start after OS Update

Nesie opened this issue · 4 comments

Nesie commented

SCRIPT genBugInfo v1.1 run 23/12/15-14:48:32

----------------------------------------------------------------------

/bin/cat /etc/apt/sources.list | /bin/egrep -v '#'

deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free


/bin/cat /etc/apt/sources.list | /bin/egrep -v '#' | /usr/bin/awk '{ print $3 }' | /bin/grep . | /usr/bin/sort -u | head -1

bullseye


/bin/uname -r

6.1.21-v8+


/bin/hostname -f

Touch


/usr/bin/uptime

14:48:32 up 4:49, 3 users, load average: 0,16, 0,20, 0,18


/sbin/ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.64 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 2003:d6:df0a:7700:855d:8c44:49:90e6 prefixlen 64 scopeid 0x0
inet6 fe80::32ac:7f8:f579:31d5 prefixlen 64 scopeid 0x20
ether b8:27:eb:0f:65:92 txqueuelen 1000 (Ethernet)
RX packets 150877 bytes 23388656 (22.3 MiB)
RX errors 0 dropped 3 overruns 0 frame 0
TX packets 15206 bytes 1249327 (1.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Lokale Schleife)
RX packets 37 bytes 4478 (4.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37 bytes 4478 (4.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.34 netmask 255.255.255.0 broadcast 192.168.178.255
inet6 2003:d6:df0a:7700:ff84:fdf1:9d8d:dfd0 prefixlen 64 scopeid 0x0
inet6 fe80::5378:ad8e:ca15:ab97 prefixlen 64 scopeid 0x20
ether b8:27:eb:5a:30:c7 txqueuelen 1000 (Ethernet)
RX packets 99646 bytes 17464145 (16.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 433 bytes 40515 (39.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


/sbin/ifconfig | /bin/egrep 'Link|flags|inet|ether' | /bin/egrep -v -i 'lo:|loopback|inet6|::1|127.0.0.1'

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.64 netmask 255.255.255.0 broadcast 192.168.178.255
ether b8:27:eb:0f:65:92 txqueuelen 1000 (Ethernet)
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.178.34 netmask 255.255.255.0 broadcast 192.168.178.255
ether b8:27:eb:5a:30:c7 txqueuelen 1000 (Ethernet)


/sbin/route

Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
default 192.168.178.1 0.0.0.0 UG 202 0 0 eth0
default 192.168.178.1 0.0.0.0 UG 303 0 0 wlan0
192.168.178.0 0.0.0.0 255.255.255.0 U 202 0 0 eth0
192.168.178.0 0.0.0.0 255.255.255.0 U 303 0 0 wlan0


/bin/ls -l /var/log/dpkg.log /var/log/dpkg.log.1 2>/dev/null

-rw-r--r-- 1 root root 12030 15. Dez 14:21 /var/log/dpkg.log
-rw-r--r-- 1 root root 24539 21. Nov 12:34 /var/log/dpkg.log.1


/bin/grep 'status installed' /var/log/dpkg.log /var/log/dpkg.log.1 2>/dev/null | sort | tail -1

/var/log/dpkg.log:2023-12-15 14:21:55 status installed man-db:arm64 2.9.4-2


/bin/df -m

Dateisystem 1M-Blöcke Benutzt Verfügbar Verw% Eingehängt auf
/dev/root 58257 11527 44307 21% /
devtmpfs 325 0 325 0% /dev
tmpfs 455 0 455 0% /dev/shm
tmpfs 182 3 180 2% /run
tmpfs 5 1 5 1% /run/lock
/dev/mmcblk0p1 253 31 222 13% /boot
tmpfs 91 1 91 1% /run/user/1000


/bin/df -m | /usr/bin/tail -n +2 | /bin/egrep -v 'tmpfs|boot'

/dev/root 58257 11527 44307 21% /


ls -l /opt/vc/bin/vcgencmd /usr/bin/vcgencmd

ls: Zugriff auf '/opt/vc/bin/vcgencmd' nicht möglich: Datei oder Verzeichnis nicht gefunden
-rwxr-xr-x 1 root root 22920 22. Mär 2023 /usr/bin/vcgencmd


Here the Dump, what is that URL for " kz0q.com" ?

pi@Touch:/opt/RPi-Reporter-MQTT2HA-Daemon $ python3 /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py -d -v
[2023-12-15 14:31:06] - (DBG): --------------------------------------------------------------------
[2023-12-15 14:31:06] - ISP-RPi-mqtt-daemon.py v1.8.5
[2023-12-15 14:31:06] - Verbose enabled
[2023-12-15 14:31:06] - (DBG): Debug enabled
[2023-12-15 14:31:06] - (DBG): * init mqtt_client_connected=[False]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.9/http/client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
self.send(msg)
File "/usr/lib/python3.9/http/client.py", line 950, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fb17c8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='kz0q.com', port=80): Max retries exceeded with url: /daemon-releases (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb17c8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 346, in
getDaemonReleases() # and load them!
File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 315, in getDaemonReleases
response = requests.request('GET', 'http://kz0q.com/daemon-releases', verify=False)
File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='kz0q.com', port=80): Max retries exceeded with url: /daemon-releases (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb17c8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

Do you have any hint for solving ?

dmatik commented

Same here for last couple days.
Although I did not do any OS update.

I tried to load the same URL http://kz0q.com/daemon-releases on my PC in browser and it is being loaded successfully.
Not sure why failing through script on RPI.

Nesie commented

Tried to open the URL even in my Browsers. But there is no domain resolving possible ?

WhoIs tells that it is an outdated domain:

kz0q.com
Updated 1 second ago
Domain Information
Domain:
kz0q.com
Registrar:
IONOS SE
Registered On:
2007-09-27
Expires On:
2024-09-27
Updated On:
2023-09-28
Status:
clientTransferProhibited
Name Servers:
ns1.dotblock.com
ns2.dotblock.com
Registrant Contact
State:
CO
Country:
US
Email:
email@ionos.de

Ip adress of it is shown there as: 199.101.50.120
ping is possible, also tracert shows that it is alive.

but using that in a Browser provides : The provided host name is not valid for this server.

bsimmo commented
Nesie commented

Thank you very much. Yes after blank it out everything is working.