• 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 Networking & Access SOLVED: Native https access

     
    • 0 Vote(s) - 0 Average

    SOLVED: Native https access

    https port 8920 is not running
    ro55mo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #1
    2024-02-04, 12:52 AM (This post was last modified: 2024-02-04, 12:59 AM by ro55mo. Edited 1 time in total.)
    Hi

    I have just installed Jellyfin on a headless virtual Debian 12 server using the official repo.

    Version: 10.8.13

    https://jellyfin.org/docs/general/instal...-automatic

    I have attempted to figure basic https functionality following the official instructions

    https://jellyfin.org/docs/general/networ...ertificate

    The path in the second command had to be amended as it points to a non existent location.

    After the pfx has been created and the system has been configured to use it in the admin web GUI I received no errors but the https page on port 8920 is inaccessible.

       

       

       

       

    It seems the https service is not being enabled?

    Code:
    sudo ss -tup
    Netid    State    Recv-Q    Send-Q                Local Address:Port                    Peer Address:Port      Process                                                 
    tcp      ESTAB    0          0                      192.168.0.11:22                    192.168.0.25:51002      users:(("sshd",pid=776,fd=4),("sshd",pid=767,fd=4))   
    tcp      ESTAB    0          0                      192.168.0.11:685                  192.168.0.10:nfs                                                               
    tcp      ESTAB    0          0                      192.168.0.11:22                    192.168.0.25:45080      users:(("sshd",pid=763,fd=4),("sshd",pid=740,fd=4))   
    tcp      ESTAB    0          0              [::ffff:192.168.0.11]:8096            [::ffff:192.168.0.25]:49422      users:(("jellyfin",pid=419,fd=337))   


    Code:
    sudo ss -tup
    Netid      State      Recv-Q      Send-Q            Local Address:Port              Peer Address:Port        Process                                                   
    tcp        ESTAB      0            0                  192.168.0.11:8096              192.168.0.25:43270        users:(("jellyfin",pid=414,fd=318))                     
    tcp        ESTAB      0            0                  192.168.0.11:8096              192.168.0.25:43302        users:(("jellyfin",pid=414,fd=333))                     
    tcp        ESTAB      0            0                  192.168.0.11:8096              192.168.0.25:43278        users:(("jellyfin",pid=414,fd=329))                     
    tcp        ESTAB      0            0                  192.168.0.11:931                192.168.0.10:nfs                                                                   
    tcp        ESTAB      0            0                  192.168.0.11:22                  192.168.0.25:53914        users:(("sshd",pid=836,fd=4),("sshd",pid=830,fd=4))     
    tcp        ESTAB      0            0                  192.168.0.11:8096              192.168.0.25:53550        users:(("jellyfin",pid=414,fd=338))                     
    tcp        ESTAB      0            0                  192.168.0.11:8096              192.168.0.25:43288        users:(("jellyfin",pid=414,fd=332))                     
    tcp        ESTAB      0            0                  192.168.0.11:22                  192.168.0.25:38216        users:(("sshd",pid=785,fd=4),("sshd",pid=762,fd=4))

    Toggling IPv6 on or off makes no difference. If I attempt to restart the server from the web GUI it hangs and does not restart. See attached debug log. I am then forced to reboot the entire VM from the terminal.

    I would expect to see a service running on 8920 in the output above.


    .zip   jellyfin20240204.log.zip (Size: 12.5 KB / Downloads: 59)

    I am using Firefox 122 to connect. Playback over http on 8096 appears to be working fine. My media library was scanned without issue.

    Am I doing something wrong? I have very much tried to RTFM in this case.

    First post. Please be gentle.

    Thanks in advance.
    Go to solution
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2024-02-04, 02:20 AM
    pretty sure you won't have to look much further than this "Error loading cert from "/home/app02-user/jellyfin.pfx""

    is app02-user owned by the user jellyfin run as?
    if no, you should put the file somewhere jellyfin owns

    does jellyfin have permissions to the file itself?
    if not, you need to chown it
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-02-04, 02:33 AM
    Not just the file itself, but the folder. And you shouldn't be giving other users permissions to your home directory. Definitely just move it outside of your home.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    ro55mo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #4
    2024-02-04, 08:48 AM (This post was last modified: 2024-02-04, 08:49 AM by ro55mo. Edited 1 time in total.)
    Thank you for your responses.

    It was late for me last night and I could have looked at the log more thoroughly.

    I moved the pfx into /etc/jellyfin and set ownership and permissions, then modified the path in the web GUI and saved.

    Code:
    /etc/jellyfin# ls -l
    total 44
    drwxr-xr-x 4 jellyfin jellyfin 4096 Feb  3 21:36 dlna
    -rw-r--r-- 1 jellyfin jellyfin 2057 Feb  4 08:33 encoding.xml
    -rw------- 1 jellyfin jellyfin 4195 Feb  4 08:15 jellyfin.pfx
    -rw-r--r-- 1 jellyfin jellyfin 1362 Feb  3 21:36 logging.default.json
    -rw-r--r-- 1 jellyfin root    1034 Feb  4 08:32 logging.json
    -rw-r--r-- 1 jellyfin jellyfin 2181 Feb  3 22:26 migrations.xml
    -rw-r--r-- 1 jellyfin jellyfin 1468 Feb  4 08:17 network.xml
    -rw-r--r-- 1 jellyfin jellyfin 5655 Feb  3 21:42 system.xml
    drwxr-xr-x 3 jellyfin jellyfin 4096 Feb  4 00:26 users

    I then restarted the server both from the GUI (which now works for some reason) and the entire server.

    The log no longer produces the error relating to the pfx but the issue still persists.

    Code:
    /etc/jellyfin# ss -tup
    Netid            State            Recv-Q            Send-Q                   Local Address:Port                        Peer Address:Port                Process                                                           
    tcp              ESTAB            0                  0                                192.168.0.11:22                            192.168.0.25:51804              users:(("sshd",pid=807,fd=4),("sshd",pid=784,fd=4))             
    tcp              ESTAB            0                  0                                192.168.0.11:22                            192.168.0.25:56142              users:(("sshd",pid=1059,fd=4),("sshd",pid=1053,fd=4))           
    tcp              ESTAB            0                  0                                192.168.0.11:925                          192.168.0.10:nfs                                                                                 
    tcp              ESTAB            0                  0                                192.168.0.11:8096                        192.168.0.25:56336              users:(("jellyfin",pid=987,fd=325))                             
    tcp              ESTAB            0                  0                                192.168.0.11:22                            192.168.0.25:57238

    New debug log attached.


    .zip   jellyfin20240204_2.log.zip (Size: 36.29 KB / Downloads: 197)
    ro55mo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #5
    2024-02-04, 09:46 AM
    So I just thought to try checking the 'Require HTTPS' setting now no errors were appearing about the pfx in the log. I also tweaked a couple of other settings.

       

    After restarting the server again it kicked into life.

    Code:
    ss -tup
    Netid            State            Recv-Q            Send-Q                      Local Address:Port                        Peer Address:Port            Process           
    tcp              ESTAB            0                0                            192.168.0.11:793                          192.168.0.10:nfs                               
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:56240                             
    tcp              ESTAB            0                0                            192.168.0.11:22                            192.168.0.25:43956                             
    tcp              ESTAB            0                0                            192.168.0.11:22                            192.168.0.25:40928                             
    tcp              ESTAB            0                0                            192.168.0.11:8920                        192.168.0.25:40698                             
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:58180                             
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:56202                             
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:58176                             
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:58172                             
    tcp              ESTAB            0                0                            192.168.0.11:22                            192.168.0.25:56334                             
    tcp              ESTAB            0                0                            192.168.0.11:8920                        192.168.0.25:46234                             
    tcp              ESTAB            0                0                            192.168.0.11:8096                        192.168.0.25:56224


    The setting 'Require HTTPS' says 'If checked, the server will automatically redirect all requests over HTTP to HTTPS. This has no effect if the server is not listening on HTTPS.'

    This does not seem to be happening right now. I can still open pages on 8096 and no redirection happens. It does work if I open an in-private browser session. Cached session of some type I guess.

    Thank you for pointing me in the right direction. It would have been very helpful if the Jellyfin web GUI could have displayed any errors relating to the certificate though.

    Expected behaviour from my point of view would be for https on 8920 to appear when 'Enable HTTPS' is checked and a valid cert is present, not 'Require HTTPS'.
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • 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