You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Mopidy-Iris to control Modipy then the Iris scripts to start local scan and restart server fails.
A simple solution is to edit the file /usr/local/lib/python3.9/dist-packages/mopidy_iris/system.sh
The restart lines are these two:
RESTART="$(sudo service mopidy restart)"
echo -e "${RESTART}"
Change it to:
RESTART="$(sudo service mopidy_1 restart)"
echo -e "${RESTART}"
RESTART="$(sudo service mopidy_<n> restart)"
echo -e "${RESTART}"
And the start local scan is this lines: SCAN=$(sudo mopidyctl local scan)
Change that to these:
SCAN=$(sudo mopidyctl_1 local scan)
SCAN=$(sudo mopidyctl_2 local scan)
Without this the start local scan will run on the original mopidy folders and not the extra instances and the restart will start the local mopidy and keep the extra instances running without a restart.
The downside to this quick fix is that there is no specific instance control.
A click on the restart button will restart all the instances and a click on the start local scan button will scan the media folder once for each instance. Especially the local scan might take some time with large media libraries and/or many instances.
The text was updated successfully, but these errors were encountered:
@WallyDW Thanks for letting me know - since implementing this setup script I never noticed this as I don't often actually utilise the extra instances at the same time. I think in the past this has happened but I didn't notice what was going on.
When using Mopidy-Iris to control Modipy then the Iris scripts to start local scan and restart server fails.
A simple solution is to edit the file /usr/local/lib/python3.9/dist-packages/mopidy_iris/system.sh
The restart lines are these two:
Change it to:
And the start local scan is this lines:
SCAN=$(sudo mopidyctl local scan)
Change that to these:
Without this the start local scan will run on the original mopidy folders and not the extra instances and the restart will start the local mopidy and keep the extra instances running without a restart.
The downside to this quick fix is that there is no specific instance control.
A click on the restart button will restart all the instances and a click on the start local scan button will scan the media folder once for each instance. Especially the local scan might take some time with large media libraries and/or many instances.
The text was updated successfully, but these errors were encountered: