DreamPi gets assigned an IP but cannot connect to the internet
Posted: Wed Feb 08, 2023 12:45 am
RPI Model: 3b+
Modem Model: Conexant USB modem from Dreamcast-Live shop.
Disk Image: DreamPi 1.7
Networking Configuration: wireless
Steps taken so far: Formatted the SD card as FAT32 and imaged with Win32 Disk Imager. After first boot-up, ran the wificonfig utility to connect to wireless network.
Problem: When I boot the RPI, it gets assigned an IP address but seemingly cannot connect to the internet. The left LED on the modem lights up but the right LED never turns on. From the bash prompt on the RPI, I am unable to ping or traceroute to any named URL but I can ping IP addresses like 8.8.8.8 with no issues.
I first noted the following error on start-up:
and if I interrogate further with "systemctl status dhcpcd.service" i'm met with this:
Here is the contents of the /etc/network/interfaces file:
And here is the output of "ifconfig" showing that it has an assigned IP:
I am able to successfully ssh into the RPI using "ssh [email protected]" as the connection method so I know it's getting onto the wifi network.
If i look at the syslog while it's running, it just loops this over and over again:
Is there some step I'm missing? All the tutorials I've read just say to flash the card, pop it into the RPI and turn it on but I'm not experiencing that level of simplicity here.
Modem Model: Conexant USB modem from Dreamcast-Live shop.
Disk Image: DreamPi 1.7
Networking Configuration: wireless
Steps taken so far: Formatted the SD card as FAT32 and imaged with Win32 Disk Imager. After first boot-up, ran the wificonfig utility to connect to wireless network.
Problem: When I boot the RPI, it gets assigned an IP address but seemingly cannot connect to the internet. The left LED on the modem lights up but the right LED never turns on. From the bash prompt on the RPI, I am unable to ping or traceroute to any named URL but I can ping IP addresses like 8.8.8.8 with no issues.
I first noted the following error on start-up:
Code: Select all
Failed to start dhcpcd on all interfaces
Code: Select all
Feb 07 21:29:47 dreampi systemd[1]: Starting dhcpcd on all interfaces...
Feb 07 21:29:47 dreampi dhcpcd[280]: Not running dhcpcd because /etc/network/interfaces
Feb 07 21:29:47 dreampi dhcpcd[280]: defines some interfaces that will use a
Feb 07 21:29:47 dreampi dhcpcd[280]: DHCP client or static address
Feb 07 21:29:48 dreampi systemd[1]: dhcpcd.service: Control process exited, code=exited status=6
Feb 07 21:29:48 dreampi systemd[1]: Failed to start dhcpcd on all interfaces.
Feb 07 21:29:48 dreampi systemd[1]: dhcpcd.service: Unit entered failed state.
Feb 07 21:29:48 dreampi systemd[1]: dhcpcd.service: Failed with result 'exit-code'.
Code: Select all
auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
dns-nameserver 127.0.0.1
manual eth0
allow-hotplug eth0
iface eth0 inet dhcp
dns-nameserver 127.0.0.1
Code: Select all
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 88 bytes 5920 (5.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 88 bytes 5920 (5.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.32 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::ba27:ebff:fe32:4209 prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:32:42:09 txqueuelen 1000 (Ethernet)
RX packets 646 bytes 40566 (39.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 536 bytes 66227 (64.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
If i look at the syslog while it's running, it just loops this over and over again:
Code: Select all
Feb 7 21:35:10 dreampi Waiting for internet connection...
Feb 7 21:35:10 dreampi dreampi[419]: No internet connection
Feb 7 21:35:10 dreampi dreampi[419]: Traceback (most recent call last):
Feb 7 21:35:10 dreampi dreampi[419]: File "/usr/local/bin/dreampi", line 50, in check_internet_connection
Feb 7 21:35:10 dreampi dreampi[419]: socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))
Feb 7 21:35:10 dreampi dreampi[419]: File "/usr/lib/python2.7/socket.py", line 228, in meth
Feb 7 21:35:10 dreampi dreampi[419]: return getattr(self._sock,name)(*args)
Feb 7 21:35:10 dreampi dreampi[419]: error: [Errno 111] Connection refused
Feb 7 21:35:10 dreampi dreampi[419]: Waiting for internet connection...
Feb 7 21:35:13 dreampi dnsmasq[469]: query[A] 0.debian.pool.ntp.org.Home from 127.0.0.1
Feb 7 21:35:13 dreampi dnsmasq[469]: forwarded 0.debian.pool.ntp.org.Home to 46.101.91.123
Feb 7 21:35:13 dreampi dnsmasq[469]: query[AAAA] 0.debian.pool.ntp.org.Home from 127.0.0.1
Feb 7 21:35:13 dreampi dnsmasq[469]: forwarded 0.debian.pool.ntp.org.Home to 46.101.91.123
Feb 7 21:35:16 dreampi No internet connection#012Traceback (most recent call last):#012 File "/usr/local/bin/dreampi", line 50, in check_internet_connection#012 socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host, port))#012 File "/usr/lib/python2.7/socket.py", line 228, in meth#012 return getattr(self._sock,name)(*args)#012error: [Errno 111] Connection refused
Feb 7 21:35:16 dreampi Waiting for internet connection...
Feb 7 21:35:16 dreampi dreampi[419]: No internet connection