Vraag

Domotica update niet met 4g buitengebied modem

  • 13 May 2019
  • 3 reacties
  • 136 keer bekeken

Domoticz release update werkt niet met 4G buitengebied aansluiting, zodra ik het 4G modem uitschakel werkt het wel.

3 reacties

Het ~/domoticz/updaterelease script doet alleen een wget van een URL om daarmee een .tgz bestand te downloaden.
Dat moet je dus gaan uitzoeken waarom dat mis gaat. kan ook een DNS timeout o.i.d. zijn.
is er iemand die ook 4g buitengebied gebruikt in combinatie met Domoticz op de Raspberry Pi
ik heb inderdaad een DNS probleem

Zodra ik het het 4G modem uitzet kan ik wel een
./updaterelease of een ./updatebeta uitvoeren
maar vervolgens kan ik geen update van het OS meer uitvoeren

Als het mogelijk is wil ik graag de configuratie overnemen van een werkende Pi in combinatie met 4G

sudo apt-get update

Geeft errors like
W: Failed to fetch http://raspberrypi.collabora.com/dists/ ... elease.gpg Something wicked happened resolving 'host:http' (-5 - No address associated with hostname)

Op het Domoticz forum gezocht maar geen oplossing gevonden

ping google.com
responds normal
--- google.com ping statistics ---
114 packets transmitted, 114 received, 0% packet loss, time 113173ms
rtt min/avg/max/mdev = 19.390/24.136/42.980/5.536 ms

pi@raspberrypi ~ $ ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=22.4 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.484/22.484/22.484/0.000 ms

cat /etc/hostname
raspberrypi

hostname
raspberrypi

hostname -A
raspberrypi.local

hostname -i
127.0.1.1

hostname -I
192.168.2.58

cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi

cat /etc/resolv.conf
8.8.8.8

sudo sh -c "echo 8.8.8.8 >/etc/resolv.conf"
(does not show anything)

ping -c 1 -W 5 google.com
ping: unknown host google.com

/etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://mirror.ox.ac.uk/sites/archive.ra ... /raspbian/ wheezy main contrib non-free rpi

host google.co.uk
;; connection timed out; no servers could be reached

host www.pythonforbeginners.com
;; connection timed out; no servers could be reached

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=20.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=20.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=20.3 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 20.301/20.394/20.517/0.188 ms

traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.2.254 (192.168.2.254) 0.636 ms 0.357 ms 0.424 ms
2 195.190.228.186 (195.190.228.186) 15.410 ms 15.705 ms 17.310 ms
3 * * *
4 145.54.47.246 (145.54.47.246) 22.802 ms 23.646 ms 25.011 ms
5 145.54.47.250 (145.54.47.250) 25.401 ms 26.269 ms 27.612 ms
6 139.156.156.133 (139.156.156.133) 28.007 ms 19.106 ms 19.797 ms
7 139.156.127.73 (139.156.127.73) 21.917 ms 20.353 ms 139.156.127.77 (139.156.127.77) 21.430 ms
8 * * *
9 8.8.8.8 (8.8.8.8) 23.468 ms 108.170.236.137 (108.170.236.137) 25.081 ms 8.8.8.8 (8.8.8.8) 24.936 ms

pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.3G 4.9G 2.1G 71% /
devtmpfs 484M 0 484M 0% /dev
tmpfs 98M 204K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 196M 0 196M 0% /run/shm
/dev/mmcblk0p1 56M 24M 33M 43% /boot
none 488M 0 488M 0% /sys/fs/cgroup

pi@raspberrypi ~ $ ls
cmake-3.2.2 homepidomoticzscriptscheck_device_online.py
cmake-3.2.2.tar.gz libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
config.json libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb.1
dead.letter libudev1_234-3_armhf.deb
domoticz node_latest_armhf.deb
homebridge node_modules


pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback


##-- wlan static ip configuration 14-05-2019 --##
auto eth0
iface eth0 inet static
address 192.168.2.58
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.254
dns-nameservers 8.8.8.8 8.8.4.4

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
is er iemand die ook 4g buitengebied gebruikt in combinatie met Domoticz op de Raspberry Pi
ik heb inderdaad een DNS probleem

Ik heb geen KPN SIB, maar T-Mobile 4G voor Thuis. Dat is wel wezenlijk anders dan het hybride DSL+4G van KPN. Er zijn wel een aantal flinke verschillen tussen met Sagemcom aan of uit. Maar je hebt uitvoerig diverse info uit de RPi aangegeven, daarmee is wel verder te komen.

Zodra ik het het 4G modem uitzet kan ik wel een
./updaterelease of een ./updatebeta uitvoeren
maar vervolgens kan ik geen update van het OS meer uitvoeren

Als het mogelijk is wil ik graag de configuratie overnemen van een werkende Pi in combinatie met 4G

sudo apt-get update

Geeft errors like
W: Failed to fetch http://raspberrypi.collabora.com/dists/ ... elease.gpg Something wicked happened resolving 'host:http' (-5 - No address associated with hostname)

Op het Domoticz forum gezocht maar geen oplossing gevonden

ping google.com
responds normal
--- google.com ping statistics ---
114 packets transmitted, 114 received, 0% packet loss, time 113173ms
rtt min/avg/max/mdev = 19.390/24.136/42.980/5.536 ms

pi@raspberrypi ~ $ ping -c 1 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=22.4 ms

--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 22.484/22.484/22.484/0.000 ms

cat /etc/hostname
raspberrypi

hostname
raspberrypi

hostname -A
raspberrypi.local

hostname -i
127.0.1.1

hostname -I
192.168.2.58

cat /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi

Iets in de RPi configuratie doet deze koppeling van 127.0.1.1 en raspberrypi, of dit was al zo bij de originele SD card image.

cat /etc/resolv.conf
8.8.8.8

sudo sh -c "echo 8.8.8.8 >/etc/resolv.conf"
(does not show anything)

In de resolv.conf file zou niet alleen een IP adres moeten staan (zie man resolv.conf), maar:
nameserver 8.8.8.8
ping -c 1 -W 5 google.com
ping: unknown host google.com

/etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi

Dit is een nogal oude versie (wheezy is Debian 7), ik zou overgaan naar Debian 9 (stretch)
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://mirror.ox.ac.uk/sites/archive.ra ... /raspbian/ wheezy main contrib non-free rpi

host google.co.uk
;; connection timed out; no servers could be reached

host www.pythonforbeginners.com;; connection timed out; no servers could be reached

route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.254 0.0.0.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_req=1 ttl=53 time=20.3 ms
64 bytes from 8.8.8.8: icmp_req=2 ttl=53 time=20.5 ms
64 bytes from 8.8.8.8: icmp_req=3 ttl=53 time=20.3 ms

--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 20.301/20.394/20.517/0.188 ms

traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 192.168.2.254 (192.168.2.254) 0.636 ms 0.357 ms 0.424 ms
2 195.190.228.186 (195.190.228.186) 15.410 ms 15.705 ms 17.310 ms
3 * * *
4 145.54.47.246 (145.54.47.246) 22.802 ms 23.646 ms 25.011 ms
5 145.54.47.250 (145.54.47.250) 25.401 ms 26.269 ms 27.612 ms
6 139.156.156.133 (139.156.156.133) 28.007 ms 19.106 ms 19.797 ms
7 139.156.127.73 (139.156.127.73) 21.917 ms 20.353 ms 139.156.127.77 (139.156.127.77) 21.430 ms
8 * * *
9 8.8.8.8 (8.8.8.8) 23.468 ms 108.170.236.137 (108.170.236.137) 25.081 ms 8.8.8.8 (8.8.8.8) 24.936 ms

pi@raspberrypi ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 7.3G 4.9G 2.1G 71% /
devtmpfs 484M 0 484M 0% /dev
tmpfs 98M 204K 98M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 196M 0 196M 0% /run/shm
/dev/mmcblk0p1 56M 24M 33M 43% /boot
none 488M 0 488M 0% /sys/fs/cgroup

pi@raspberrypi ~ $ ls
cmake-3.2.2 homepidomoticzscriptscheck_device_online.py
cmake-3.2.2.tar.gz libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
config.json libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb.1
dead.letter libudev1_234-3_armhf.deb
domoticz node_latest_armhf.deb
homebridge node_modules

Ik gebruik op RPi uitsluitend versie 4.x van domoticz, gewoon de standaard binary. Heb wel de startup en configuratie aangepast.
pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback


##-- wlan static ip configuration 14-05-2019 --##
auto eth0
iface eth0 inet static
address 192.168.2.58
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.254
dns-nameservers 8.8.8.8 8.8.4.4

Je gebruikt een vaste IP configuratie in deze interface file. Dat is sterk af te raden en is denk ik een bron van de problemen.
Als de Sagemcom is aangesloten, kan deze adresconfiguratie niet meer geldig zijn, want zowel jij als ik weten niet of het subnet dan nog wel hetzelfde is. Dat kun je wel eenvoudig even uitvissen door met Sagemcom aangesloten op een PC met DHCP client standaard aan te kijken wat die als IP configuratie gekregen heeft. Dan is gelijk je eerste vraag beantwoord en is ook gelijk de weg naar de oplossing voor de RPi, namelijk, gebruik in de RPi DHCP client, zoals standaard geconfigureerd staat. Je kan hoogstens als back up een vast IP adres gebruiken, regel dat dan in de dhcpcd.conf file.
Als je een vast IP adres wilt voor de RPi, dan dat regelen in de ExperiaBox v10 via IP-to-MAC bind of hoe dat ook heet.

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

Ik zou WiFi van de RPi uitzetten of niet gebruiken (in eerste instantie)

Reageer