Package Details: audiobookshelf-git v2.2.23.r28.gd86a3b3d-1

Git Clone URL: https://aur.archlinux.org/audiobookshelf-git.git (read-only, click to copy)
Package Base: audiobookshelf-git
Description: Self-hosted audiobook server for managing and playing audiobooks
Upstream URL: https://github.com/advplyr/audiobookshelf
Licenses: GPL3
Conflicts: audiobookshelf
Provides: audiobookshelf
Submitter: Todoroki
Maintainer: Todoroki
Last Packager: Todoroki
Votes: 1
Popularity: 0.016035
First Submitted: 2022-06-19 06:37 (UTC)
Last Updated: 2023-07-02 21:57 (UTC)

Latest Comments

1 2 Next › Last »

dbrain commented on 2024-06-05 23:45 (UTC)

The library scanners on this package currently fail because it is packaged with node16-linux while upstream needs functions only available in node 17. You can fix it by switching the PKGBUILD to use node18-linux, which is what the upstream project has done.

dbrain commented on 2024-05-15 02:39 (UTC)

This appears to be fixed as of the latest system updates (noticed node was bumped etc.).

dbrain commented on 2024-04-11 23:44 (UTC) (edited on 2024-04-18 04:06 (UTC) by dbrain)

Also seeing this @Juddium, I haven't had time to dig into the issue properly I'm guessing it's something to do with the way the node app is bundled into an executable, but for now I've:

  • Checked out the audiobookshelf repo locally
  • Changed the configuration so the running port matches the port it usually runs on (can also expose an env var)
  • Copied my database file in from the main install
  • Executed npm run prod within the checked out directory running in a screen so I can background it
  • This builds and runs it from source rather than packaging it into a binary and works fine in my experience

Obviously the real solution would be to work out why the binary is broken (guessing packaged wrong).

Juddium commented on 2024-03-19 08:20 (UTC) (edited on 2024-03-19 08:40 (UTC) by Juddium)

Everything builds, but it does not work. During build it throws the following:

pkg@5.8.1 (node:15609) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created)

Warning Cannot find module 'ripstat' from '/home/eric/.cache/pacaur/audiobookshelf-git/src/audiobookshelf-git/server/libs/watcher' in /home/eric/.cache/pacaur/audiobookshelf-git/src/audiobookshelf-git/server/libs/watcher/types.js

Warning Cannot resolve 'message.path' /home/eric/.cache/pacaur/audiobookshelf-git/src/audiobookshelf-git/server/libs/nodeCron/background-scheduled-task/daemon.js Dynamic require may fail at run time, because the requested file is unknown at compilation time and not included into executable. Use a string literal as an argument for 'require', or leave it as is and specify the resolved file name in 'scripts' option.

Warning Cannot find module '../crypto/util' from '/home/eric/.cache/pacaur/audiobookshelf-git/src/audiobookshelf-git/server/libs/archiver/archiverUtils/readableStream/internal/streams' in /home/eric/.cache/pacaur/audiobookshelf-git/src/audiobookshelf-git/server/libs/archiver/archiverUtils/readableStream/internal/streams/lazy_transform.js

After installing it refuses to run, trying to run the file itself gives the following error:

Pkg: Error reading from file.

Todoroki commented on 2023-07-06 01:55 (UTC) (edited on 2023-07-06 02:00 (UTC) by Todoroki)

Makepkg fails to resolve tone-bin as a dependency since its technically not a package but a build recipe.

~/build/audiobookshelf-git (git)-[master] % makepkg -si ==> Making package: audiobookshelf-git v2.2.23.r29.g65cf928a-1 (Thu 06 Jul 2023 03:52:26 AM CEST) ==> Checking runtime dependencies... ==> Installing missing dependencies... error: target not found: tone-bin ==> ERROR: 'pacman' failed to install missing dependencies. ==> Missing dependencies: -> tone-bin ==> Checking buildtime dependencies... ==> ERROR: Could not resolve all dependencies.

spiritomb commented on 2023-07-06 01:14 (UTC) (edited on 2023-07-06 01:17 (UTC) by spiritomb)

It successfully built with my system node (20.3.1). It gave the following warning, but everything seems to be working as it should on my server.

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'postcss-nesting@8.0.1',
npm WARN EBADENGINE   required: { node: '12 - 16' },
npm WARN EBADENGINE   current: { node: 'v20.3.1', npm: '8.19.2' }
npm WARN EBADENGINE }

Can you be more specific with what you mean by not being able to include something as a non-optional dependency because of the dependency being an AUR package? I'm the maintainer of the tone-bin AUR package. (Though since it's used by audiobookshelf to embed metadata rather than supplying core server functionality, I agree with keeping it as an optional dependency.)

Todoroki commented on 2023-07-02 21:53 (UTC) (edited on 2023-07-02 21:54 (UTC) by Todoroki)

Sorry everyone, been busy lately so haven't had much of a chance to update this as regularly as I had planned to. Package has been updated to latest version, and all build issues should be sorted. Willing to have someone take over this package if there's interest.

@Code_A - Should be fixed now, I just testing changing the port and adding a new library and it seemed to work as expected.

@spiritomb - It should build fine with nodejs>16 (I'm currently building it with the latest nodejs). Let me know if it still doesn't. Unfortunately I can't use nvm as a build dependency since its an AUR package.

@gilesfun - Same deal as nvm, tone-bin is a AUR package but I did add it as an optional depend.

gilesfun commented on 2023-07-02 16:32 (UTC) (edited on 2023-07-02 16:33 (UTC) by gilesfun)

Please add dependency tone-bin for metadata embedding

spiritomb commented on 2023-06-03 21:04 (UTC) (edited on 2023-06-03 21:05 (UTC) by spiritomb)

Implementing nvm as a build dependency would be helpful, because building fails with nodejs>16. Archwiki refers to the package insomnia as an example of using nvm in the build dependencies so a user doesn't have to manually run nvm use or switch their system-installed node version for building: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=insomnia

Thank you for maintaining this package! It's a great piece of software that's really helped me not lose track of my audiobooks and podcasts.