• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Jellyfin and Mopidy no Connection

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin and Mopidy no Connection

    Jellyfin and Mopidy no Connection
    mcarlton00
    Offline

    Kodi Addon Maintainer

    Posts: 145
    Threads: 1
    Joined: 2023 Sep
    Reputation: 9
    Country:United States
    #5
    2023-11-20, 03:12 PM
    I use mopidy on my workstation daily.  For example, when I launch it I get a output about what plugins are installed and if any of them encounter an error.  In this you can see that I have a config for 'muse' but it's not installed, and further down you can see that i have JellyfinBackend enabled.

    Code:
    % mopidy
    INFO    2023-11-20 10:02:49,003 [2628357:MainThread] mopidy.__main__
      Starting Mopidy 3.4.1
    INFO    2023-11-20 10:02:49,020 [2628357:MainThread] mopidy.config
      Loading config from builtin defaults
    INFO    2023-11-20 10:02:49,021 [2628357:MainThread] mopidy.config
      Loading config from file:///home/matt/.config/mopidy/mopidy.conf
    INFO    2023-11-20 10:02:49,022 [2628357:MainThread] mopidy.config
      Loading config from command line options
    WARNING  2023-11-20 10:02:49,024 [2628357:MainThread] mopidy.config
      Ignoring config section 'muse' because no matching extension was found
    INFO    2023-11-20 10:02:49,090 [2628357:MainThread] mopidy.__main__
      Enabled extensions: file, stream, mpd, m3u, softwaremixer, jellyfin, http
    INFO    2023-11-20 10:02:49,090 [2628357:MainThread] mopidy.__main__
      Disabled extensions: none
    INFO    2023-11-20 10:02:49,175 [2628357:MainThread] mopidy.commands
      Starting Mopidy mixer: SoftwareMixer
    INFO    2023-11-20 10:02:49,176 [2628357:MainThread] mopidy.commands
      Starting Mopidy audio
    INFO    2023-11-20 10:02:49,176 [2628357:MainThread] mopidy.commands
      Starting Mopidy backends: JellyfinBackend, FileBackend, M3UBackend, StreamBackend
    INFO    2023-11-20 10:02:49,180 [2628357:Audio-2 (_actor_loop)] mopidy.audio.actor
      Audio output set to "autoaudiosink"
    INFO    2023-11-20 10:03:18,096 [2628357:MainThread] mopidy.commands
      Starting Mopidy core
    INFO    2023-11-20 10:03:18,098 [2628357:MainThread] mopidy.commands
      Starting Mopidy frontends: EventMonitorFrontend, HttpFrontend, MpdFrontend
    INFO    2023-11-20 10:03:18,114 [2628357:HttpFrontend-12 (_actor_loop)] mopidy.http.actor
      HTTP server running at [::ffff:127.0.0.1]:6680
    WARNING  2023-11-20 10:03:18,116 [2628357:HttpServer] mopidy.http.handlers
      HTTP Cross-Site Request Forgery protection is disabled
    INFO    2023-11-20 10:03:18,116 [2628357:MainThread] mopidy_mpd.actor
      MPD server running at [::ffff:0.0.0.0]:6600
    INFO    2023-11-20 10:03:18,116 [2628357:MainThread] mopidy.commands
      Starting GLib mainloop
    INFO    2023-11-20 10:03:18,674 [2628357:MpdSession-15 (_actor_loop)] mopidy_mpd.session
      New MPD connection from [::ffff:127.0.0.1]:42078

    It doesn't really output anything more than that on it's own unless there are errors.

    For example, if I purposely input an invalid hostname entry, I get output like this

    Code:
    INFO    2023-11-20 10:06:09,222 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 0 with problem: Expecting value: line 1 column 1 (char 0)
    INFO    2023-11-20 10:06:09,228 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 1 with problem: Expecting value: line 1 column 1 (char 0)
    INFO    2023-11-20 10:06:09,231 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 2 with problem: Expecting value: line 1 column 1 (char 0)
    INFO    2023-11-20 10:06:09,234 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 3 with problem: Expecting value: line 1 column 1 (char 0)
    INFO    2023-11-20 10:06:09,237 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 4 with problem: Expecting value: line 1 column 1 (char 0)
    INFO    2023-11-20 10:06:09,240 [2633026:MainThread] mopidy_jellyfin.http
      Jellyfin connection on try 5 with problem: Expecting value: line 1 column 1 (char 0)
    ERROR    2023-11-20 10:06:09,240 [2633026:MainThread] mopidy.commands
      Got un-handled exception from JellyfinBackend
    Traceback (most recent call last):
      File "/usr/lib/python3.11/site-packages/mopidy/commands.py", line 248, in _actor_error_handling
        yield
      File "/usr/lib/python3.11/site-packages/mopidy/commands.py", line 412, in start_backends
        backend = backend_class.start(
                  ^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/site-packages/pykka/_actor.py", line 86, in start
        obj = cls(*args, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^
      File "/home/matt/.local/lib/python3.11/site-packages/mopidy_jellyfin/backend.py", line 26, in __init__
        self.remote = JellyfinHandler(config)
                      ^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/matt/.local/lib/python3.11/site-packages/mopidy_jellyfin/remote.py", line 75, in __init__
        self._login()
      File "/home/matt/.local/lib/python3.11/site-packages/mopidy_jellyfin/remote.py", line 91, in _login
        auth_details = self.http.post(
                      ^^^^^^^^^^^^^^^
      File "/home/matt/.local/lib/python3.11/site-packages/mopidy_jellyfin/http.py", line 83, in post
        raise Exception('Cant connect to Jellyfin API')
    Exception: Cant connect to Jellyfin API

    As you're running this on a Pi, I suspect you're running it under a systemd service.  In this case, you should be able to check on it with systemctl status mopidy and journalctl -u mopidy

    This is my current config that's been working for the last ~2 years or so.

    Code:
    [jellyfin]
    hostname = https://streaming.nerdyredneck.net
    username = Matt
    password = mysupersecretpassword
    libraries = Music
    album_format = {ProductionYear} - {Name}
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Jellyfin and Mopidy no Connection - by Computerboss - 2023-11-19, 09:29 PM
    RE: Jellyfin and Mopidy no Connection - by TheDreadPirate - 2023-11-19, 10:31 PM
    RE: Jellyfin and Mopidy no Connection - by mcarlton00 - 2023-11-19, 11:42 PM
    RE: Jellyfin and Mopidy no Connection - by Computerboss - 2023-11-20, 02:57 PM
    RE: Jellyfin and Mopidy no Connection - by mcarlton00 - 2023-11-20, 03:12 PM
    RE: Jellyfin and Mopidy no Connection - by Computerboss - 2023-11-20, 10:18 PM
    RE: Jellyfin and Mopidy no Connection - by mcarlton00 - 2023-11-20, 11:13 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode