Package Details: jellyfin 10.7.7-1

Git Clone URL: https://aur.archlinux.org/jellyfin.git (read-only, click to copy)
Package Base: jellyfin
Description: The Free Software Media System
Upstream URL: https://github.com/jellyfin/jellyfin
Licenses: GPL2
Submitter: z3ntu
Maintainer: z3ntu
Last Packager: z3ntu
Votes: 83
Popularity: 0.77
First Submitted: 2019-01-09 16:59 (UTC)
Last Updated: 2021-09-10 16:48 (UTC)

Latest Comments

jab416171 commented on 2022-05-14 18:07 (UTC)

jellyfin actually requires {aspnet,dotnet}-runtime-5.0-bin, currently this will just install {aspnet,dotnet}-runtime which is 6.0. I believe the PKGBUILD can just be updated to =5 instead of >=5. I also had to install nodejs-lts-fermium (version 14) to get it to build, it was throwing errors on 18.

davispuh commented on 2022-02-08 21:48 (UTC)

Any ideas for getting it to work with latest NodeJS?

Module build failed (from ../node_modules/css-loader/dist/cjs.js):
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in 

bmd_online commented on 2022-01-22 16:11 (UTC) (edited on 2022-01-22 16:14 (UTC) by bmd_online)

I have made these changes in PKGBUILD for compile 10.8.0-alpha5 :

  • replace pkgver, and patch "_" vs "-"
  • skip sha512sum
  • replace yarm with npm

--- PKGBUILD.10.7   2022-01-22 17:04:18.000000000 +0100
+++ PKGBUILD.10.8   2022-01-22 17:09:15.878599256 +0100
@@ -4,21 +4,21 @@

 pkgbase=jellyfin
 pkgname=(jellyfin jellyfin-web jellyfin-server)
-pkgver=10.7.7
+pkgver=10.8.0_alpha5
 pkgrel=1
 pkgdesc='The Free Software Media System'
 arch=('i686' 'x86_64' 'armv6h')
 url='https://github.com/jellyfin/jellyfin'
 license=('GPL2')
-makedepends=('dotnet-sdk>=5' 'yarn' 'git')
-source=("jellyfin-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin/archive/v$pkgver.tar.gz"
-        "jellyfin-web-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/v$pkgver.tar.gz"
+makedepends=('dotnet-sdk>=6' 'npm' 'git')
+source=("jellyfin-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin/archive/refs/tags/v${pkgver//_/-}.tar.gz"
+        "jellyfin-web-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/refs/tags/v${pkgver//_/-}.tar.gz"
         'jellyfin.conf'
         'jellyfin.service'
         'jellyfin.sysusers'
         'jellyfin.tmpfiles')
-sha512sums=('46da01564c917f65316507c298ab9c30abfd48b351ff6d8ab33429c1ba4800b986267d89431c4c8e3c0274dcd24c6864576b1d7a81a53b61c041da4ba2342d30'
-            '0ea3bdce5d99eef9562174410a1b4dde0f083ed92948366ccf3aa259ecfe1ebb559019cbe4d9bbd64e4a35232075d2f9348b63fb3f15ebd6dc2f4e9532903b66'
+sha512sums=('SKIP'
+            'SKIP'
             '2aa97a1a7a8a447171b59be3e93183e09cbbc32c816843cc47c6777b9aec48bd9c1d9d354f166e0b000ad8d2e94e6e4b0559aa52e5c159abbc103ed2c5afa3f0'
             '99d02080b1b92e731250f39ddd13ceca7129d69d0c05e0939620cbc3f499a9574668c63fa889704a4905560888131e980d7ab1fbcc5837b04d33ce26daa9d42b'
             '6fc2638e6ec4b1ee0240e17815c91107b694e5fde72c1bc7956c83067bbeacb632de899b86837e47a0ec04288131b15c20746373b45e0669c8976069a55d627a'
@@ -26,12 +26,13 @@

 build(){
   # Build jellyfin-web
-  cd jellyfin-web-$pkgver
+  cd jellyfin-web-${pkgver//_/-}

-  yarn install --cache-folder "$srcdir"/yarn-cache
+  #yarn install --cache-folder "$srcdir"/yarn-cache
+  npm ci --no-audit --unsafe-perm

   # Build jellyfin-server
-  cd ../jellyfin-$pkgver
+  cd ../jellyfin-${pkgver//_/-}

   # Disable dotnet telemetry
   export DOTNET_CLI_TELEMETRY_OPTOUT=1
@@ -58,7 +59,7 @@
   backup=('etc/conf.d/jellyfin')

   mkdir -p "$pkgdir"/usr/lib
-  cp -dr --no-preserve='ownership' jellyfin-$pkgver/publish "$pkgdir"/usr/lib/jellyfin
+  cp -dr --no-preserve='ownership' jellyfin-${pkgver//_/-}/publish "$pkgdir"/usr/lib/jellyfin

   install -Dm 644 jellyfin.service -t "$pkgdir"/usr/lib/systemd/system/
   install -Dm 644 jellyfin.sysusers "$pkgdir"/usr/lib/sysusers.d/jellyfin.conf
@@ -70,7 +71,7 @@
   pkgdesc="Jellyfin web client"

   mkdir -p "$pkgdir"/usr/lib/jellyfin
-  cp -r jellyfin-web-$pkgver/dist "$pkgdir"/usr/lib/jellyfin/jellyfin-web
+  cp -r jellyfin-web-${pkgver//_/-}/dist "$pkgdir"/usr/lib/jellyfin/jellyfin-web
 }

 # vim: ts=2 sw=2 et:

Caust1c commented on 2021-12-08 02:43 (UTC)

FYI to those looking to install: if you're getting a lot of the following error[1], then you might need to downgrade nodejs before installing. I had nodejs 17 (current stable). I installed the nodejs-lts-fermium package (nodejs 14) and it worked again.

[1] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in...

JP-Ellis commented on 2021-12-07 02:20 (UTC)

Should the PKGBUILD also support armv7h? Looking at the jellyfin-bin package, that architecture is supported (though not armv6h).

JP-Ellis commented on 2021-12-07 02:20 (UTC)

Should the PKGBUILD also support armv7h? Looking at the jellyfin-bin package, that architecture is supported (though not armv6h).

talonz commented on 2021-11-15 16:12 (UTC)

just switched to jellyfin-git to dodge rolling back dotnet

nichobi commented on 2021-11-15 09:41 (UTC)

10.8.0 is currently in alpha and will support dotnet 6. Hard to say how long it'll be before it's released as stable, but it shouldn't be too hard to modify the PKGBUILD to install the alpha. https://www.reddit.com/r/jellyfin/comments/qtd4nw/the_second_alpha_for_1080_is_up_please_read_and/

DocMAX commented on 2021-11-15 08:49 (UTC)

will jellyfin get an update for dotnet 6.0 in the near future?

servimo commented on 2021-11-14 04:17 (UTC)

Yes, this is right Jellyfin 10.7.7-1 will work with: dotnet-runtime and aspnet-runtime 5.0

morkafox commented on 2021-11-13 20:31 (UTC)

I rolled back all dotnet packages and the aspnet-runtime back to 5.0 and it works for me now.

lysergia commented on 2021-11-13 20:19 (UTC)

Hmm, even after installing dotnet-sdk-5.0-bin I am getting

I just rolled my packages back, but you probably need aspnet-runtime-5.0-bin as well.

aorth commented on 2021-11-13 12:52 (UTC) (edited on 2021-11-13 13:05 (UTC) by aorth)

Looks like we need to go back to the dotnet-sdk-5.0-bin from AUR, since Arch updated to .NET 6.0. I'm getting this when starting Jellyfin now:

The framework 'Microsoft.AspNetCore.App', version '5.0.0' (x64) was not found.

Hmm, even after installing dotnet-sdk-5.0-bin I am getting:

dotnet[127434]: It was not possible to find any compatible framework version
dotnet[127434]: The framework 'Microsoft.AspNetCore.App', version '5.0.0' (x64) was not found.
dotnet[127434]:   - The following frameworks were found:
dotnet[127434]:       6.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

kak commented on 2021-11-04 00:30 (UTC)

if you are like me and are running into issues, it could be that a few of these items are missing:

  • npm (pacman -S npm)
  • webpack (npm install -g webpack)
  • webpack-cli (npm install -g webpack-cli)

galvez_65 commented on 2021-09-09 15:50 (UTC)

Just updated to 10.7.7, seems to be working ok, although not extensivly tested yet. Here is the patch if anyone is interested.

--- PKGBUILD    2021-09-09 11:42:37.181216378 -0400
+++ PKGBUILD.10.7.7 2021-09-08 22:47:01.469332074 -0400
@@ -4,7 +4,7 @@

 pkgbase=jellyfin
 pkgname=(jellyfin jellyfin-web jellyfin-server)
-pkgver=10.7.6
+pkgver=10.7.7
 pkgrel=1
 pkgdesc='The Free Software Media System'
 arch=('i686' 'x86_64' 'armv6h')
@@ -17,8 +17,8 @@
         'jellyfin.service'
         'jellyfin.sysusers'
         'jellyfin.tmpfiles')
-sha512sums=('d97be3d94a4a2acd8f213e0dc681776f9ce0d74008fd202b2dd5f9d3438dd8b84c1b7cf57a61bc8c6ba33555caf0ed9928c98d7df79a6b14047b47852fc0570e'
-            'b52bc3cb2dda35396b310cef5025c07359470e329c2450aa7d877b65ffa7ba22cf8fb225ce2dcb448b88847ce86a0f3027d744ad5029f7f3c0f2ed7d45a3a91e'
+sha512sums=('46da01564c917f65316507c298ab9c30abfd48b351ff6d8ab33429c1ba4800b986267d89431c4c8e3c0274dcd24c6864576b1d7a81a53b61c041da4ba2342d30'
+            '0ea3bdce5d99eef9562174410a1b4dde0f083ed92948366ccf3aa259ecfe1ebb559019cbe4d9bbd64e4a35232075d2f9348b63fb3f15ebd6dc2f4e9532903b66'
             '2aa97a1a7a8a447171b59be3e93183e09cbbc32c816843cc47c6777b9aec48bd9c1d9d354f166e0b000ad8d2e94e6e4b0559aa52e5c159abbc103ed2c5afa3f0'
             '99d02080b1b92e731250f39ddd13ceca7129d69d0c05e0939620cbc3f499a9574668c63fa889704a4905560888131e980d7ab1fbcc5837b04d33ce26daa9d42b'
             '6fc2638e6ec4b1ee0240e17815c91107b694e5fde72c1bc7956c83067bbeacb632de899b86837e47a0ec04288131b15c20746373b45e0669c8976069a55d627a'

ozooha commented on 2021-06-28 02:05 (UTC) (edited on 2021-06-28 02:09 (UTC) by ozooha)

When it tries to build the package I get this error:


==> Extracting sources...
  -> Extracting jellyfin-10.7.6.tar.gz with bsdtar
  -> Extracting jellyfin-web-10.7.6.tar.gz with bsdtar
==> Sources are ready.
jellyfin-10.7.6-1 (jellyfin-web jellyfin-server jellyfin): parsing pkg list...
==> Making package: jellyfin 10.7.6-1 (Tue 18 May 2021 07:00:56 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
yarn install v1.22.10
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/jellyfin-apiclient: certificate is not yet valid".
info If you think this is a bug, please open a bug report with the information provided in "/home/xxxxx/.cache/paru/clone/jellyfin/src/jellyfin-web-10.7.6/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'jellyfin-10.7.6-1 (jellyfin-web jellyfin-server jellyfin)': 
error: packages failed to buid: jellyfin-10.7.6-1 (jellyfin-web jellyfin-server jellyfin)
checking dependencies...

galvez_65 commented on 2021-06-18 14:51 (UTC)

just build 10.7.6 without issue. Here is the patch file if anyone wants it:

--- PKGBUILD    2021-06-18 10:44:02.000000000 -0400
+++ PKGBUILD.10.7.6 2021-06-18 10:35:47.217338084 -0400
@@ -4,7 +4,7 @@

 pkgbase=jellyfin
 pkgname=(jellyfin jellyfin-web jellyfin-server)
-pkgver=10.7.5
+pkgver=10.7.6
 pkgrel=1
 pkgdesc='The Free Software Media System'
 arch=('i686' 'x86_64' 'armv6h')
@@ -17,8 +17,8 @@
         'jellyfin.service'
         'jellyfin.sysusers'
         'jellyfin.tmpfiles')
-sha512sums=('ca0f54d07cfdefe759b3010b653d69e96e43716aade2205981528552a3d318022db1d9ea0780608de973463d54bef85d6ca68fcd647999485c4020bda45d3c0a'
-            '3eb739a33b88ba0be85e883c8401dd40b97b109ce7a05f25ee038991fe3cd420e824a20ae3900e2991f5df79621b1886378b9adfa93e25bcaac57a8687700d4f'
+sha512sums=('d97be3d94a4a2acd8f213e0dc681776f9ce0d74008fd202b2dd5f9d3438dd8b84c1b7cf57a61bc8c6ba33555caf0ed9928c98d7df79a6b14047b47852fc0570e'
+            'b52bc3cb2dda35396b310cef5025c07359470e329c2450aa7d877b65ffa7ba22cf8fb225ce2dcb448b88847ce86a0f3027d744ad5029f7f3c0f2ed7d45a3a91e'
             '2aa97a1a7a8a447171b59be3e93183e09cbbc32c816843cc47c6777b9aec48bd9c1d9d354f166e0b000ad8d2e94e6e4b0559aa52e5c159abbc103ed2c5afa3f0'
             '99d02080b1b92e731250f39ddd13ceca7129d69d0c05e0939620cbc3f499a9574668c63fa889704a4905560888131e980d7ab1fbcc5837b04d33ce26daa9d42b'
             '6fc2638e6ec4b1ee0240e17815c91107b694e5fde72c1bc7956c83067bbeacb632de899b86837e47a0ec04288131b15c20746373b45e0669c8976069a55d627a'

langfingaz commented on 2021-06-17 12:12 (UTC)

For me the build fails with the following error. Any ideas on how to resolve this?

==> Starting build()...
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/jellyfin/JavascriptSubtitlesOctopus
Directory: /tmp/pkg/src/jellyfin-web-10.7.5
Output:
fatal: not a git repository: /tmp/pkg/../../.git/modules/pkg/jellyfin
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().

z3ntu commented on 2021-06-01 15:06 (UTC)

@antonioMi See https://man.archlinux.org/man/makepkg.8 -A, --ignorearch

antonioMi commented on 2021-06-01 10:41 (UTC)

Please, add 'aarch64' in arch section for installing on Raspberry PI 4 or other that use ARM64.

cirlo commented on 2021-05-01 18:04 (UTC) (edited on 2021-05-01 18:04 (UTC) by cirlo)

I solved by installing dotnet-host from the official repos instead of dotnet-host-bin. Thanks!

z3ntu commented on 2021-04-30 18:36 (UTC) (edited on 2021-04-30 18:36 (UTC) by z3ntu)

@yochananmarqos: Thanks, changed it.

@cirlo: The build works in a clean chroot, so please try that.

cirlo commented on 2021-04-30 13:37 (UTC) (edited on 2021-04-30 13:37 (UTC) by cirlo)

I get the following error updating from 10.7.0-1 ~/.cache/paru/clone/jellyfin/src/jellyfin-10.7.2/Jellyfin.Server/Jellyfin.Server.csproj : error NU1101: Unable to find package Microsoft.NETCore.App.Host.arch-x64. No packages exist with this id in source(s): NuGet official package source

I tried to clean all my cache files but I had no luck :\

yochananmarqos commented on 2021-04-15 19:06 (UTC)

@z3ntu: Please use a local Yarn cache as not to pollute the user's home folder:

yarn install --cache-folder "$srcdir/yarn-cache"

z3ntu commented on 2021-04-15 18:00 (UTC)

Finally!

aorth commented on 2021-04-15 16:12 (UTC) (edited on 2021-04-15 16:12 (UTC) by aorth)

dotnet 5.0.5.sdk202, which contains the NuGet TLS certificate workaround for dotnet restore, is in Arch Linux [community] now so you can build jellyfin without any shenanigans.

@z3ntu please bump to 10.7.2!

galvez_65 commented on 2021-04-15 00:30 (UTC)

@kescherAUR thankyou thanks your suggestion to use -bin dotnet packages from the AUR worked, I was able to build jellyfin 10.7.2 and install it on my server.

kescherAUR commented on 2021-04-13 23:07 (UTC)

I've managed to build 10.7.2 by using all -bin packages for all the dotnet stuff, since these are updated to disable signature verification "temporarily" until this issue is fixed.

aorth commented on 2021-04-11 06:22 (UTC)

Last week NuGet updated their announcement about the signature verification failures to say that .NET SDK 5.0.202 disables signature verification on Linux to temporarily work around this. I built and installed dotnet-sdk-bin version 5.0.5.sdk202-1 from AUR, but Jellyfin still won't build:

/build/jellyfin/src/jellyfin-10.7.1/Jellyfin.Server/Jellyfin.Server.csproj : error NU3028: Package 'Microsoft.AspNetCore.Mvc.Analyzers 2.2.0' from source 'https://api.nuget.org/v3/index.json': The repository countersignature's timestamp found a chain building issue: UntrustedRoot: self signed certificate in certificate chain

Amazing that the NuGet stuff has been broken on Linux for over a month...

jsutton commented on 2021-04-04 01:31 (UTC)

I got these packages to build by downgrading ca-certificates-mozilla to 3.62-1 (the immediate previous version to the current release).

Source of this advice: https://github.com/NuGet/Home/issues/10695#issuecomment-808589535

aorth commented on 2021-04-02 10:09 (UTC)

dotnet-sdk 5.0 is in Arch Linux [community] since a few weeks ago (so no need for dotnet-core-bin), but there is another problem during build now. Something related to NuGet and TLS certificates. Affects a lot of Linux distributions, see:

xamindar commented on 2021-03-29 18:34 (UTC)

I can't get this to build. I'm trying to figure out why jellyfin-server and jellyfin-web are dependencies of this package. They seem to be the same thing at first glance. Why would I need to install all three as dependencies?

Do I need to install dotnet-sdk from AUR instead?

z3ntu commented on 2021-03-09 21:37 (UTC)

@aorth The dotnet-core-bin packages builds a bunch of subpackages, one of those is dotnet-sdk-bin, yes. But you also need dotnet-runtime-bin & aspnet-runtime-bin.

@luukvbaal I'm not sure if this package qualifies as arch=(any) given that it does contain native code, although it includes it for multiple architectures which is quite weird. I'd love to not include that but dotnet is weird...

aorth commented on 2021-03-09 16:19 (UTC) (edited on 2021-03-09 16:20 (UTC) by aorth)

@z3ntu I think you mean dotnet-sdk-bin. Otherwise thanks, works well. 10.7.0 is so fast!

luukvbaal commented on 2021-03-09 13:27 (UTC)

@z3ntu Isn't that's precisely the point of the arch array? Specify all supported architectures or just use 'any' if indeed all architectures are supported.

z3ntu commented on 2021-03-09 12:50 (UTC)

@onny Just use "makepkg -A", there's not much point in adding all possible arches to all pkgbuilds.

onny commented on 2021-03-09 12:21 (UTC)

Could you please add aarch64 to the arch-array in PKGBUILD. Building, installing and running this package works fine on my ARM-board after adding this arch manually :)

z3ntu commented on 2021-03-09 08:46 (UTC) (edited on 2021-03-09 08:47 (UTC) by z3ntu)

The latest Jellyfin version depends on .NET Core 5 which isn't available in [community] yet. An alternative is using dotnet-core-bin from the AUR until it's updated in the official repos.

mqs commented on 2021-03-02 23:46 (UTC)

it should be possible to remove python2 again since the dependency was fixed in node-gyp

jokke commented on 2020-11-05 00:47 (UTC) (edited on 2020-11-05 00:51 (UTC) by jokke)

Please add python2 to makedepends. It's needed by node-gyp

galvez_65 commented on 2020-09-05 02:54 (UTC)

Just built version 10.6.4, Updated the PKGBUILD version number and updated pkgsums. Build with makepkg -cCsr seems to be running just fine although I am not running any plugins.

petris commented on 2020-08-29 02:39 (UTC) (edited on 2020-08-29 03:33 (UTC) by petris)

@z3ntu If you take a look at the debian rules (https://github.com/jellyfin/jellyfin/blob/master/debian/rules), you'll see that there's a few options missing from the "dotnet publish" command, in particular the "--self-contained" and "--runtime" options. If you add those options to the publish command, as well as change the service file to call "/usr/lib/jellyfin/bin/jellyfin" instead of "dotnet ... Jellyfin.dll" then it will fix the issues that people are complaining about.

These options create a "self contained" build that can be run without the dotnet runtime, thus it will copy all dependencies into the publish folder as well as generate a binary to run (the "jellyfin" binary I mentioned for the service file) without having to call "dotnet".

Edit: That said, comparing the included dlls with the portable variant downloadable from jellyfin's website (https://repo.jellyfin.org/releases/server/portable/versions/stable) shows that all of the dlls in the server package are included in this package when built in a clean chroot. Maybe the problem is stemming specifically with aur helpers?

TheFrenchGhosty commented on 2020-08-24 00:50 (UTC) (edited on 2020-08-24 00:50 (UTC) by TheFrenchGhosty)

This package is partially broken.

When Jellyfin is installed it will still ask for files used when building it, meaning that, if like me, you clean the cache directory of your AUR helper / remove the directory where you did the makepkg you will get issues.

This will break multiples plugins (example: https://github.com/ankenyr/jellyfin-youtube-metadata-plugin/issues/13#issuecomment-678843194 ) and cause various issues.

This https://aur.archlinux.org/pkgbase/jellyfin/#comment-737337 seems to be the same problem.

Moving to jellyfin-server-bin and jellyfin-web-bin solved the problem.

galvez_65 commented on 2020-07-21 20:03 (UTC)

changing the pkgrel to 10.6.0 and updating the sums allows the package to build without issue.

erkexzcx commented on 2020-07-21 17:07 (UTC) (edited on 2020-07-21 17:08 (UTC) by erkexzcx)

For those who are looking to install the latest version (binary package):


To install the latest version, uninstall any regular jellyfin and install these packages instead:

jellyfin-server-bin jellyfin-web-bin

knaick commented on 2020-04-14 09:11 (UTC) (edited on 2020-04-14 09:12 (UTC) by knaick)

z3ntu commented on 2020-04-10 15:12

rm -rf ~/.cache/yarn/ should help there I guess

Can confirm it works.

z3ntu commented on 2020-04-10 14:12 (UTC)

rm -rf ~/.cache/yarn/ should help there I guess

GaaH commented on 2020-04-10 14:07 (UTC)

Indeed. I cloned the repo and makepkg -si and it works... Weird, because I removed the source folder downloaded by yay (my AUR helper) but it didn't help. I'm probably missing something.

Ardent commented on 2020-04-10 00:46 (UTC)

I'm having the same problem as @GaaH

yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: pull
Directory: /home/adam/.cache/yarn/v6/.tmp/8232036c1103d116bf0835ca5d679581
Output:
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...
:: failed to build jellyfin package(s)

I tried rm -rf src/ pkg/ with no improvement.

z3ntu commented on 2020-04-09 15:42 (UTC)

@GaaH: rm -rf src/ pkg/ ? Jellyfin builds fine in a clean chroot so you can always use that.

GaaH commented on 2020-04-09 14:44 (UTC) (edited on 2020-04-09 14:45 (UTC) by GaaH)

I have an error (see below) when I try to update the package.

yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: pull
Directory: /home/gaetan/.cache/yarn/v6/.tmp/8232036c1103d116bf0835ca5d679581
Output:
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...
Error making: jellyfin

GHammer commented on 2020-04-03 15:31 (UTC)

This left items in the build directory and will not schedule recordings likely due to that.

[2020-04-03 11:18:47.558 -04:00] [ERR] [11] Emby.Server.Implementations.HttpServer.HttpListenerHost: Error processing request System.ArgumentNullException: Value cannot be null. (Parameter 'mimeType') at MediaBrowser.Providers.Manager.ImageSaver.SaveImage(BaseItem item, Stream source, String mimeType, ImageType type, Nullable1 imageIndex, Nullable1 saveLocallyWithMedia, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.SaveImage(BaseItem item, String url, ImageType type, Nullable1 imageIndex, CancellationToken cancellationToken) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/MediaBrowser.Providers/Manager/ProviderManager.cs:line 171 at Emby.Server.Implementations.Library.LibraryManager.ConvertImageToLocal(BaseItem item, ItemImageInfo image, Int32 imageIndex) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/Emby.Server.Implementations/Library/LibraryManager.cs:line 2825 at Emby.Drawing.ImageProcessor.ProcessImage(ImageProcessingOptions options) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/Emby.Drawing/ImageProcessor.cs:line 225 at MediaBrowser.Api.Images.ImageService.GetImageResult(BaseItem item, Guid itemId, ImageRequest request, ItemImageInfo image, Boolean cropwhitespace, IReadOnlyCollection1 supportedFormats, Nullable1 cacheDuration, IDictionary2 headers, Boolean isHeadRequest) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/MediaBrowser.Api/Images/ImageService.cs:line 646 at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/Emby.Server.Implementations/Services/ServiceExec.cs:line 139 at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IRequest httpReq, HttpResponse httpRes, ILogger logger, CancellationToken cancellationToken) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/Emby.Server.Implementations/Services/ServiceHandler.cs:line 80 at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken) in /var/tmp/pamac-build-gary/jellyfin/src/jellyfin-10.5.2/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs:line 553

erkexzcx commented on 2020-03-25 10:35 (UTC)

Feel free to use jellyfin-bin ye'all.

Abzie commented on 2020-03-25 10:32 (UTC)

10.5.2 released 2 days ago: https://github.com/jellyfin/jellyfin/releases/tag/v10.5.2

IncredibleLaser commented on 2020-03-16 09:24 (UTC) (edited on 2020-03-16 09:25 (UTC) by IncredibleLaser)

It doesn't build here:

==> Retrieving sources...
  -> Found jellyfin-10.5.0.tar.gz
  -> Found jellyfin-web-10.5.0.tar.gz
  -> Found jellyfin.conf
  -> Found jellyfin.service
  -> Found jellyfin.sysusers
  -> Found jellyfin.tmpfiles
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting jellyfin-10.5.0.tar.gz with bsdtar
  -> Extracting jellyfin-web-10.5.0.tar.gz with bsdtar
==> Starting build()...
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
error Couldn't find the binary git

It seems git is required to build this, but it's not listed as a makedepends.

stiw47 commented on 2020-03-11 14:23 (UTC) (edited on 2020-03-11 14:25 (UTC) by stiw47)

@user110: Thanks for reply. Anyway, with sudo pacman -Qm | egrep "dotnet|aspnet" I got nothing.

Following I got with pacman -Q | egrep "dotnet|aspnet"

[stiw47@archmedia ~]$ sudo pacman -Q | egrep "dotnet|aspnet"
aspnet-runtime 3.1.2.sdk102-1
dotnet-host 3.1.2.sdk102-1
dotnet-runtime 3.1.2.sdk102-1
dotnet-runtime-2.2 2.2.7.sdk109-1
dotnet-sdk 3.1.2.sdk102-1
dotnet-sdk-2.2 2.2.7.sdk109-1

Now starting a part I don't understand :) I force removed dotnet-runtime-2.2 2.2.7.sdk109-1 and dotnet-sdk-2.2 2.2.7.sdk109-1 , but this was broke Emby (I have Emby up and running on same machine)

[stiw47@archmedia ~]$ sudo pacman -R dotnet-sdk-2.2
checking dependencies...

Package (1)     Old Version     Net Change

dotnet-sdk-2.2  2.2.7.sdk109-1  -124.50 MiB

Total Removed Size:  124.50 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing dotnet-sdk-2.2                                                                                       [---------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
[stiw47@archmedia ~]$ sudo pacman -R dotnet-runtime-2.2
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing dotnet-runtime-2.2 breaks dependency 'dotnet-runtime-2.2' required by emby-server
[stiw47@archmedia ~]$ sudo pacman -Rdd dotnet-runtime-2.2

Package (1)         Old Version     Net Change

dotnet-runtime-2.2  2.2.7.sdk109-1  -63.99 MiB

Total Removed Size:  63.99 MiB

:: Do you want to remove these packages? [Y/n] y
:: Processing package changes...
(1/1) removing dotnet-runtime-2.2                                                                                   [---------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...

As I said, now I have broken Emby - service failed to start. I simple done sudo pacman -S dotnet-runtime-2.2 and voila - both Jellyfin and Emby are working now.

Thanks once again.

user110 commented on 2020-03-11 10:34 (UTC)

@stiw47 check installed versions of dotnet- and aspnet- sudo pacman -Qm | egrep "dotnet|aspnet". It should be the same. If you have say dotnet-runtime-3.1 and dotnet-runtime-3.0 remove the latter. Do it for any other packages (older packages) and leave only new one.

stiw47 commented on 2020-03-09 09:36 (UTC) (edited on 2020-03-09 09:39 (UTC) by stiw47)

Hi,

My build was successful and, actually, it was upgrade 10.4.3-2 -> 10.5.0-1 It was done with yay, and btw, 10.4.3-2 was also installed/upgraded with yay from version before, and so on....

After successful build and install, I done 'sudo systemctl restart jellyfin' and got following:

[stiw47@archmedia jellyfin]$ sudo systemctl status jellyfin
[sudo] password for stiw47:
● jellyfin.service - Jellyfin Media Server
     Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Mon 2020-03-09 10:11:42 CET; 22min ago
    Process: 2204130 ExecStart=/usr/bin/dotnet /usr/lib/jellyfin/jellyfin.dll --datadir ${JELLYFIN_DATA_DIRECTORY} --cachedir ${JELLYFIN_CACHE_DIRECTORY} ${JELLYFIN_ADD_OPTS} (code=exite>
   Main PID: 2204130 (code=exited, status=143)

Mar 09 10:11:42 archmedia dotnet[2204130]: [10:11:42] [INF] [1] Dlna: SsdpCommunicationsServer disposing _BroadcastListenSocket
Mar 09 10:11:42 archmedia dotnet[2204130]: [10:11:42] [INF] [1] App: Disposing NotificationEntryPoint
Mar 09 10:11:42 archmedia dotnet[2204130]: [10:11:42] [INF] [1] App: Disposing EntryPoint
Mar 09 10:11:42 archmedia dotnet[2204130]: [10:11:42] [INF] [2] Main: Received a SIGTERM signal, shutting down
Mar 09 10:11:42 archmedia dotnet[2204130]: ErrorMessage:
Mar 09 10:11:42 archmedia dotnet[2204130]: The request was aborted: The request was canceled.
Mar 09 10:11:42 archmedia dotnet[2204130]: Data string:
Mar 09 10:11:42 archmedia dotnet[2204130]: HTTP/1.1 200 OK
                                           Cache-Control: max-age=1900
                                           Location: http://192.168.0.1:80/RootDevice.xml
                                           Server: UPnP/1.0 UPnP/1.0 UPnP-Device-Host/1.0
                                           ST:urn:schemas-upnp-org:service:WANIPConnection:1
                                           USN: uuid:upnp-WANConnectionDevice-1_0-2caba41f020f::urn:schemas-upnp-org:service:WANIPConnection:1
                                           EXT:
Mar 09 10:11:42 archmedia systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Mar 09 10:11:42 archmedia systemd[1]: jellyfin.service: Failed with result 'exit-code'.

I tried to googling in order to solve problem, but didn't found anything useful. I think I have no enough knowledge for this, any help is appreciated. I would provide any additional needed info, thanks in advance.

cobol72 commented on 2020-02-23 18:57 (UTC)

I had build issues as well but, as @doctorzeus suggested, I added dotnet-sdk to the makedepends in addition to dotnet-sdk-2.2 and it worked fine. No idea why this is the case but I agree that it should be added.

user110 commented on 2020-02-16 11:25 (UTC)

@CountMurphy dotnet 2.2 (runtime&sdk) now flagged as out-of-date and not available to install from community. I was trying to change PKGBUILD deps of dotnet 2.1. but got error first similar to those @brando56894 had, but know receiving error

node_modules/bin/webpack: Permission denied

doctorzeus commented on 2020-02-09 04:19 (UTC)

This also seems to fail to build when dotnet-sdk and/or its dependencies are not installed (even though it should only require dotnet-sdk 2.2)..?

Could we possibly this as a dependency for the benefit of other users please?

xente commented on 2020-02-06 04:54 (UTC)

Even though the error message says version 2.1 is required, version 2.2 appears to work. Version 2.2 is in the official repos as a binary package. To build, change makedepend to dotnet-sdk-2.2 as well.

brando56894 commented on 2020-01-15 16:26 (UTC) (edited on 2020-01-15 16:30 (UTC) by brando56894)

The dependency for dotnet should be set to dotnet-runtime-2.1 instead of dotnet-runtime because the latter points to v3 while jellyfin (currently) requires v2.1 in order to work properly.

Jan 15 11:07:03  systemd[1]: Started Jellyfin Media Server.
Jan 15 11:07:03  dotnet[10970]: It was not possible to find any compatible framework version
Jan 15 11:07:03  dotnet[10970]: The framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
Jan 15 11:07:03  dotnet[10970]:   - The following frameworks were found:
Jan 15 11:07:03  dotnet[10970]:       3.1.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Jan 15 11:07:03  dotnet[10970]: You can resolve the problem by installing the specified framework and/or SDK.
Jan 15 11:07:03  dotnet[10970]: The specified framework can be found at:
Jan 15 11:07:03  dotnet[10970]:   - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.1.0&arch=x64&rid=arch-x64
Jan 15 11:07:03  systemd[1]: jellyfin.service: Main process exited, code=exited, status=150/n/a
Jan 15 11:07:03  systemd[1]: jellyfin.service: Failed with result 'exit-code'.

nac commented on 2020-01-13 21:40 (UTC)

It seems possibly some recent change to jellyfin is causing a build failure:

Entrypoint main [big] = bundle.js
[3] ./bundle.js 928 bytes {0} [built]
    + 21 hidden modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  bundle.js (849 KiB)
  components/themes/purple-haze/bg.jpg (293 KiB)
  components/themes/blueradiance/bg.jpg (933 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (849 KiB)
      bundle.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Done in 252.93s.
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
  https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
==> ERROR: A failure occurred in build().
    Aborting...
Error making: jellyfin

CountMurphy commented on 2020-01-13 17:31 (UTC)

@user110, you don't have to uninstall anything. Just install dotnet-runtime-2.2 from community

user110 commented on 2019-12-23 19:44 (UTC)

@satcom886 I've installed jellyfin with dotnet > 3 since installation with dotnet 2.1 failed with error in node.js modules.Received then error similar to your (required framework version 2.1). Resolved by installing dotnet 2.1 (https://aur.archlinux.org/packages/dotnet-runtime-2.1/) and removing dotnet 3 (dotnet-rc) without deleting jellyfin. Do not know whether it is a correct approach but it works now.

z3ntu commented on 2019-11-04 19:33 (UTC) (edited on 2019-11-04 19:33 (UTC) by z3ntu)

Version 10.4.1 has a potentially breaking change, see https://github.com/jellyfin/jellyfin/releases/tag/v10.4.1 for details!

z3ntu commented on 2019-10-08 19:55 (UTC)

@cirlo Thanks for the info, jellyfin started up fine and the web interface loaded so I didn't check further. Updated!

cirlo commented on 2019-10-08 19:37 (UTC) (edited on 2019-10-08 19:37 (UTC) by cirlo)

jellyfin-web needs to be built with yarn aswell. I don't know if prepare() is the right place to do it, but - waiting for @z3ntu to update the pkg, i tried to do patch the PKGBUILD myself. Pardon me if i did any major error; all i can say is that the website works now

pkgname=jellyfin-1040
_pkgname=jellyfin
pkgver=10.4.0
pkgrel=1
pkgdesc='The Free Software Media System'
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/jellyfin/jellyfin'
license=('GPL2')
depends=('dotnet-runtime<=3' 'ffmpeg' 'sqlite')
makedepends=('dotnet-sdk' 'yarn')
provides=('jellyfin')
conflicts=('jellyfin')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin/archive/v$pkgver.tar.gz"
        "jellyfin-web-$pkgver.tar.gz::https://github.com/jellyfin/jellyfin-web/archive/v$pkgver.tar.gz"
        'jellyfin.conf'
        'jellyfin.service'
        'jellyfin.sysusers'
        'jellyfin.tmpfiles')
backup=('etc/conf.d/jellyfin')
sha512sums=('4c8105338908f479590b8eebc2048175a5b843f047f6963ee6afd518a89698437d68708e58af40c598f011091ef62d5ba42e02c637048b44200267b09e6e4f7f'
            '2b19e2d96d9b5262aa93790bbd931a66cb94553d2d7d049c71cb2e28104c7167e514768ba4e79b8b694c70254cd6be9bc5d8beed540b2d10a35f169095851ddc'
            '2aa97a1a7a8a447171b59be3e93183e09cbbc32c816843cc47c6777b9aec48bd9c1d9d354f166e0b000ad8d2e94e6e4b0559aa52e5c159abbc103ed2c5afa3f0'
            '99d02080b1b92e731250f39ddd13ceca7129d69d0c05e0939620cbc3f499a9574668c63fa889704a4905560888131e980d7ab1fbcc5837b04d33ce26daa9d42b'
            '6fc2638e6ec4b1ee0240e17815c91107b694e5fde72c1bc7956c83067bbeacb632de899b86837e47a0ec04288131b15c20746373b45e0669c8976069a55d627a'
            '45a62b62d97b9a83289d4dfde684163b1bcf340c1921fb958e5a701812c61b392901841940c67e5fa5148783277d5b4dc65ba01d3a22e8f855ea62154ad9be33')

prepare() {
  cd jellyfin-web-$pkgver
  yarn install
  cp -r dist/. "$srcdir"/$_pkgname-$pkgver/MediaBrowser.WebDashboard/jellyfin-web
}

build(){
  cd $_pkgname-$pkgver

  # Disable dotnet telemetry
  export DOTNET_CLI_TELEMETRY_OPTOUT=1

  dotnet build --configuration Release Jellyfin.Server
  # Ideally, this would be run in package() with the --output variable pointing
  # to "$pkgdir"/usr/lib/jellyfin, but this step fails in fakeroot.
  # The makepkg output looks like
  #   Restore completed in 56.84 ms for /aur/jellyfin-git/src/jellyfin/Jellyfin.Server/Jellyfin.Server.csproj.
  #   ==> ERROR: A failure occurred in package().
  # without indicating any sort of failure.
  dotnet publish --configuration Release Jellyfin.Server --output "$PWD"/publish
  # Clean up the runtimes folder (keep linux-*)
  rm -rfv publish/runtimes/{alpine-*,osx*,tizen-*,win*}
}

package() {
  mkdir -p "$pkgdir"/usr/lib
  cp -dr --no-preserve='ownership' $_pkgname-$pkgver/publish "$pkgdir"/usr/lib/jellyfin

  install -Dm 644 jellyfin.service -t "$pkgdir"/usr/lib/systemd/system/
  install -Dm 644 jellyfin.sysusers "$pkgdir"/usr/lib/sysusers.d/jellyfin.conf
  install -Dm 644 jellyfin.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/jellyfin.conf
  install -Dm 644 jellyfin.conf "$pkgdir"/etc/conf.d/jellyfin
}

Gr3q commented on 2019-10-05 07:44 (UTC) (edited on 2019-11-01 20:06 (UTC) by Gr3q)

Please add 'armv7h' and 'aarch64' to the supported architectures, dotnet can be installed to those architectures now as well (see install instructions).

Also, please specify the dotnet-runtime version as well, jellyfin won't run with the new version, it needs to be:

'dotnet-runtime<3'

satcom886 commented on 2019-10-04 17:44 (UTC)

Could this package be made compatible with dotnet 3.0.100? After installing I'm getting:

It was not possible to find any compatible framework version The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found. - The following frameworks were found: 3.0.0 at [/opt/dotnet/shared/Microsoft.NETCore.App] You can resolve the problem by installing the specified framework and/or SDK. The .NET Core frameworks can be found at: - https://aka.ms/dotnet-download

onny commented on 2019-05-05 09:17 (UTC)

please add "armv7h" to the architectures list

pedroaraujo commented on 2019-04-20 20:13 (UTC) (edited on 2019-04-20 20:13 (UTC) by pedroaraujo)

Small update, we need this option in the PKGBUILD otherwise makepkg will delete the ".a" files, which the dotnet release package requires when running Jellyfin:

  • options=('staticlibs')

Updated PKGBUILD for the new 10.3.0 version released today here:

pedroaraujo commented on 2019-04-19 16:50 (UTC)

I managed to install this package in the Raspberry Pi with Archlinux ARM with the following updated PKGBUILDs:

jaudet commented on 2019-04-03 14:17 (UTC)

@z3ntu Gotcha. I'll let you know if I find a solution.

z3ntu commented on 2019-04-03 08:18 (UTC)

@Ichimonji10 I know about this issue but I didn't figure out a way to solve it.

jaudet commented on 2019-04-02 20:47 (UTC) (edited on 2019-04-03 03:22 (UTC) by jaudet)

Building with extra-x86_64-build fails for me. Here's a snippet:

==> Starting build()...
Failed to initialize CoreCLR, HRESULT: 0x8007001F
==> ERROR: A failure occurred in build().
    Aborting...

But building with makepkg -s succeeds. Here's a snippet:

==> Starting build()...

Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Any ideas? EDIT: This thread may contain relevant information.

slackline commented on 2019-03-28 09:18 (UTC)

@onny Thanks for making this available on armv7h.

I'm trying to install and have got dotnet-runtime-bin installed ok, but the jellyfin build complains about not being able to find dotnet-sdk. I've tried the linked dependency dotnet-sdk and dotnet-sdk-rc from AUR but neither are available for armv7h.

Could you advise how to proceed please?

onny commented on 2019-02-19 15:05 (UTC)

I made some adjustments to also get this package working for armv7h, armv6h: https://git.project-insanity.org/snippets/50

Then you can run: CARCH=armv7h makepkg

The package dotnet-runtime-bin provides the runtime package for arm architecture (precompiled). Also here: CARCH=armv7h makepkg

bobberb commented on 2019-02-17 05:39 (UTC)

Apologies for delay!

diffs for Arch jellyfin (stable) 10.1.0-3-->10.2.0-1 ready to go:

http://ix.io/1BgC - PKGBUILD.diff http://ix.io/1BgD - jellyfin.service.diff

CountMurphy commented on 2019-01-28 15:41 (UTC)

@scurvy2020, if using yay, trying doing a clean build. that fixed it for me.

Cirelli94 commented on 2019-01-28 14:51 (UTC)

@scurrvy2020 I installed today with no problems!

scurrvy2020 commented on 2019-01-26 03:31 (UTC)

I get failed validity check Validating source files with sha512sums... jellyfin-10.1.0.tar.gz ... FAILED