Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mopid-Iris #6

Open
WallyDW opened this issue May 11, 2022 · 1 comment
Open

Mopid-Iris #6

WallyDW opened this issue May 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@WallyDW
Copy link

WallyDW commented May 11, 2022

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.

@ESteanes
Copy link
Owner

@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.

@ESteanes ESteanes self-assigned this May 31, 2022
@ESteanes ESteanes added the bug Something isn't working label Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants