• 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: Issues

    Pages (3): 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Issues

    An error that the kestrel did not start and path could not be found error when adding a library.
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #1
    2024-08-31, 02:35 AM
    I am having problems when jellyfin starts, I get an error saying "Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again". Another issue is that there is an error that says, "The path could not be found. Please ensure the path is valid and try again", this issue is persistent. For both of these issues, I have followed other forums that had the same issue as me, that did not work. Also, I am a complete novice when it comes to linux and jellyfin.

    Code:
    [22:21:10] [INF] [1] Main: Jellyfin version: 10.9.10
    [22:21:10] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /home/ts82924001/.local/share/jellyfin/log]"]
    [22:21:10] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "run"]
    [22:21:10] [INF] [1] Main: Operating system: Ubuntu 24.04.1 LTS
    [22:21:10] [INF] [1] Main: Architecture: X64
    [22:21:10] [INF] [1] Main: 64-Bit Process: True
    [22:21:10] [INF] [1] Main: User Interactive: True
    [22:21:10] [INF] [1] Main: Processor count: 4
    [22:21:10] [INF] [1] Main: Program data path: /home/ts82924001/.local/share/jellyfin
    [22:21:10] [INF] [1] Main: Log directory path: /home/ts82924001/.local/share/jellyfin/log
    [22:21:10] [INF] [1] Main: Config directory path: /home/ts82924001/.config/jellyfin
    [22:21:10] [INF] [1] Main: Cache path: /home/ts82924001/.cache/jellyfin
    [22:21:10] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
    [22:21:10] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
    [22:21:10] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /home/ts82924001/.cache/jellyfin
    [22:21:10] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
    [22:21:10] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
    [22:21:10] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
    [22:21:11] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
    [22:21:11] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "10.168.238.125", "192.168.1.87"]
    [22:21:11] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
    [22:21:11] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
    [22:21:11] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
    [22:21:16] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.9.10.0
    [22:21:16] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.9.10.0
    [22:21:16] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.9.10.0
    [22:21:16] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.9.10.0
    [22:21:16] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.9.10.0
    [22:21:16] [INF] [1] Main: Kestrel is listening on 0.0.0.0
    [22:21:16] [ERR] [1] Jellyfin.Networking.AutoDiscoveryHost: Unable to bind to 0.0.0.0:7359
    System.Net.Sockets.SocketException (98): Address already in use
      at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      at Jellyfin.Networking.AutoDiscoveryHost.ListenForAutoDiscoveryMessage(IPAddress listenAddress, CancellationToken cancellationToken)
    [22:21:18] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: /home/ts82924001/wwwroot. Static files may be unavailable.
    [22:21:18] [ERR] [1] Microsoft.Extensions.Hosting.Internal.Host: Hosting failed to start
    System.IO.IOException: Failed to bind to address http://0.0.0.0:8096: address already in use.
    ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
    ---> System.Net.Sockets.SocketException (98): Address already in use
      at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      --- End of inner exception stack trace ---
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
    --- End of stack trace from previous location ---
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      --- End of inner exception stack trace ---
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
      at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
      at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
    [22:21:18] [ERR] [1] Main: Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again
    [22:21:18] [FTL] [1] Main: Error while starting server
    System.IO.IOException: Failed to bind to address http://0.0.0.0:8096: address already in use.
    ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use
    ---> System.Net.Sockets.SocketException (98): Address already in use
      at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
      at System.Net.Sockets.Socket.Bind(EndPoint localEP)
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(EndPoint endpoint)
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      --- End of inner exception stack trace ---
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind()
      at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.TransportManager.BindAsync(EndPoint endPoint, ConnectionDelegate connectionDelegate, EndpointConfig endpointConfig, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.<>c__DisplayClass28_0`1.<<StartAsync>g__OnBind|0>d.MoveNext()
    --- End of stack trace from previous location ---
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      --- End of inner exception stack trace ---
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(ListenOptions[] listenOptions, AddressBindContext context, Func`2 useHttps, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
      at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken)
      at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
      at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
      at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
      at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
    [22:21:18] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
    [22:21:18] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
    [22:21:18] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzArtistProvider
    [22:21:18] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
    [22:21:18] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-31, 04:36 AM
    How did you start Jellyfin? Why are the config and data directories in your home folder?

    Did you use "sudo systemctl start jellyfin" to start the Jellyfin server? Or did you type literally "jellyfin"?
    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]
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #3
    2024-08-31, 04:13 PM (This post was last modified: 2024-08-31, 04:15 PM by partlycloudy24. Edited 1 time in total.)
    (2024-08-31, 04:36 AM)TheDreadPirate Wrote: How did you start Jellyfin?  Why are the config and data directories in your home folder?

    Did you use "sudo systemctl start jellyfin" to start the Jellyfin server?  Or did you type literally "jellyfin"?




    I started jellyfin with 'jellyfin run'. I did the 'sudo systemctl start jellyfin', but it still says that the kestrel failed to start.




    Code:
    [12:09:23] [ERR] [1] Main: Kestrel failed to start! This is most likely due to an invalid address or port bind - correct your bind configuration in network.xml and try again
    [12:09:23] [FTL] [1] Main: Error while starting server
    System.IO.IOException: Failed to bind to address http://0.0.0.0:8096: address already in use.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-08-31, 04:30 PM (This post was last modified: 2024-08-31, 04:30 PM by TheDreadPirate.)
    Code:
    sudo ps -aux | grep jellyfin
    sudo kill -9 <insert jellyfin PIID>
    sudo systemctl start jellyfin

    Or reboot and start jellyfin with systemctl.

    BTW, "jellyfin run" is not the right way to start Jellyfin.
    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]
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #5
    2024-08-31, 04:40 PM
    (2024-08-31, 04:30 PM)TheDreadPirate Wrote:
    Code:
    sudo ps -aux | grep jellyfin
    sudo kill -9 <insert jellyfin PIID>
    sudo systemctl start jellyfin

    Or reboot and start jellyfin with systemctl.

    BTW, "jellyfin run" is not the right way to start Jellyfin.

    What do I replace "<instart jellyfin PIID>" with? I am a complete noob with jellyfin.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-08-31, 04:46 PM
    "sudo ps -aux | grep jellyfin" will return all of the jellyfin processes running.

    One of the lines will look like this.

    Code:
    jellyfin  967424  0.5  2.2 275551736 729752 ?    Ssl  06:00   2:05 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

    In my case I would use "967424" as the PID.

    Code:
    sudo kill -9 967424
    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]
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #7
    2024-08-31, 04:58 PM
    (2024-08-31, 04:46 PM)TheDreadPirate Wrote: "sudo ps -aux | grep jellyfin" will return all of the jellyfin processes running.

    One of the lines will look like this.

    Code:
    jellyfin  967424  0.5  2.2 275551736 729752 ?    Ssl  06:00  2:05 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

    In my case I would use "967424" as the PID.

    Code:
    sudo kill -9 967424

    Here is the output.

    Code:
    ts82924001@ts82924001:~$ sudo ps -aux | grep jellyfin
    [sudo] password for ts82924001:
    jellyfin    9742  0.1  4.3 274610464 308916 ?    Ssl  Aug30  1:09 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
    ts82924+  24697  0.0  0.0  17812  2304 pts/1    S+  12:55  0:00 grep --color=auto jellyfin
    ts82924001@ts82924001:~$ pidof jellyfin
    9742
    ts82924001@ts82924001:~$ sudo kill -9 9742
    ts82924001@ts82924001:~$ sudo systemctl start jellyfin
    ts82924001@ts82924001:~$
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #8
    2024-08-31, 05:10 PM
    (2024-08-31, 04:46 PM)TheDreadPirate Wrote: "sudo ps -aux | grep jellyfin" will return all of the jellyfin processes running.

    One of the lines will look like this.

    Code:
    jellyfin  967424  0.5  2.2 275551736 729752 ?    Ssl  06:00  2:05 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

    In my case I would use "967424" as the PID.

    Code:
    sudo kill -9 967424

    it seems to work now, I can log in on a viewer account and it is reading the hard drive, but I am locked out of the admin account, I put in the correct credentials but it says invalid username or password. Please try again. I tried the forgot password and it says, Please try again within your home network to initiate the password reset process, i am in my home network, however, I have two routers, both with different ip addresses, 10. and 192.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-08-31, 05:15 PM (This post was last modified: 2024-08-31, 05:15 PM by TheDreadPirate.)
    Code:
    sudo systemctl stop jellyfin
    sudo nano /etc/jellyfin/system.xml

    Near the top of the file is "IsStartupWizardComplete". Change the value from true to false. Save quit.

    Code:
    sudo systemctl start jellyfin

    Access your jellyfin. Recreate your admin account, skip everything else.
    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]
    partlycloudy24
    Offline

    Junior Member

    Posts: 13
    Threads: 1
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #10
    2024-08-31, 05:27 PM (This post was last modified: 2024-08-31, 05:32 PM by partlycloudy24. Edited 2 times in total.)
    (2024-08-31, 05:15 PM)TheDreadPirate Wrote:
    Code:
    sudo systemctl stop jellyfin
    sudo nano /etc/jellyfin/system.xml

    Near the top of the file is "IsStartupWizardComplete".  Change the value from true to false.  Save quit.

    Code:
    sudo systemctl start jellyfin

    Access your jellyfin.  Recreate your admin account, skip everything else.

    How should I save the changes?


    Attached Files Thumbnail(s)
               
    Pages (3): 1 2 3 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 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