Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove chmod of log directory on startup #2057

Closed
skellycode opened this issue Sep 6, 2023 · 1 comment
Closed

Remove chmod of log directory on startup #2057

skellycode opened this issue Sep 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@skellycode
Copy link

Describe the issue

When running ABS as a docker container, a chmod command is run on the log directory aand its contents /metadata/logs. Chmod is incompatible with Restricted Permissions NFSv4 datasets, and therefore causes ABS to fail to boot. Suggest removing the chmod command.

audiobookshelf       | Config /config /metadata
audiobookshelf       | [2023-09-06 13:24:36] INFO: === Starting Server ===
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Server] Init v2.3.3
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Db connection was successful
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, collectionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loading db data...
audiobookshelf       | [2023-09-06 13:24:36] INFO: [LibraryItem] Loading podcast episodes...
audiobookshelf       | [2023-09-06 13:24:36] INFO: [LibraryItem] Finished loading 200 podcast episodes in 0.02s
audiobookshelf       | [2023-09-06 13:24:36] INFO: [LibraryItem] Loading library items...
audiobookshelf       | [2023-09-06 13:24:36] INFO: [LibraryItem] Finished loading 121 library items in 0.09s
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 121 library items
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 4 users
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 2 libraries
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 0 collections
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 0 playlists
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 25 authors
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Loaded 22 series
audiobookshelf       | [2023-09-06 13:24:36] INFO: [Database] Db data loaded in 0.16s
audiobookshelf       | [2023-09-06 13:24:36] INFO: [BackupManager] 0 Backups Found
audiobookshelf       | [2023-09-06 13:24:36] INFO: [BackupManager] Auto Backups are disabled
audiobookshelf       | node:internal/process/promises:279
audiobookshelf       |             triggerUncaughtException(err, true /* fromPromise */);
audiobookshelf       |             ^
audiobookshelf       |
audiobookshelf       | [Error: EPERM: operation not permitted, chmod '/metadata/logs/daily/2023-08-31.txt'] {
audiobookshelf       |   errno: -1,
audiobookshelf       |   code: 'EPERM',
audiobookshelf       |   syscall: 'chmod',
audiobookshelf       |   path: '/metadata/logs/daily/2023-08-31.txt'
audiobookshelf       | }
audiobookshelf exited with code 1

Steps to reproduce the issue

Run ABS as a docker container with bind mount as a Restricted NFSv4 dataset.

Audiobookshelf version

2.3.3

How are you running audiobookshelf?

Docker

@skellycode skellycode added the bug Something isn't working label Sep 6, 2023
@advplyr advplyr added the awaiting release Issue is resolved and will be in the next release label Sep 6, 2023
@skellycode
Copy link
Author

Confirmed v2.4.0 resolves this. Thank you! 😃

@advplyr advplyr removed the awaiting release Issue is resolved and will be in the next release label Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants