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
Hi, everytime I started my freshly installed Box (master, Release 2.8.0) I need to restart the mopidy service to get spotify tracks playing.
I've checked the journalctl -u mopidy and found the following:
Feb 28 20:46:32 phoniebox mopidy[631]: DEBUG [SpotifyBackend-7] mopidy_spotify.web Fetching https://auth.mopidy.com/spotify/token failed: HTTPSConnectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NewConnectionError('<urllib3.connection.HTTPSCectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xf3914e50>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Feb 28 20:46:32 phoniebox mopidy[631]: ERROR [SpotifyBackend-7] mopidy_spotify.web Retrying https://auth.mopidy.com/spotify/token in 0.500 seconds.
Feb 28 20:46:33 phoniebox mopidy[631]: DEBUG [SpotifyBackend-7] mopidy_spotify.web Fetching https://auth.mopidy.com/spotify/token failed: HTTPSConnectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NewConnectionError('<urllib3.connection.HTTPSCectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xf26d9c70>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
Feb 28 20:46:33 phoniebox mopidy[631]: ERROR [SpotifyBackend-7] mopidy_spotify.web Retrying https://auth.mopidy.com/spotify/token in 1.000 seconds.
Feb 28 20:46:34 phoniebox mopidy[631]: DEBUG [SpotifyBackend-7] mopidy_spotify.web Fetching https://auth.mopidy.com/spotify/token failed: HTTPSConnectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NameResolutionError("<urllib3.connection.HTTPSectionPool(host='auth.mopidy.com', port=443): Max retries exceeded with url: /spotify/token (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0xf26d9d60>: Failed to resolve 'auth.mopidy.com' ([Errno -3] Temporary failure in name resolution)"))
Feb 28 20:46:34 phoniebox mopidy[631]: ERROR [SpotifyBackend-7] mopidy_spotify.web Retrying https://auth.mopidy.com/spotify/token in 2.000 seconds.
Feb 28 20:46:34 phoniebox mopidy[631]: ERROR [SpotifyBackend-7] mopidy_spotify.web OAuth token refresh failed: Unknown error.
Feb 28 20:46:34 phoniebox mopidy[631]: ERROR [SpotifyBackend-7] mopidy_spotify.web Failed to load Spotify user profile
I suggest this means there are issues while waiting for the networking and this explains why it does work if I restart the service.
The service config was declared this way (no adjustments from me):
pi@phoniebox:~ $ vim /lib/systemd/system/mopidy.service
[Unit]
Description=Mopidy music server
After=avahi-daemon.service
After=dbus.service
After=network-online.target
Wants=network-online.target
After=nss-lookup.target
After=pulseaudio.service
After=remote-fs.target
After=sound.target
[Service]
User=mopidy
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/cache/mopidy
ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy
ExecStart=/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf
[Install]
WantedBy=multi-user.target
I've noticed that the service should wait for the networking to be declared as online.
I'm not that familiar with systemd services. Can anyone give me a hint where to find the problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everytime I started my freshly installed Box (master, Release 2.8.0) I need to restart the mopidy service to get spotify tracks playing.
I've checked the
journalctl -u mopidy
and found the following:I suggest this means there are issues while waiting for the networking and this explains why it does work if I restart the service.
The service config was declared this way (no adjustments from me):
I've noticed that the service should wait for the networking to be declared as online.
I'm not that familiar with systemd services. Can anyone give me a hint where to find the problem?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions