Thank you for your donation!


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


Solved: WebUI hangs on Last.fm credentials
#1
Hi all

As of version 6 of moOde, last.fm integration in the software appears to be broken on my setup. When I try to save my last.fm login info from the Audio settings pane, the page hangs. A forced refresh will bump me back to the playback panel with a notification that the audioscrobbler settings have been updated. After triggering this bug, my moOde install can no longer load any settings windows until I reboot. When I run moodeutl -l  no error is reported.

Interestingly, mpdasrc in /usr/local/etc/ does not get populated with the credentials entered. Manually entering them restores the integration and my tracks are scrobbling fine. 

I run Safari 12 on a 2010 MacBook Pro, but can reproduce with Firefox 68 on the same computer, as well as with Safari on my iPad. For further diagnostics, in the code box is the system info readout from the settings pane.


Code:
 S Y S T E M    P A R A M E T E R S  

    moOde release        = 6.1.0 2019-08-18
    Raspbian OS        = 10.0
    Linux kernel        = 4.19.66-v7+
    Pi model        = Pi-3B+ 1GB v1.3
    System uptime        = up 8 minutes
    Timezone        = Europe/Paris
    Current time        = 2019-08-24 22:59:16

    Host name        = Speakers
    Ethernet address    = unassigned
    Ethernet MAC        = b8:27:eb:50:63:16
    WLAN address        = 192.168.1.8
    WLAN MAC        = b8:27:eb:05:36:43
    WLAN country        = FR

    SoC identifier        = bcm2837
    Core count        = 4
    Architecture        = armv7l
    Kernel timer freq    = 100 Hz
    SDCard freq        = 25 MHz
    USB boot        = enabled
    Warranty        = OK

    Root size        = 3.4G
    Root used        = 79%
    Root available        = 684M
    Root expand        = expanded
    Memory free        = 493 MB
    Memory used        = 129 MB
    SoC temperature        = 70.9°C

    CPU governor        = ondemand
    Onboard WiFi        = On
    Onboard BT        = Off
    HDMI output        = Off
    Eth addr wait        = Off
    Max USB current        = Off
    USB (UAC2) fix        = Off
    Pi-3B+ eth fix        = Off
    SSH term server        = Off

    PHP-FPM version        = 7.3.4
    NGINX version        = 1.14.2
    SQLite3 version        = 3.27.2
    Hostapd version        = 2.8-devel
    WiringPi version    = 2.50

      A U D I O    P A R A M E T E R S  

    Audio device        = Audiophonics ES9028/9038 DAC
    Interface        = I2S
    Hardware volume        = Controller detected
    Mixer name        = Digital
    Audio source        = Local
    Output device        = Local
    Resume MPD        = No
    Volume knob        = 100
    Volume mute        = Unmuted
    Saved MPD vol        = 0
    Preamp volume        = 0
    ALSA version        = 1.1.8-1+rpt1
    SoX version        = 0.1.2-3

    Bluetooth controller    = Off
    Pairing agent        = Off
    Airplay receiver    = On
    Spotify receiver    = On
    Squeezelite        = Off
    UPnP client        = Off
    DLNA server        = Off
    GPIO button handler    = Off
    UPnP browser        = Off

    Auto-shuffle        = Off
    Autoplay        = Off
    Rotary encoder        = Off
    Encoder params        = 100 2 3 4 5
    Polarity inversion    = Off
    Crossfeed        = Off
    Crossfade        = Off
    Parametric EQ        = Off
    Graphic EQ        = Off
    MPD httpd        = Off

      A P P E A R A N C E   S E T T I N G S  

    Theme            = Whiteshade
    Accent color        = Alizarin
    Alpha blend        = 0.65
    Adaptive background    = No
    Background image    = No
    Cover backdrop        = Yes
    Cover blur        = 15px
    Cover scale        = 1.25
    CoverView auto-display    = Never
    CoverView style        = Theme
    Auto-shuffle filter    = None
    Extra metadata        = Yes
    Playback history    = Yes

      L I B R A R Y   S E T T I N G S  

    Instant play action    = Add/Play
    Ignore articles        = a,an,the
    UTF8 character filter    = No
    Hi-res thumbs        = 200px
    Cover search pri    = Cover image file
    Pixel ratio        = 1
    Artist sort tag        = ArtistSort
    Album sort tag        = AlbumSort

      M P D    S E T T I N G S  

    Version            = 0.21.13
    Volume control        = hardware
    ALSA device        = hw:0
    SoX resampling        = disabled
    SoX quality        = very high
    SoX multithreading    = off
    DSD over PCM (DoP)    = no
    Replaygain        = off
    Replaygain preamp    = 0
    Volume normalization    = No
    Audio buffer (kb)    = 4096
    Output buffer size (kb)    = 131072

      B L U E T O O T H    S E T T I N G S  

    Bluetooth ver        = 5.50
    Bluealsa ver        = 1.3.1
    Speaker sharing        = No
    Resume MPD        = No
    PCM buffer time        = 500000 (microseconds)

      A I R P L A Y    S E T T I N G S  

    Version            = 3.3.2
    Friendly name        = Speakers
    ALSA device        = hw:0
    Interpolation        = soxr
    Output bit depth    = S16
    Output sample rate    = 44100
    Session interruption    = no
    Session timeout (ms)    = 120
    Audio buffer (secs)    = 0.0
    Resume MPD        = No

      S P O T I F Y    S E T T I N G S  

    Friendly name        = Speakers
    ALSA device        = plughw:0
    Bit rate        = 320
    Initial volume        = 100
    Volume curve        = Logarithmic
    Volume normalization    = No
    Normalization pregain    = 0
    Resume MPD        = No

      S Q U E E Z E L I T E    S E T T I N G S  

    Version            = 1.8.7-1052 "DSD/SRC enabled"
    Friendly name        = Moode
    ALSA device        = hw:0
    ALSA params        = 80:4::1
    Output buffers        = 40000:100000
    Task priority        = 45
    Codec list        = flac,pcm,mp3,ogg,aac,alac,dsd
    Other options        = -W -D 500 -R E -S /var/loca
    Resume MPD        = No

      M O O D E    S T A R T U P    L O G  

   20190824 225058 worker: - Start
   20190824 225058 worker: Successfully daemonized
   20190824 225058 worker: Integrity check (warning: rc.local)
   20190824 225058 worker: Integrity check (passed with warnings)
   20190824 225058 worker: Session loaded
   20190824 225058 worker: Debug logging (off)
   20190824 225059 worker: ALSA volume set to (0%)
   20190824 225059 worker: - Platform
   20190824 225103 worker: Rel  (Moode 6.1.0 2019-08-18)
   20190824 225103 worker: Rasp (10.0)
   20190824 225103 worker: Kern (4.19.66-v7+)
   20190824 225103 worker: MPD  (0.21.13)
   20190824 225103 worker: Host (Speakers)
   20190824 225103 worker: Hdwr (Pi-3B+ 1GB v1.3)
   20190824 225103 worker: Arch (armv7l)
   20190824 225103 worker: Gov  (ondemand)
   20190824 225103 worker: USB boot enabled
   20190824 225103 worker: File system not expanded yet
   20190824 225103 worker: HDMI port off
   20190824 225104 worker: File check (OK)
   20190824 225104 worker: - Network
   20190824 225104 worker: eth0 exists
   20190824 225104 worker: eth0 address not assigned
   20190824 225104 worker: wlan0 exists
   20190824 225104 worker: wifi country (FR)
   20190824 225104 worker: wlan0 trying SSID (Judys-Wifi-5GHz)
   20190824 225104 worker: wlan0 (192.168.1.8)
   20190824 225104 worker: - Audio
   20190824 225104 worker: ALSA outputs unmuted
   20190824 225104 worker: ALSA card number (0)
   20190824 225104 worker: Audio output (I2S audio device)
   20190824 225104 worker: Audio device (Audiophonics ES9028/9038 DAC)
   20190824 225104 worker: ALSA mixer name (Digital)
   20190824 225104 worker: MPD volume control (hardware)
   20190824 225104 worker: Hdwr volume controller exists
   20190824 225104 worker: - Services
   20190824 225104 worker: Reset renderer active state
   20190824 225105 worker: MPD conf updated
   20190824 225105 worker: MPD started
   20190824 225106 worker: MPD accepting connections
   20190824 225106 worker: Configure MPD outputs
   20190824 225107 worker: MPD output 1 ALSA default (on)
   20190824 225107 worker: MPD output 2 ALSA crossfeed (off)
   20190824 225107 worker: MPD output 3 ALSA parametric eq (off)
   20190824 225107 worker: MPD output 4 ALSA graphic eq (off)
   20190824 225107 worker: MPD output 5 ALSA polarity inversion (off)
   20190824 225107 worker: MPD output 6 ALSA bluetooth (off)
   20190824 225107 worker: MPD output 7 HTTP stream (off)
   20190824 225107 worker: MPD crossfade (off)
   20190824 225107 worker: Audio source (Local)
   20190824 225107 worker: Output device (Local)
   20190824 225107 worker: Airplay receiver started
   20190824 225107 worker: Spotify receiver started
   20190824 225107 worker: Audio scrobbler started
   20190824 225107 worker: - Music sources
   20190824 225107 worker: USB source (SSHD)
   20190824 225107 worker: NAS and UPnP sources (none configured)
   20190824 225107 worker: - Miscellaneous
   20190824 225107 worker: Saved MPD vol level (0)
   20190824 225107 worker: Preamp volume level (0)
   20190824 225107 worker: MPD volume level (100) restored
   20190824 225107 worker: ALSA volume level (100%)
   20190824 225107 worker: Auto-play (Off)
   20190824 225107 worker: Maintenance interval (6 hrs)
   20190824 225107 worker: Screen saver activation (Never)
   20190824 225107 worker: Session permissions (OK)
   20190824 225107 worker: Watchdog started
   20190824 225107 worker: Ready
Reply
#2
Hi,

I can repro :-)

The fix is simple. If you know some Linux ssh and nano I'll post instructions, otherwise it will be included in upcoming moOde 6.2.0 update.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Hi Tim

Happy to run some commands.
Reply
#4
Run the following one liner than reboot.

Code:
sudo sed -i "/cfgAudioScrobbler/c\function cfgAudioScrobbler() {" /var/www/inc/playerlib.php

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Fixed. Ta!
Reply


Forum Jump: