Hello MikeC, nic, Toube & jlynton,
I have just pushed a temporary fix to github for the mount problem. A gitpull will restore the mount situation to as it was in 20180903-4.
This will reintroduce a looping problem if the Network Mount is off-line. This is irritating, but does not actually cause any problems. To solve it you need to remove the mount.
For those who want to modify the code rather than using gitpull, edit the file:
- Code: Select all
/srv/http/app/libs/runeaudio.php
Search for this:
- Code: Select all
function wrk_sourcemount($redis, $action, $id = null)
{
switch ($action) {
case 'mount':
$mp = $redis->hGetAll('mount_'.$id);
// check that the mount server is on-line
$retval = sysCmd('avahi-browse -atrlkp | grep -Ei "smb|cifs|nfs" | grep -i -c "'.$mp['address'].'"');
if ($retval[0] == 0) {
// the mount server is not visible, so don't even try to mount it
$mp['error'] = 'Network Mount off-line';
return 0;
}
unset($retval);
$mpdproc = getMpdDaemonDetalis();
sysCmd("mkdir \"/mnt/MPD/NAS/".$mp['name']."\"");
And comment some of the lines out, like this:
- Code: Select all
// check that the mount server is on-line
// $retval = sysCmd('avahi-browse -atrlkp | grep -Ei "smb|cifs|nfs" | grep -i -c "'.$mp['address'].'"');
// if ($retval[0] == 0) {
// the mount server is not visible, so don't even try to mount it
// $mp['error'] = 'Network Mount off-line';
// return 0;
// }
// unset($retval);
I will need to spend some time on this to fix it properly. I will keep you informed.
janui