Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: auto-config WIFI not working
#1
Hello everybody,
somebody is using auto-config via moodecfg.txt ?
I am trying to use it for auto config Wifi connection:
1. writing image file to microSD card
2. in root directory (boot) I am creating moodecfg.txt file
3. Copy & paste the whole section (from "[names]" to "accentcolor=Emerald")
4. changing fields wlanssid and wlanpwd to my wifi name and password
5. insert into Pi and first boot up from card Huh

But it does not work, the following error occurs:
https://ibb.co/StsHZXQ
What am I doing wrong? I tried it at two places, so two different Wifis. Same error on both.

Thank you for your support!
Reply
#2
Examine the contents of the auto config log. It will be in home directory of user pi.

~/autocfg.log
/home/pi/autocfg.log

Example of successful auto config

Code:
pi@rp3:~ $ cat ~/autocfg.log
20191004 092157 autocfg: Auto-configure initiated
20191004 092157 autocfg: Configuration file parsed
20191004 092157 autocfg: - Names
20191004 092158 autocfg: Host name: rp3
20191004 092158 autocfg: Browser title: RP3 Player
20191004 092158 autocfg: Bluetooth: RP3 Bluetooth
20191004 092158 autocfg: Airplay: RP3 Airplay
20191004 092158 autocfg: Spotify: RP3 Spotify
20191004 092158 autocfg: Squeezelite: RP3
20191004 092158 autocfg: UPnP: RP3 UPNP
20191004 092158 autocfg: DLNA: RP3 DLNA
20191004 092158 autocfg: MPD zeroconf: RP3 MPD
20191004 092158 autocfg: - Network (wlan0)
20191004 092158 autocfg: SSID: AirnetN5
20191004 092158 autocfg: Security: wpa
20191004 092158 autocfg: Password: REDACTED
20191004 092158 autocfg: PSK: REDACTED
20191004 092158 autocfg: Country: US
20191004 092158 autocfg: - Network (apd0)
20191004 092159 autocfg: SSID: RP3
20191004 092159 autocfg: Password: moodeaudio
20191004 092159 autocfg: PSK: 19a9c8326b7e0cec74aee63a978fab6fb0505d9233d893cd39d64453b9a494ff
20191004 092159 autocfg: Channel: 6
20191004 092159 autocfg: - Services
20191004 092159 autocfg: Airplay: Off
20191004 092159 autocfg: UPnP: Off
20191004 092159 autocfg: DLNA: Off
20191004 092159 autocfg: - Other
20191004 092159 autocfg: Time zone: America/Detroit
20191004 092159 autocfg: Theme name: Default
20191004 092159 autocfg: Accent color: Alizarin
20191004 092159 autocfg: Configuration file deleted
20191004 092159 autocfg: Auto-configure complete
20191004 092159 autocfg: System rebooted
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Here you go ...

Code:
20191006 115931 autocfg: Auto-configure initiated
20191006 115931 autocfg: Configuration file parsed
20191006 115931 autocfg: - Names
20191006 115931 autocfg: Host name: moode
20191006 115931 autocfg: Browser title: moOde Player
20191006 115931 autocfg: Bluetooth: Moode Bluetooth
20191006 115931 autocfg: Airplay: Moode Airplay
20191006 115931 autocfg: Spotify: Moode Spotify
20191006 115931 autocfg: Squeezelite: Moode
20191006 115931 autocfg: UPnP: Moode UPNP
20191006 115931 autocfg: DLNA: Moode DLNA
20191006 115931 autocfg: MPD zeroconf: Moode MPD
20191006 115931 autocfg: - Network (wlan0)
20191006 115932 autocfg: SSID: zyx
20191006 115932 autocfg: Security: wpa
20191006 115932 autocfg: Password: xyz
20191006 115932 autocfg: PSK:
20191006 115932 autocfg: Country: US
20191006 115932 autocfg: - Network (apd0)
20191006 115932 autocfg: SSID: Moode
20191006 115932 autocfg: Password: moodeaudio
20191006 115932 autocfg: PSK:
20191006 115932 autocfg: Channel: 6
20191006 115932 autocfg: - Services
20191006 115932 autocfg: Airplay: On
20191006 115932 autocfg: UPnP: On
20191006 115932 autocfg: DLNA: On
20191006 115932 autocfg: - Other
20191006 115932 autocfg: Time zone: America/Detroit
20191006 115932 autocfg: Theme name: Default
20191006 115932 autocfg: Accent color: Emerald
20191006 115932 autocfg: Configuration file deleted
20191006 115932 autocfg: Auto-configure complete
20191006 115932 autocfg: System rebooted

Then I plugged in the network cable and WiFi config looks like this
https://ibb.co/thFKQQR
So SSID is set correctly but it does not show a password (please ignore the KeepassXC icon) and especially the country is showing "Afghanistan" and not US.
Reply
#4
Did your log show the same PSK for password = moodeaudio as in the log I posted?

Was there a PSK for your SSID and password?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Oh and moode UI also looks broken: https://ibb.co/Mf5SVQ9

I did copy & paste for the whole log file. I only changed my SSID to zyx and password to xyz
Reply
#6
Very odd that PSK would be blank for SSID = Moode, Password = moodeaudio

You could try from SSH to verify it works. It should be like below.

Code:
pi@rp3:~ $ sudo wpa_passphrase Moode moodeaudio
network={
       ssid="Moode"
       #psk="moodeaudio"
       psk=e517e227afe08fa1303b12e67fd03d0271b47c8f507e10a3dc52c8743b7ea52c
}

It's not obvious to me why auto-config fails to generate the PSK.

To ADD: I should mention that auto-config only works on a fresh, never booted image.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Hello Tim,
sure first boot was done with a fresh image.

Command

Code:
sudo wpa_passphrase Moode moodeaudio

via SSH (by network cable) gives result


Code:
network={
        ssid="Moode"
        #psk="moodeaudio"
        psk=e517e227afe08fa1303b12e67fd03d0271b47c8f507e10a3dc52c8743b7ea52c
}

So the PSK is exactly the same that you pasted.
Reply
#8
Hello Tim, any new findings here? Were you able to reproduce this issue or did you try and it is working for you?
Reply
#9
Not able to repro. All my systems are built using auto-config and no issues.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#10
Can you please send me your moodecfg.txt perhaps I am doing something wrong there. Thanks
Reply


Forum Jump: