Page 1 of 7

[Addon] MPD Upgrade

PostPosted: 26 Oct 2017, 14:24
by rern
[Addon] MPD Upgrade
Tested on RPi3
for RuneAudio 0.3 and 0.4b


Upgrade MPD to latest version (0.21.4 as of 20190104)
    - Play UK BBC 320k radio and other m3u8 feeds (as reported by @ianhaynes)
    - RuneAudio installed customized MPD 0.19, mpd-rune, which cannot be upgraded normally
    - RuneAudio has trouble with system wide upgrade. Do not pacman -Syu
    - Fix issues in normal upgrade:
      - missing libs
      - conflict packages
      - missing packages
Install
from Addons Menu

Warning: Midori, local browser, needs upgrade as well otherwise it will not function anymore.

Re: [Addon] MPD Upgrade

PostPosted: 27 Oct 2017, 08:10
by dror
Thanks!

What's the benefit? except SOX support

Re: [Addon] MPD Upgrade

PostPosted: 27 Oct 2017, 10:40
by ianhaynes
Started Rune up and selected the Add-Ons option in the menu. It told me it was updating and then got a browser error saying it couldn't find add-ons.php (may have been addons.php, I can't remember).

Tried going back to runeaudio.local and all I got was a blank black screen. Pulled the power and restarted but no difference.

This on 0.4b 20170229, which may be the problem.

Ian

PS: I can get into Rune via the terminal. There is no addons.php in srv/http/ ??

Re: [Addon] MPD Upgrade

PostPosted: 27 Oct 2017, 13:21
by rern
Hi Ian,

Sorry for the mess caused by auto updates.
Please try:
Code: Select all
rm /usr/local/bin/uninstall_addo.sh
redis-cli hdel addons addo
# reinstall
wget -qN --show-progress https://github.com/rern/RuneAudio_Addons/raw/master/install.sh; chmod +x install.sh; ./install.sh

Re: [Addon] MPD Upgrade

PostPosted: 27 Oct 2017, 19:03
by ianhaynes
OK thanks, that got me back to a working system. Now, when I try to upgrade MPD I get an error, 'Not enough disc space'.

I have Rune installed on a 16Gb SD card and have expanded the partition via the Add On menu. Debug reports 970Mb total, 216Mb used and 754Mb free, so not sure how that equates with 16Mb.

Ian

Re: [Addon] MPD Upgrade

PostPosted: 27 Oct 2017, 20:40
by R101
dror wrote:Thanks!

What's the benefit? except SOX support


This question is particularly important when an update is not reversible. I haven't applied the Samba upgrade because I do not understand what will change and whether there are any drawbacks.

Would it be possible to put a more noob-friendly description of what an addon does under the "more info" link?

Re: [Addon] MPD Upgrade

PostPosted: 28 Oct 2017, 03:55
by rern
@Ian the brave soul,

In the debug data or SSH command:
Code: Select all
df -H

# output:
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       n.nG  n.nG  n.nG  nn% /
...

The upgrade needs 250MB on /dev/root ... mounted on /

Re: [Addon] MPD Upgrade

PostPosted: 28 Oct 2017, 10:20
by ianhaynes
OK, that's the issue then. I see

df -H
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.0G 1.8G 99M 95% /
devtmpfs 505M 0 505M 0% /dev
tmpfs 509M 0 509M 0% /dev/shm
tmpfs 509M 14M 496M 3% /run
tmpfs 509M 0 509M 0% /sys/fs/cgroup
tmpfs 509M 29k 509M 1% /tmp
logs 5.3M 25k 5.3M 1% /var/log
rune-logs 5.3M 87k 5.2M 2% /var/log/runeaudio
/dev/mmcblk0p1 105M 19M 86M 18% /boot
//192.168.1.187/media/Music 990G 632G 358G 64% /mnt/MPD/NAS/Library


Wondering where the rest of the 16Gb has gone, given I resized the partition. Maybe I did this manually, not via the add-on, and got it wrong.

Thinking I might start again and rebuild the SD card.

Ian

Re: [Addon] MPD Upgrade

PostPosted: 28 Oct 2017, 19:26
by ianhaynes
Having rebuilt an SD card with the 0.4b image I have been able to expand the partition (correctly this time) and install the MPD update.

The major plus of this is that Rune can now play the UK BBC 320k radio and other .m3u8 feeds.

The MPD update took over 30 minutes which was unexpected, so it might be worth having a warning to this effect.

Many thanks Rern for all the work you've done in providing the Add On facility and especially for the MPD update, which solves the long standing issue with Rune, the inability to play the hi-res BBC feeds.

Brilliant!

Ian

Re: [Addon] MPD Upgrade

PostPosted: 28 Oct 2017, 20:07
by R101
The first thing I tried after updating MPD was to see if it played the 320k feeds, and I was disappointed to find that it didn't. I have rebooted and tried it again but it still does not work. The same URLs are working in VLC.

The update did not take very long, although it notified completion and the upgrade icon is now greyed out.

Is there a safe way to run this upgrade again, or something I can check?