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

mopidy as service comes up in wrong state #1995

Closed
mgrouch opened this issue Jul 23, 2021 · 4 comments
Closed

mopidy as service comes up in wrong state #1995

mgrouch opened this issue Jul 23, 2021 · 4 comments

Comments

@mgrouch
Copy link

mgrouch commented Jul 23, 2021

mopidy as service spawns too soon
if it can't access youtube or spotify at startup it can't play from them even later
(until restart)

I had to workaround mopidy.service like this:

ExecStart=sh -c 'c=0; r=1; while [ $c -lt 20 -a $r -ne 0 ] ; do ping -c 1 -n -w 1 spotify.com; r=$?; c=expr $c + 1; sleep 5; done; /usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf'

@djmattyg007
Copy link
Contributor

Could you please run the following command, and paste the output?

systemctl cat mopidy.service

@kingosticks
Copy link
Member

Please stop ignoring the issue template.

Configure your system to wait for the network before continuing to boot services that require a working network.

@mgrouch
Copy link
Author

mgrouch commented Oct 14, 2021

there might be no network when system comes up in my use case.
(on a boat). but when network becomes available I should be
able to use mopidy to play from on-line sources too.

@kingosticks
Copy link
Member

This problem was addressed on the forum recently. I don't think an issue here is required but please re-open if you think we should (and can) do something in Mopidy for this. Perhaps we have a hole in our documentation over this.

@kingosticks kingosticks closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants