MusicBox on Pi 3 -- Wifi Problems


#1

I am trying to set up Pi Musicbox on an RPi 3 and everything is fine over a wired network connection, but I can’t get the WiFi to work.

My network is WPA2. I have set up /etc/network/interfaces as follows; I am certain the ssid and pw are correct:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid my-ssid
wpa-psk mypw

Here are the results from ifup wlan0:

Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/b8:27:eb:bd:e8:46
Sending on LPF/wlan0/b8:27:eb:bd:e8:46
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

I tried using the more complex approach with wpa_supplicant.conf but that gave the same results. Also tried quoting the ssid and pw. iwlist wlan0 scan does show the network, and all the parameters look right.

Thanks for any and all ideas!


Tom


#2

You can set all the usual wifi settings in settings.ini or through the Web
settings page. This will setup all the config files correctly automatically
so you should have no reason to edit them yourself. I don’t support editing
them manually.


#3

OK, I will try resetting them on a clean install and will report back. Thanks.


#4

OK … I created a completely clean install and set up wifi via the web client. The other changes I made were to enable SSH, change the root password, enable the stream watchdog and airplay streaming, and change the MusicBox name. I did not edit any files on the SD card manually. The wifi user name and PW work on other devices so I know they are good and I have triple-checked them. The pi is within a foot or two of the router so there should be no signal strength issue. Still no wifi connectivity. Here is the contents of musicbox_startup.log (I replaced the http links with “…” to avoid posting errors as a new user). I am happy to do whatever is need to troubleshoot, and thanks again for the help!

Tom


Initializing MusicBox…


Setting sound configuration…

  • Found internal device: card0
  • Found internal device: card0
    Card= i2s= output=auto usb= intc=0
    No output was specified/found, falling back to auto detection
    Card=0 i2s= output=analog usb= intc=0
    Using audio card0 (analog)
    MusicBox name is RPKitchen
    ifup: interface wlan0 already configured
    Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces … (warning).
    Reconfiguring network interfaces…RTNETLINK answers: No such process
    Internet Systems Consortium DHCP Client 4.2.2
    Copyright 2004-2011 Internet Systems Consortium.
    All rights reserved.
    For info, please visit …

Listening on LPF/eth0/b8:27:eb:e8:bd:13
Sending on LPF/eth0/b8:27:eb:e8:bd:13
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
Reloading /etc/samba/smb.conf: smbd only.
done.
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.
Waiting for network (1 of 4)…

Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces … (warning).
Reconfiguring network interfaces…Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit …

Listening on LPF/eth0/b8:27:eb:e8:bd:13
Sending on LPF/eth0/b8:27:eb:e8:bd:13
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
Reloading /etc/samba/smb.conf: smbd only.
bound to 192.168.1.201 – renewal in 33106 seconds.
done.
Starting Dropbear SSH server: dropbear.
Starting daemon monitor: monit.
Scanning music-files, please wait…
INFO Starting Mopidy 1.1.2
INFO Loading config from builtin defaults
INFO Loading config from /etc/mopidy/mopidy.conf
INFO Loading config from command line options


My IP address is 192.168.1.201
Connect to me in your browser at … or …