Remove chmod of log directory on startup #1349

Closed
opened 2026-04-24 23:40:49 +02:00 by adam · 1 comment
Owner

Originally created by @skellycode on GitHub (Sep 6, 2023).

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

Originally created by @skellycode on GitHub (Sep 6, 2023). ### 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
adam added the bug label 2026-04-24 23:40:49 +02:00
adam closed this issue 2026-04-24 23:40:49 +02:00
Author
Owner

@skellycode commented on GitHub (Sep 9, 2023):

Confirmed v2.4.0 resolves this. Thank you! 😃

@skellycode commented on GitHub (Sep 9, 2023): Confirmed v2.4.0 resolves this. Thank you! 😃
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1349