Hi
I am running a rpi4 V 4.204.
I use a usb dongle connecting to a 5g home network.
I have turned off the internal wifi so it connects via the dongle.
When connected I have speed of 234Mbs.
So occasionaly, when it boots up, it does not connect to the network. I have to restart the system and then it generally connects no problem. This is a frustration, as there are other family users of the system and they are not hobbiest and they say my music system is unreliable!
So is there some kind of timeout that needs to be extended?
Happens maybe 1 in 10 boots.
Suggestions?
Thanks
Hey @jocoman,
There is no user-adjustable connection timeout in Volumio, so there is nothing to tune yet. The only way to see what happens on the 1 boot in 10 is to capture evidence from that boot, before any restart.
The wireless service writes its log to /tmp/wireless.log, and /tmp is held in RAM. A restart wipes that file and the system journal for the failed boot. A log taken after the restart only shows the good boot, which tells us nothing about the failure.
Please do this now, while it works:
- Enable SSH at http://volumio.local/dev (or http://<your_volumio_IP>/dev). It stays enabled across reboots.
- Post the following (see Tips and guidelines to get faster help):
- exact Pi 4 board revision, using this guide: [GUIDE] Identifying Your Raspberry Pi Board on Volumio: A Comprehensive Guide to Revision Codes
- storage type (SD card, USB SSD, etc.)
- make and model of the USB wifi dongle
- how you turned off the internal wifi (the exact line in /boot/userconfig.txt, or the method used)
- “5g home network”: is that a 5G mobile broadband router, or the 5 GHz wifi band?
Next time it fails to connect, do NOT restart. Tell the family to leave it alone too. Then use one of the two routes below.
Route A - an ethernet cable can reach the Pi
- Plug an ethernet cable from the Pi into your router. Do not restart.
- Open http://volumio.local/dev, generate a log link and post it here. How-to: How to send a log link for a bug report? | Volumio
- SSH to the Pi (default password: volumio):
ssh volumio@volumio.local
- Create the archive:
tar -czf /tmp/wireless-log.tar.gz -C /tmp wireless.log
- Copy /tmp/wireless-log.tar.gz to your computer with SCP or FileZilla (host volumio.local, user volumio, password volumio). Upload it here, or to a file sharing service, and post the link.
Route B - no cable available
When Volumio has no network at all, it is designed to start its own hotspot, provided the dongle supports that. Look for a wifi network named Volumio (password volumio2).
- Connect your computer to the Volumio hotspot.
- SSH to the Pi (default password: volumio):
ssh volumio@192.168.211.1
- Save the journal of the failed boot:
sudo journalctl -b --no-pager > /tmp/journal-failed-boot.txt
- Create the archive:
tar -czf /tmp/failed-boot.tar.gz -C /tmp wireless.log journal-failed-boot.txt
- Copy /tmp/failed-boot.tar.gz to your computer with SCP or FileZilla (host 192.168.211.1, user volumio, password volumio). Only after that, restart the Pi.
- Once it is back on your network, generate a normal log link from http://volumio.local/dev and post it together with the archive. That log link is only for the hardware details.
If neither a cable nor the Volumio hotspot is available on a failed boot, say so. That is useful information in itself.
Kind Regards,
Thanks for the detailed reply. I currently have hotspot off. I guess I should turn that on to use “Route B”. BTW its using the 5g network from my router and in /boot/userconfig.txt I have added the line ```
dtoverlay=disable-wifi
next time it happens i will try and get this info to You.
Thanks