[Addon] MPD Upgrade

Raspberry Pi related support

Re: [Addon] MPD Upgrade

Postby rern » 04 Nov 2017, 12:18

R101 wrote:Is it not possible to remove the indicator which shows the upgrade has been done, or are you saying that the upgrade script can only be run once?


Addons Menu displays greyed out/disabled buttons when each addon has a version number stored in its database. You can force enable by redis-cli del addons mpdu. But the upgrade will detect MPD other than 0.19 as an upgraded one. You have to bypass the detection by remove line #7 - #11 from the install.sh before running it. So you can't do it with Addons Menu.

Do it with SSH terminal:
Code: Select all
# delete from database
redis-cli del addons mpdu

# download install script
wget https://github.com/rern/RuneAudio/raw/master/mpd/install.sh

# make executable
chmod +x install.sh

# remove mpd detection
sed -i '7, 11 d' install.sh

# upgrade
./install.sh
Raspberry Pi 3 > SMSL M8 DAC
GitHub
rern
 
Posts: 247
Joined: 14 Jul 2016, 08:15

Re: [Addon] MPD Upgrade

Postby R101 » 04 Nov 2017, 16:24

Thanks rern. Following your step-by-step instructions seems to have fixed it. I can now play BBC 320k streams and I really appreciate your work on this.

The only problem I had was that subsequently accessing the Addons menu wiped out the browser interface, but reinstalling Addons got it back.
(Pi 3, Ver. 0.4b build 20170229, JLS I2S over USB)
R101
 
Posts: 138
Joined: 29 Apr 2016, 16:16

Re: [Addon] MPD Upgrade

Postby rern » 05 Nov 2017, 14:44

R101 wrote:The only problem I had was that subsequently accessing the Addons menu wiped out the browser interface, but reinstalling Addons got it back.

It could be a disk space problem. Blank black browser means:
- /srv/http/app/templates/header.php has a line:
Code: Select all
<link rel="stylesheet" href="<?=$this->asset('/css/addonsinfo.css')?>">

- /srv/http/app/templates/footer.php has lines:
Code: Select all
<script src="<?=$this->asset('/js/vendor/hammer.min.js')?>"></script>
<script src="<?=$this->asset('/js/addonsinfo.js')?>"></script>
<script src="<?=$this->asset('/js/addonsmenu.js')?>"></script>

- But the files were missing because the disk was full.
- Delete these lines will get the normal interface back.

if it's the case, make some free space then reinstall.
Raspberry Pi 3 > SMSL M8 DAC
GitHub
rern
 
Posts: 247
Joined: 14 Jul 2016, 08:15

Re: [Addon] MPD Upgrade

Postby R101 » 05 Nov 2017, 17:04

rern,

Those lines are there, but everything seems to be working normally. The SD card is 8GB, already expanded to its maximum.
(Pi 3, Ver. 0.4b build 20170229, JLS I2S over USB)
R101
 
Posts: 138
Joined: 29 Apr 2016, 16:16

Re: [Addon] MPD Upgrade

Postby Kermit » 19 Nov 2017, 13:03

Nach dem MPD Upgrade ist mein TFT Monitor jetzt schwarz. Nur das Bootlogo wird angezeigt. Wie kann ich das beheben??
Steuerung per Weboderfläche am Laptop funktioniert problemlos!

Danke für Tips!
Kermit
 
Posts: 12
Joined: 05 Jun 2017, 11:40

Re: [Addon] MPD Upgrade

Postby hondagx35 » 19 Nov 2017, 16:24

Hi Kermit,

you have to check the journal for errors to see what the reason is.
Please also check the debug info.

Du musst im Journal oder in den Debug Informationen nach dem Fehler suchen.

Code: Select all
journalctl

On the console.

Frank
User avatar
hondagx35
 
Posts: 2981
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: [Addon] MPD Upgrade

Postby Kermit » 21 Nov 2017, 16:05

hondagx35 wrote:Hi Kermit,

you have to check the journal for errors to see what the reason is.
Please also check the debug info.

Du musst im Journal oder in den Debug Informationen nach dem Fehler suchen.

Code: Select all
journalctl

On the console.

Frank


Folgenden Fehler habe ich gefunden:

Nov 21 15:57:19 runeaudio kernel: rpi-backlight rpi_backlight: Backlight change failed

root@runeaudio(rw):/etc# systemctl status rc-local.service
● rc-local.service - /etc/rc.local
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Kermit
 
Posts: 12
Joined: 05 Jun 2017, 11:40

MPD not starting after reboot

Postby Komoush » 10 Dec 2017, 13:48

Hello,

I've upgraded to the latest release (from addons menu) and now the MPD process does not start after reboot. I need to start it manually from the CLI.

Can you tell me where should I search for the startup script?

Thanks

Tom
Komoush
 
Posts: 6
Joined: 22 Nov 2017, 11:55

Re: [Addon] MPD Upgrade

Postby EZJstef » 10 Dec 2017, 18:45

i just upgrade MPD, all working fine, but i have just one problem in on the touchscreen, it's starting correct during the "power on" until the loading screen picture, but when runeaudio is strating running , the 7" began totaly black screen ....... i can work it 100%, from computer, tablett, smartphone .....but impossible from 7" the only problem i have find until now
something more to do????
i am not a code expert, but i get some error on the journalctl ....... now i am looking for some info about errors ........seems not all for the touch screen's problem
in advance tnx for openning my eyes !! sorry for long copy message

results of mpd -V >>>
Code: Select all
Music Player Daemon 0.20.12

result of>>>[code]root@runeaudio:~ # journalctl
Feb 22 15:40:16 runeaudio kernel: snd-hifiberry-dac soc:sound: ASoC: CPU DAI (null) not registered
Feb 22 15:40:16 runeaudio kernel: snd-hifiberry-dac soc:sound: snd_soc_register_card() failed: -517
Feb 22 15:40:16 runeaudio kernel: snd-hifiberry-dac soc:sound: pcm5102a-hifi <-> 3f203000.i2s mapping ok
Feb 22 15:40:17 runeaudio systemd[1]: Found device SMSC9512/9514 Fast Ethernet Adapter.
Feb 22 15:40:17 runeaudio systemd[1]: Started Load/Save Screen Backlight Brightness of backlight:rpi_backlight.
Feb 22 15:40:17 runeaudio systemd[1]: Found device /dev/mmcblk0p1.
Feb 22 15:40:17 runeaudio systemd[1]: boot.mount: Directory /boot to mount over is not empty, mounting anyway.
Feb 22 15:40:17 runeaudio systemd[1]: Mounting /boot...
Feb 22 15:40:17 runeaudio kernel: usbcore: registered new interface driver brcmfmac
Feb 22 15:40:17 runeaudio kernel: random: nonblocking pool is initialized
Feb 22 15:40:17 runeaudio kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2412 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2417 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2422 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2427 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2432 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2437 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2442 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2447 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2452 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2457 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2462 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2467 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2472 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2402000 KHz - 2482000 KHz @ 40000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Updating information on frequency 2484 MHz with regulatory rule:
Feb 22 15:40:17 runeaudio kernel: cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (600 mBi, 2000 mBm)
Feb 22 15:40:17 runeaudio kernel: cfg80211: Ignoring regulatory request set by core since the driver uses its own custom regulatory domain
Feb 22 15:40:17 runeaudio kernel: brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
Feb 22 15:40:17 runeaudio kernel: cfg80211: Ignoring regulatory request set by core since the driver uses its own custom regulatory domain
Feb 22 15:40:17 runeaudio kernel: brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
Feb 22 15:40:17 runeaudio kernel: cfg80211: World regulatory domain updated:
Feb 22 15:40:17 runeaudio kernel: cfg80211:  DFS Master region: unset
Feb 22 15:40:19 runeaudio systemd-udevd[250]: Process '/var/www/command/refresh_ao' failed with exit code 255.
Feb 22 15:40:19 runeaudio systemd-udevd[239]: Process '/var/www/command/refresh_ao' failed with exit code 255.
Feb 22 15:40:19 runeaudio ifplugd[305]: Using interface eth0/B8:27:EB:2B:76:90 with driver <smsc95xx> (version: 22-Aug-2005)
Feb 22 15:40:19 runeaudio ifplugd[305]: Using detection mode: SIOCETHTOOL
Feb 22 15:40:19 runeaudio ifplugd[305]: Initialization complete, link beat not detected.
Feb 22 15:40:19 runeaudio kernel: smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Feb 22 15:40:19 runeaudio sh[306]: /var/www/command/mpd-watchdog: starting...
Feb 22 15:40:19 runeaudio systemd[1]: Reached target Sound Card.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Successfully dropped root privileges.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: avahi-daemon 0.6.32 starting up.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Feb 22 15:40:19 runeaudio systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Successfully called chroot().
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Successfully dropped remaining capabilities.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Loading service file /services/runeaudio.service.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Network interface enumeration completed.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Server startup complete. Host name is runeaudio.local. Local service cookie is 1645457898.
Feb 22 15:40:19 runeaudio avahi-daemon[309]: Service "RuneAudio [runeaudio] [b8:27:eb:2b:76:90]" (/services/runeaudio.service) successfully established.
Feb 22 15:40:19 runeaudio systemd[1]: Started Save/Restore Sound Card State.
Feb 22 15:40:19 runeaudio systemd-udevd[245]: Process '/var/www/command/ui_notify.php 'Usb Storage' connected simplemessage' failed with exit code 255.
Feb 22 15:40:20 runeaudio kernel: brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
Feb 22 15:40:20 runeaudio kernel: brcmfmac: brcmf_add_if: ignore IF event
Feb 22 15:40:20 runeaudio kernel: brcmfmac: power management disabled
Feb 22 15:40:20 runeaudio kernel: brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
Feb 22 15:40:20 runeaudio kernel: brcmfmac: brcmf_add_if: ignore IF event
Feb 22 15:40:20 runeaudio netctl-auto[302]: Could not read interface p2p-dev-wlan0 flags: No such device
Feb 22 15:40:20 runeaudio systemd[1]: Started Automatic wireless network connection using netctl profiles.
Feb 22 15:40:20 runeaudio wpa_actiond[344]: Starting wpa_actiond session for interface 'wlan0'
Feb 22 15:40:20 runeaudio systemd[1]: Reached target Network.
Feb 22 15:40:20 runeaudio systemd[1]: Starting Network Time Service...
Feb 22 15:40:20 runeaudio systemd[1]: Started OpenSSH Daemon.
Feb 22 15:40:20 runeaudio systemd[1]: Starting Advanced key-value store...
Feb 22 15:40:20 runeaudio systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 22 15:40:20 runeaudio systemd[1]: Started RuneAudio Playback Worker.
Feb 22 15:40:20 runeaudio systemd[1]: Starting The PHP FastCGI Process Manager...
Feb 22 15:40:20 runeaudio systemd[1]: Started Advanced key-value store.
Feb 22 15:40:20 runeaudio ntpd[345]: ntpd 4.2.8p9@1.3265-o Sat Jan 14 21:31:12 UTC 2017 (1): Starting
Feb 22 15:40:20 runeaudio ntpd[345]: Command line: /usr/bin/ntpd -g -u ntp:ntp
Feb 22 15:40:20 runeaudio systemd[1]: Started Network Time Service.
Feb 22 15:40:20 runeaudio systemd-udevd[245]: Process '/var/www/command/refresh_ao' failed with exit code 255.
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /srv/http/app/libs/runeaudio.php:1
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: Stack trace:
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: #0 /srv/http/app/libs/runeaudio.php(1259): Redis->get('debug')
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: #1 /srv/http/app/libs/runeaudio.php(789): runelog('sysCmd($str)', 'echo "---------...')
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: #2 /srv/http/command/rune_PL_wrk(42): sysCmd('echo "---------...')
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]: #3 {main}
Feb 22 15:40:20 runeaudio rune_PL_wrk[352]:   thrown in /srv/http/app/libs/runeaudio.php on line 1259
Feb 22 15:40:20 runeaudio systemd[1]: rune_PL_wrk.service: Main process exited, code=exited, status=255/n/a
Feb 22 15:40:20 runeaudio systemd[1]: rune_PL_wrk.service: Unit entered failed state.
Feb 22 15:40:20 runeaudio systemd[1]: rune_PL_wrk.service: Failed with result 'exit-code'.
Feb 22 15:40:36 runeaudio sudo[676]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/xinit
Feb 22 15:40:36 runeaudio sudo[676]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 22 15:40:36 runeaudio devmon[619]: device: [/dev/sda1]
Feb 22 15:40:36 runeaudio devmon[619]:     systeminternal: [0]
Feb 22 15:40:36 runeaudio devmon[619]:     usage:          [filesystem]
Feb 22 15:40:36 runeaudio devmon[619]:     type:           [vfat]
Feb 22 15:40:36 runeaudio devmon[619]:     label:          [ROMANO]
Feb 22 15:40:36 runeaudio devmon[619]:     ismounted:      [0]
Feb 22 15:40:36 runeaudio devmon[619]:     nopolicy:       [0]
Feb 22 15:40:36 runeaudio devmon[619]:     hasmedia:       [1]
Feb 22 15:40:36 runeaudio devmon[619]:     opticaldisc:    []
Feb 22 15:40:36 runeaudio devmon[619]:     numaudiotracks: []
Feb 22 15:40:36 runeaudio devmon[619]:     blank:          []
Feb 22 15:40:36 runeaudio devmon[619]:     media:          []
Feb 22 15:40:36 runeaudio devmon[619]:     partition:      [1]
Feb 22 15:40:36 runeaudio devmon[619]: devmon: /usr/sbin/udevil --mount /dev/sda1 --mount-options "noexec,nosuid,nodev,noatime"    # (ROMANO)
Feb 22 15:40:36 runeaudio kernel: FAT-fs (sda1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Feb 22 15:40:36 runeaudio kernel: FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Feb 22 15:40:38 runeaudio devmon[619]: Warning: Missing argument 2 for ui_libraryHome(), called in /srv/http/command/usbmount on line 66 and defined in /srv/http/app/li
Feb 22 15:40:38 runeaudio devmon[619]: Notice: Undefined index: enable in /srv/http/app/libs/runeaudio.php on line 3474
Feb 22 15:40:38 runeaudio devmon[619]: Notice: Trying to get property of non-object in /srv/http/app/libs/runeaudio.php on line 3318
Feb 22 15:40:38 runeaudio devmon[619]: Notice: Undefined variable: clientUUID in /srv/http/app/libs/runeaudio.php on line 3318
Feb 22 15:40:38 runeaudio devmon[619]: Mounted /dev/sda1 at /mnt/MPD/USB/ROMANO
Feb 22 15:40:39 runeaudio systemd[1]: Reloading.
Feb 22 15:40:40 runeaudio systemd[1]: Reloading.
Feb 22 15:40:41 runeaudio systemd[1]: Stopping Automatic wireless network connection using netctl profiles...
Feb 22 15:40:41 runeaudio netctl-auto[952]: /usr/bin/netctl-auto: line 222: kill: (344) - No such process
Feb 22 15:40:42 runeaudio sudo[676]: pam_unix(sudo:session): session closed for user root
Feb 22 15:40:43 runeaudio systemd[1]: Stopped Automatic wireless network connection using netctl profiles.
Feb 22 15:40:44 runeaudio systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Feb 22 15:40:44 runeaudio hostapd[985]: Configuration file: /etc/hostapd/hostapd.conf
Feb 22 15:40:44 runeaudio hostapd[985]: Failed to create interface mon.wlan0: -95 (Operation not supported)
Feb 22 15:40:44 runeaudio hostapd[985]: wlan0: Could not connect to kernel driver
Feb 22 15:40:44 runeaudio hostapd[985]: Using interface wlan0 with hwaddr b8:27:eb:7e:23:c5 and ssid "RuneAudioAP"
Feb 22 15:40:44 runeaudio systemd[1]: Starting A lightweight DHCP and caching DNS server...
Feb 22 15:40:44 runeaudio hostapd[985]: random: Only 15/20 bytes of strong random data available from /dev/random
Feb 22 15:40:44 runeaudio hostapd[985]: random: Not enough entropy pool available for secure operations
Feb 22 15:40:44 runeaudio hostapd[985]: WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
Feb 22 15:40:44 runeaudio dnsmasq[989]: dnsmasq: syntax check OK.
Feb 22 15:40:44 runeaudio kernel: brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
Feb 22 15:40:44 runeaudio kernel: brcmfmac: brcmf_add_if: ignore IF event

EZJstef
 
Posts: 10
Joined: 03 Dec 2017, 18:47

Re: MPD not starting after reboot

Postby rern » 12 Dec 2017, 09:31

Komoush wrote:I've upgraded to the latest release (from addons menu) and now the MPD process does not start after reboot. I need to start it manually from the CLI.

Can you tell me where should I search for the startup script?

Try:
Code: Select all
systemctl enable mpd
Raspberry Pi 3 > SMSL M8 DAC
GitHub
rern
 
Posts: 247
Joined: 14 Jul 2016, 08:15

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest