question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mopidy Application Error on Search (Docker instance)

See original GitHub issue

Describe the bug Got 3 red error boxes in bottom-right corner after searching for a song.

(I enabled Test mode and got a Mopidy log traceback in the browser’s console, which is at the bottom of the issue)

To Reproduce Steps to reproduce the behavior:

  1. Pull the docker image
$ docker pull jaedb/iris
  1. Run the container (actually taken the docker run command from here because there is no way to find it in your documentation)
$ docker run -d -p 6600:6600 -p 6680:6680 --user $UID:$GID jaedb/iris mopidy
  1. Go to http://localhost:6680/iris and log in
  2. Go to Search
  3. Type something
  4. Press Enter
  5. See error

Expected behavior I’m expected to get search results, don’t know in which way: it’s the first time I’m trying Iris and I’m already getting errors…

Environment details:

  • OS: Docker instance
docker --version
Docker version 18.09.6-ce, build 481bc77156
  • Browser:
firefox --version
Mozilla Firefox 67.0.4
  • Iris version: 3.35.1 (btw I see “Upgrade available” icon on the right and after clicking on “Upgrade to 3.39.0” i get the following error
Permission denied
Password-less access to /usr/local/lib/python2.7/dist-packages/mopidy_iris/system.sh was refused. Check your /etc/sudoers file.

and I see that the DockerHub Dockerfile is different than the one in that repo: the first ones downloades Mopidy-Iris with pip (which is on pypy at the version 3.39.0) )

Additional context

Mopidy traceback

Traceback (most recent call last):
 File \"/usr/lib/python2.7/dist-packages/mopidy/internal/jsonrpc.py\", line 133, in _handle_single_request
 result = self._unwrap_result(result)
 File \"/usr/lib/python2.7/dist-packages/mopidy/internal/jsonrpc.py\", line 222, in _unwrap_result
 result = result.get()
 File \"/usr/lib/python2.7/dist-packages/pykka/threading.py\", line 52, in get
 compat.reraise(*self._data['exc_info'])
 File \"/usr/lib/python2.7/dist-packages/pykka/compat.py\", line 12, in reraise
 exec('raise tp, value, tb')
 File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 201, in _actor_loop
 response = self._handle_receive(message)
 File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 295, in _handle_receive
 return callee(*message['args'], **message['kwargs'])
 File \"/usr/lib/python2.7/dist-packages/mopidy/core/library.py\", line 348, in search
 result = future.get()
 File \"/usr/lib/python2.7/dist-packages/pykka/threading.py\", line 52, in get
 compat.reraise(*self._data['exc_info'])
 File \"/usr/lib/python2.7/dist-packages/pykka/compat.py\", line 12, in reraise
 exec('raise tp, value, tb')
 File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 201, in _actor_loop
 response = self._handle_receive(message)
 File \"/usr/lib/python2.7/dist-packages/pykka/actor.py\", line 295, in _handle_receive
 return callee(*message['args'], **message['kwargs'])
 File \"/usr/local/lib/python2.7/dist-packages/mopidy_youtube/backend.py\", line 192, in search
 tracks=search_youtube(search_query)
 File \"/usr/local/lib/python2.7/dist-packages/mopidy_youtube/backend.py\", line 102, in search_youtube
 playlist = [item['id']['videoId'] for item in data['items']]
KeyError: u'items'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jaedbcommented, Aug 1, 2019

Thanks for the detailed logs - from those I can tell you the error appears to be with the Mopidy-Youtube extension. This extension no longer works as it used to (see https://github.com/mopidy/mopidy-youtube/issues/92), so I would recommend disabling by editing your config with:

[mopidy-youtube]
enabled = false

Or you can just uncheck it from sources within Iris (Search > Sources).

Regarding upgrades within Iris, this is something that’s a work in progress. The idea is to build the Docker image with sudo access already enabled. Watch this space.

0reactions
jaedbcommented, Nov 4, 2019

Ideally only the bare minimum would be included to get things up and running (also less for me to have to maintain). What is lacking is the documentation on how users can add other backends to their docker setup. This might be a nicer way to include your repo.

PS. Nice work getting YouTube support despite the original extension being well broken 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run mopidy docker - Stack Overflow
But I can't get container to run and in docker-mopidy log there are some permission errors in python: PermissionError: [Errno 13] Permission ...
Read more >
Trouble setting up Mopidy on Raspberry Pi 4 - Q&A
Hello, I am having difficulty trying to set up Mopidy with Snapcast to have synchronous audio in multiple rooms.
Read more >
[Support] knex666 - Mopidy - Page 3 - Docker Containers
In the Unraid setup the description of the field “config“ is misleading, because the path is actually mounted to (container: /etc/mopidy. · The ......
Read more >
wernight/mopidy Dockerfile | Docker Hub
Mopidy (MPD) along with Spotify/Google Music/... extensions. Image. OverviewTags. Dockerfile. FROM debian:buster-slim RUN set -ex \ # Official Mopidy ...
Read more >
Top 5 ini Code Examples - Snyk
http.port + ' (proxy on port 80); MPD port:' + mopidy.mpd.port)); display.init(() => { 'use strict'; display.image(display.presets.splash); }); exec('systemctl ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found