Jellyfin Forum
server - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: server (/t-server--6788)

Pages: 1 2


server - 0000000000 - 2024-07-01

So I installed the server and web .debs (jellyfin-server_10.9.7+deb12_amd64.deb and jellyfin-web_10.9.7+deb12_all.deb) and jellyfin service output is The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/bin/jellyfin-web.

And the directory indeed does not exist. I don't know how to proceed.


RE: server - theguymadmax - 2024-07-01

Use this command to point it in the right direction
Code:
ln -s /usr/share/jellyfin/web/ /usr/lib/jellyfin/bin/jellyfin-web



RE: server - TheDreadPirate - 2024-07-01

(2024-07-01, 03:50 PM)0000000000 Wrote: So I installed the server and web .debs (jellyfin-server_10.9.7+deb12_amd64.deb and jellyfin-web_10.9.7+deb12_all.deb) and jellyfin service output is The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/bin/jellyfin-web.

And the directory indeed does not exist. I don't know how to proceed.

You say "Jellyfin service" but how did you try to start jellyfin?  Did you simply type "jellyfin" or did you run "sudo systemctl start jellyfin"?

Also, why install the .debs directly instead of through our repo?  We have a script that automates the entire Jellyfin repo setup process and installs the jellyfin packages.


RE: server - 0000000000 - 2024-07-01

(2024-07-01, 03:56 PM)theguymadmax Wrote: Use this command to point it in the right direction
Code:
ln -s /usr/share/jellyfin/web/ /usr/lib/jellyfin/bin/jellyfin-web

yeah that worked, thanks, but now it's throwing other errors.

[12:17:47] [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:17:47] [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.

very fun. can't find the network.xml

(2024-07-01, 04:24 PM)TheDreadPirate Wrote:
(2024-07-01, 03:50 PM)0000000000 Wrote: So I installed the server and web .debs (jellyfin-server_10.9.7+deb12_amd64.deb and jellyfin-web_10.9.7+deb12_all.deb) and jellyfin service output is The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib/jellyfin/bin/jellyfin-web.

And the directory indeed does not exist. I don't know how to proceed.

You say "Jellyfin service" but how did you try to start jellyfin?  Did you simply type "jellyfin" or did you run "sudo systemctl start jellyfin"?

Also, why install the .debs directly instead of through our repo?  We have a script that automates the entire Jellyfin repo setup process and installs the jellyfin packages.

started both ways. it starts and stops fine.

because i don't want third party repos on the system.

why offer a clearly broken install method at all? why not just support flatpak as it works on literally all linux systems and is a one click install? (the "community maintained" flatpak hasn't been updated in two months and hasn't been compatible with the flatpak player in the same amount of time.


RE: server - theguymadmax - 2024-07-01

(2024-07-01, 04:40 PM)0000000000 Wrote: [12:17:47] [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:17:47] [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.

That usually indicates you have two instances running. You have it running as a service and you're also running it with the command jellyfin. You need to stop the service if you are running it manually.


RE: server - 0000000000 - 2024-07-01

(2024-07-01, 04:49 PM)theguymadmax Wrote: That usually indicates you have two instances running. You have it running as a service and you're also running it with the command jellyfin. You need to stop the service if you are running it manually.

Yeah, that makes sense. i stopped the service and installed via the repo method. rebooted and now when i start it via "jellyfin" i get

medeb@jelly:~$ sudo systemctl stop jellyfin.service
[sudo] password for medeb:  
medeb@jelly:~$ jellyfin
[13:06:00] [INF] [1] Main: Jellyfin version: 10.9.7
[13:06:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /home/mede
b/.local/share/jellyfin/log]"]
[13:06:00] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll"]
[13:06:00] [INF] [1] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[13:06:00] [INF] [1] Main: Architecture: X64
[13:06:00] [INF] [1] Main: 64-Bit Process: True
[13:06:00] [INF] [1] Main: User Interactive: True
[13:06:00] [INF] [1] Main: Processor count: 6
[13:06:00] [INF] [1] Main: Program data path: /home/medeb/.local/share/jellyfin
[13:06:00] [INF] [1] Main: Log directory path: /home/medeb/.local/share/jellyfin/
log
[13:06:00] [INF] [1] Main: Config directory path: /home/medeb/.config/jellyfin
[13:06:00] [INF] [1] Main: Cache path: /home/medeb/.cache/jellyfin
[13:06:00] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
[13:06:00] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[13:06:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking followin
g migrations as applied because this is a fresh install: ["CreateNetworkConfigura
tion", "MigrateMusicBrainzTimeout", "MigrateNetworkConfiguration"]
[13:06:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager
: Setting cache path: /home/medeb/.cache/jellyfin
[13:06:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assembl
ies
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subn
ets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN excl
usions: []
[13:06:00] [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"]
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interfa
ce addresses: ["127.0.0.1", "192.168.1.103"]
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses [
"0.0.0.0"]
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter
is Allowlist
[13:06:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets
: []
[13:06:02] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded pl
ugin: TMDb 10.9.7.0
[13:06:02] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded pl
ugin: Studio Images 10.9.7.0
[13:06:02] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded pl
ugin: OMDb 10.9.7.0
[13:06:02] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded pl
ugin: MusicBrainz 10.9.7.0
[13:06:02] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded pl
ugin: AudioDB 10.9.7.0
[13:06:02] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking followin
g migrations as applied because this is a fresh install: ["DisableTranscodingThro
ttling", "CreateLoggingConfigHeirarchy", "MigrateActivityLogDatabase", "RemoveDup
licateExtras", "MigrateUserDatabase", "MigrateDisplayPreferencesDatabase", "Remov
eDownloadImagesInAdvance", "MigrateAuthenticationDatabase", "FixPlaylistOwner", "
MigrateRatingLevels", "FixAudioData"]
[13:06:02] [INF] [1] Main: Kestrel is listening on 0.0.0.0
[13:06:03] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The W
ebRootPath was not found: /home/medeb/wwwroot. Static files may be unavailable.
[13:06:03] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup
tasks
[13:06:03] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Dail
y trigger for Generate Trickplay Images set to fire at 2024-07-02 03:00:00.000 -0
4:00, which is 13:53:56.7713403 from now.
[13:06:03] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Dail
y trigger for Extract Chapter Images set to fire at 2024-07-02 02:00:00.000 -04:0
0, which is 12:53:56.7681064 from now.
[13:06:03] [ERR] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Error valid
ating encoder
System.ComponentModel.Win32Exception (2): An error occurred trying to start proce
ss 'ffmpeg' with working directory '/home/medeb'. No such file or directory
  at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, S
tring resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCred
entials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& s
tdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
  at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
  at MediaBrowser.MediaEncoding.Encoder.EncoderValidator.GetProcessOutput(String
path, String arguments, Boolean readStdErr, String testKey)
  at MediaBrowser.MediaEncoding.Encoder.EncoderValidator.ValidateVersion()
[13:06:03] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: Fai
led version check: ffmpeg
[13:06:03] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg:  
[13:06:03] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: 6ea66
54881534d48af3054570c54698c
[13:06:03] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup co
mplete
[13:06:03] [INF] [1] Main: Startup complete 0:00:03.0091679
[13:06:06] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clea
n up collections and playlists Completed after 0 minute(s) and 0 seconds
[13:06:06] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: Upd
ate Plugins Completed after 0 minute(s) and 0 seconds
[13:06:07] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthent
ication was not authenticated. Failure message: Invalid token.
[13:06:07] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthent
ication was not authenticated. Failure message: Invalid token.
[13:06:07] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: Authenticatio
nScheme: CustomAuthentication was challenged.
[13:06:17] [INF] [14] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthen
tication was not authenticated. Failure message: Invalid token.
[13:06:17] [INF] [14] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthen
tication was not authenticated. Failure message: Invalid token.
[13:06:17] [INF] [14] Jellyfin.Api.Auth.CustomAuthenticationHandler: Authenticati
onScheme: CustomAuthentication was challenged.
[13:06:27] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthent
ication was not authenticated. Failure message: Invalid token.


Sorry about the dump. i don't remember how to use a real forum.

Honestly, i might just wipe this install and use Arch. Probably wont have to deal with this via the AUR.


RE: server - theguymadmax - 2024-07-01

You also need to to install the ffmpeg.deb package, if you haven't already. When starting it manually you need to add in a system path argument for ffmpeg.
Code:
jellyfin --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

The Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token messages are common. You need to the clear the cache in your browser when you setup a new instance of jellyfin. And make sure you have no other clients open. When I set up a new instance I'll usually do it in a private browser window.


RE: server - TheDreadPirate - 2024-07-01

You should be using systemctl to manage jellyfin.

Stop the current instance you are running and use "sudo systemctl start jellyfin".


RE: server - 0000000000 - 2024-07-01

(2024-07-01, 05:26 PM)theguymadmax Wrote: You also need to to install the ffmpeg.deb package, if you haven't already. When starting it manually you need to add in a system path argument for ffmpeg.
Code:
jellyfin --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

The Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token messages are common. You need to the clear the cache in your browser when you setup a new instance of jellyfin. And make sure you have no other clients open. When I set up a new instance I'll usually do it in a private browser window.

i reinstalled via repo so presumably that was done? but i'll try if next step doesn't work.

the flatpak server is using its own browser and i've yet to see one for the this standard install. so i don't know what cache to clear. or do i just open it in any browser? can i just use any firefox private tab and login there? that doesn't make sense. surly it gets its own browser.


RE: server - theguymadmax - 2024-07-01

(2024-07-01, 05:51 PM)0000000000 Wrote: i reinstalled via repo so presumably that was done?
Yes, if you installed by the repo then ffmpeg should have been installed.

Quote:the flatpak server is using its own browser and i've yet to see one for the this standard install. so i don't know what cache to clear. or do i just open it in any browser? can i just use any firefox private tab and login there? that doesn't make sense. surly it gets its own browser.

I'm not sure what you mean here, but I'll try to clarify my point. Whenever I reinstall my server I'll make sure to run the setup wizard in a new  private window, to make sure the it's not using a cached version of the old web sever. I use Firefox so a new private window works or just going into the settings and clear the cache. This is just for the first time setup, not for every time I access the webui.

I've never installed the deb packages, then install by repo, then have the service running, and have it running manually, so I'm sure somethings are bound to get messed up. As TheDreadPirate stated it should be manged using systemctl.