[Bug]: Permissions issue, even when granted highest possible permissions. #2739

Closed
opened 2026-04-25 00:10:03 +02:00 by adam · 4 comments
Owner

Originally created by @ObscenityIB on GitHub (Apr 29, 2025).

What happened?

Permission denied, even when all possible permission is granted.

stat

  File: /home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b
  Size: 28138331  	Blocks: 54968      IO Block: 4096   regular file
Device: 253,3	Inode: 12846577    Links: 1
Access: (0666/-rw-rw-rw-)  Uid: ( 1000/obscenity)   Gid: ( 1000/obscenity)

getfacl

# file: home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b
# owner: obscenity
# group: obscenity
user::rw-
user:audiobookshelf:rwx		#effective:rw-
group::rw-
mask::rw-
other::rw-

this repeats recursively until reaching outside the 'Libation' directory

What did you expect to happen?

File reads/transcodes as normal and audio is heard.

Steps to reproduce the issue

  1. find /home/obscenity/Documents/Libation/ -type f -exec chmod 00666 {} \;
  2. find /home/obscenity/Documents/Libation/ -type d -exec chmod 00777 {} \;
  3. setfacl -R -d -m u:audiobookshelf:rwx /home/obscenity/Documents/Libation/
  4. Play from client.

Audiobookshelf version

v2.21.0

How are you running audiobookshelf?

Built from source

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

---chrome browser---
Apr 29 15:29:02 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:02.836] INFO: [PlaybackSessionManager] startSession: Closing open session "Thrown to the Wolves: The Big Bad Wolf Series, Book 3 (Unabridged)" for user "Obscenity" (Device: Linux x86_64 / Chrome)
Apr 29 15:29:02 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:02.845] INFO: [STREAM] START STREAM - Num Segments: 5398
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.066] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/output-%d.ts /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/final-output.m3u8
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.067] INFO:
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: [concat @ 0x573ca26bbd40] Impossible to open '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b'
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: [in#0 @ 0x573ca26bba80] Error opening input: Permission denied
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt.
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.160] INFO: Error opening input files: Permission denied
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.165] INFO:
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.166] ERROR: Ffmpeg Err "ffmpeg exited with code 243: Error opening input file /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt.
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: Error opening input files: Permission denied
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: "
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.167] INFO: Closing Stream 9653318f-3727-4fcd-82e1-c41651bb7cd2
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.170] INFO: Deleted session data /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2
Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.219] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist
Apr 29 15:29:04 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:04.416] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist
Apr 29 15:29:06 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:06.516] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist
Apr 29 15:29:10 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:10.616] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist
Apr 29 15:29:13 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:13.738] INFO: [SocketAuthority] Socket zFyLbpyOthAjh3h1AAAD disconnected from client "Obscenity" after 13569ms (Reason: transport close)
---android-app---
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.109] INFO: [PlaybackSessionManager] startSession: Closing open session "Thrown to the Wolves: The Big Bad Wolf Series, Book 3 (Unabridged)" for user "Obscenity" (Device: SM-N960F SDK 29 / v0.9.76-beta)
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.117] INFO: [STREAM] START STREAM - Num Segments: 5398
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.126] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/output-%d.ts /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/final-output.m3u8
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.126] INFO:
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.197] INFO: [concat @ 0x5f04a6c90d40] Impossible to open '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b'
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: [in#0 @ 0x5f04a6c90a80] Error opening input: Permission denied
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt.
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input files: Permission denied
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.201] INFO:
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.201] ERROR: Ffmpeg Err "ffmpeg exited with code 243: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt.
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: Error opening input files: Permission denied
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: "
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.202] INFO: Closing Stream 6e994eaf-93ab-4567-89b2-95be9a0232e3
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.203] INFO: Deleted session data /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.876] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist
Apr 29 15:29:45 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:45.080] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist
Apr 29 15:29:46 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:46.104] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist
Apr 29 15:29:48 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:48.255] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist
Apr 29 15:29:52 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:52.453] INFO: [SocketAuthority] Socket z8gBetzh-eLyLluCAAAF disconnected from client "Obscenity" after 17558ms (Reason: transport close)

Additional Notes

Things used to work fine, but for the past few months I've been unable to use ABS because of this permissions issue, I've been using VLC instead.

Originally, I had issues in Firefox, while the Android app worked fine.

Testing lately, I'm unable to play audio in Firefox, Chrome, or the Android app.

I've seen similar issues and abandoned threads, but nothing specific to this.

Oddly, it also seems it can't even read files/directories completely owned by itself?

Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt.
Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input files: Permission denied
Originally created by @ObscenityIB on GitHub (Apr 29, 2025). ### What happened? Permission denied, even when all possible permission is granted. stat ``` File: /home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b Size: 28138331 Blocks: 54968 IO Block: 4096 regular file Device: 253,3 Inode: 12846577 Links: 1 Access: (0666/-rw-rw-rw-) Uid: ( 1000/obscenity) Gid: ( 1000/obscenity) ``` getfacl ``` # file: home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b # owner: obscenity # group: obscenity user::rw- user:audiobookshelf:rwx #effective:rw- group::rw- mask::rw- other::rw- ``` this repeats recursively until reaching outside the 'Libation' directory ### What did you expect to happen? File reads/transcodes as normal and audio is heard. ### Steps to reproduce the issue 1. `find /home/obscenity/Documents/Libation/ -type f -exec chmod 00666 {} \;` 2. `find /home/obscenity/Documents/Libation/ -type d -exec chmod 00777 {} \;` 3. `setfacl -R -d -m u:audiobookshelf:rwx /home/obscenity/Documents/Libation/` 4. Play from client. ### Audiobookshelf version v2.21.0 ### How are you running audiobookshelf? Built from source ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ---chrome browser--- Apr 29 15:29:02 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:02.836] INFO: [PlaybackSessionManager] startSession: Closing open session "Thrown to the Wolves: The Big Bad Wolf Series, Book 3 (Unabridged)" for user "Obscenity" (Device: Linux x86_64 / Chrome) Apr 29 15:29:02 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:02.845] INFO: [STREAM] START STREAM - Num Segments: 5398 Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.066] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/output-%d.ts /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/final-output.m3u8 Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.067] INFO: Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: [concat @ 0x573ca26bbd40] Impossible to open '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b' Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: [in#0 @ 0x573ca26bba80] Error opening input: Permission denied Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.159] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt. Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.160] INFO: Error opening input files: Permission denied Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.165] INFO: Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.166] ERROR: Ffmpeg Err "ffmpeg exited with code 243: Error opening input file /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2/files.txt. Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: Error opening input files: Permission denied Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: " Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.167] INFO: Closing Stream 9653318f-3727-4fcd-82e1-c41651bb7cd2 Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.170] INFO: Deleted session data /var/lib/audiobookshelf/metadata/streams/9653318f-3727-4fcd-82e1-c41651bb7cd2 Apr 29 15:29:03 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:03.219] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist Apr 29 15:29:04 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:04.416] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist Apr 29 15:29:06 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:06.516] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist Apr 29 15:29:10 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:10.616] ERROR: [HlsRouter] Stream "9653318f-3727-4fcd-82e1-c41651bb7cd2" does not exist Apr 29 15:29:13 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:13.738] INFO: [SocketAuthority] Socket zFyLbpyOthAjh3h1AAAD disconnected from client "Obscenity" after 13569ms (Reason: transport close) ---android-app--- Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.109] INFO: [PlaybackSessionManager] startSession: Closing open session "Thrown to the Wolves: The Big Bad Wolf Series, Book 3 (Unabridged)" for user "Obscenity" (Device: SM-N960F SDK 29 / v0.9.76-beta) Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.117] INFO: [STREAM] START STREAM - Num Segments: 5398 Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.126] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/output-%d.ts /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/final-output.m3u8 Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.126] INFO: Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.197] INFO: [concat @ 0x5f04a6c90d40] Impossible to open '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b' Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: [in#0 @ 0x5f04a6c90a80] Error opening input: Permission denied Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt. Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input files: Permission denied Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.201] INFO: Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.201] ERROR: Ffmpeg Err "ffmpeg exited with code 243: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt. Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: Error opening input files: Permission denied Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: " Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.202] INFO: Closing Stream 6e994eaf-93ab-4567-89b2-95be9a0232e3 Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.203] INFO: Deleted session data /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3 Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.876] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist Apr 29 15:29:45 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:45.080] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist Apr 29 15:29:46 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:46.104] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist Apr 29 15:29:48 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:48.255] ERROR: [HlsRouter] Stream "6e994eaf-93ab-4567-89b2-95be9a0232e3" does not exist Apr 29 15:29:52 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:52.453] INFO: [SocketAuthority] Socket z8gBetzh-eLyLluCAAAF disconnected from client "Obscenity" after 17558ms (Reason: transport close) ``` ### Additional Notes Things used to work fine, but for the past few months I've been unable to use ABS because of this permissions issue, I've been using VLC instead. Originally, I had issues in Firefox, while the Android app worked fine. Testing lately, I'm unable to play audio in Firefox, Chrome, or the Android app. I've seen similar issues and abandoned threads, but nothing specific to this. Oddly, it also seems it can't even read files/directories completely owned by itself? ``` Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input file /var/lib/audiobookshelf/metadata/streams/6e994eaf-93ab-4567-89b2-95be9a0232e3/files.txt. Apr 29 15:29:44 FOXPUP audiobookshelf[168714]: [2025-04-29 15:29:44.198] INFO: Error opening input files: Permission denied ```
adam added the bug label 2026-04-25 00:10:03 +02:00
adam closed this issue 2026-04-25 00:10:03 +02:00
Author
Owner

@Vito0912 commented on GitHub (Apr 29, 2025):

These look somewhat like corrupt files.

ABS is trying to transcode them for your client, even though they are m4b files. ABS only tries to do this if the client does not support the file format. So, unless you have a unique configuration with this file, m4b files should be supported by Chrome and Android.

To check, could you please try playing the file using a basic player? VLC works with almost everything, so it's not the best for troubleshooting.

Also, you can try accessing the file as the audiobookshelf user. Your permissions seem correct, but to completely rule out any permission issues, you should still try this.

@Vito0912 commented on GitHub (Apr 29, 2025): These look somewhat like corrupt files. ABS is trying to transcode them for your client, even though they are m4b files. ABS only tries to do this if the client does not support the file format. So, unless you have a unique configuration with this file, m4b files should be supported by Chrome and Android. To check, could you please try playing the file using a basic player? VLC works with almost everything, so it's not the best for troubleshooting. Also, you can try accessing the file as the audiobookshelf user. Your permissions seem correct, but to completely rule out any permission issues, you should still try this.
Author
Owner

@ObscenityIB commented on GitHub (Apr 29, 2025):

Still has a permissions issue when running from the ABS user.

[audiobookshelf@FOXPUP tmp]$ stat '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b'
stat: cannot statx '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b': Permission denied

VLC works fine from the normal user, even the ffmpeg command ABS is using works fine.

[obscenity@FOXPUP tmp]$ nano files.txt 
[obscenity@FOXPUP tmp]$ ffmpeg -seek_timestamp 1 -f concat -safe 0 -i ./files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename ./output-%d.ts ./final-output.m3u8
[obscenity@FOXPUP tmp]$ ls
files.txt          output-117.ts  output-136.ts  output-155.ts  output-174.ts  output-193.ts  output-211.ts  output-230.ts  output-24.ts   output-269.ts  output-288.ts  output-43.ts  output-62.ts  output-81.ts
final-output.m3u8  output-118.ts  output-137.ts  output-156.ts  output-175.ts  output-194.ts  output-212.ts  output-231.ts  output-250.ts  output-26.ts   output-289.ts  output-44.ts  output-63.ts  output-82.ts
output-0.ts        output-119.ts  output-138.ts  output-157.ts  output-176.ts  output-195.ts  output-213.ts  output-232.ts  output-251.ts  output-270.ts  output-28.ts   output-45.ts  output-64.ts  output-83.ts
output-100.ts      output-11.ts   output-139.ts  output-158.ts  output-177.ts  output-196.ts  output-214.ts  output-233.ts  output-252.ts  output-271.ts  output-290.ts  output-46.ts  output-65.ts  output-84.ts
output-101.ts      output-120.ts  output-13.ts   output-159.ts  output-178.ts  output-197.ts  output-215.ts  output-234.ts  output-253.ts  output-272.ts  output-291.ts  output-47.ts  output-66.ts  output-85.ts
output-102.ts      output-121.ts  output-140.ts  output-15.ts   output-179.ts  output-198.ts  output-216.ts  output-235.ts  output-254.ts  output-273.ts  output-29.ts   output-48.ts  output-67.ts  output-86.ts
output-103.ts      output-122.ts  output-141.ts  output-160.ts  output-17.ts   output-199.ts  output-217.ts  output-236.ts  output-255.ts  output-274.ts  output-2.ts    output-49.ts  output-68.ts  output-87.ts
output-104.ts      output-123.ts  output-142.ts  output-161.ts  output-180.ts  output-19.ts   output-218.ts  output-237.ts  output-256.ts  output-275.ts  output-30.ts   output-4.ts   output-69.ts  output-88.ts
output-105.ts      output-124.ts  output-143.ts  output-162.ts  output-181.ts  output-1.ts    output-219.ts  output-238.ts  output-257.ts  output-276.ts  output-31.ts   output-50.ts  output-6.ts   output-89.ts
output-106.ts      output-125.ts  output-144.ts  output-163.ts  output-182.ts  output-200.ts  output-21.ts   output-239.ts  output-258.ts  output-277.ts  output-32.ts   output-51.ts  output-70.ts  output-8.ts
output-107.ts      output-126.ts  output-145.ts  output-164.ts  output-183.ts  output-201.ts  output-220.ts  output-23.ts   output-259.ts  output-278.ts  output-33.ts   output-52.ts  output-71.ts  output-90.ts
output-108.ts      output-127.ts  output-146.ts  output-165.ts  output-184.ts  output-202.ts  output-221.ts  output-240.ts  output-25.ts   output-279.ts  output-34.ts   output-53.ts  output-72.ts  output-91.ts
output-109.ts      output-128.ts  output-147.ts  output-166.ts  output-185.ts  output-203.ts  output-222.ts  output-241.ts  output-260.ts  output-27.ts   output-35.ts   output-54.ts  output-73.ts  output-92.ts
output-10.ts       output-129.ts  output-148.ts  output-167.ts  output-186.ts  output-204.ts  output-223.ts  output-242.ts  output-261.ts  output-280.ts  output-36.ts   output-55.ts  output-74.ts  output-93.ts
output-110.ts      output-12.ts   output-149.ts  output-168.ts  output-187.ts  output-205.ts  output-224.ts  output-243.ts  output-262.ts  output-281.ts  output-37.ts   output-56.ts  output-75.ts  output-94.ts
output-111.ts      output-130.ts  output-14.ts   output-169.ts  output-188.ts  output-206.ts  output-225.ts  output-244.ts  output-263.ts  output-282.ts  output-38.ts   output-57.ts  output-76.ts  output-95.ts
output-112.ts      output-131.ts  output-150.ts  output-16.ts   output-189.ts  output-207.ts  output-226.ts  output-245.ts  output-264.ts  output-283.ts  output-39.ts   output-58.ts  output-77.ts  output-96.ts
output-113.ts      output-132.ts  output-151.ts  output-170.ts  output-18.ts   output-208.ts  output-227.ts  output-246.ts  output-265.ts  output-284.ts  output-3.ts    output-59.ts  output-78.ts  output-97.ts
output-114.ts      output-133.ts  output-152.ts  output-171.ts  output-190.ts  output-209.ts  output-228.ts  output-247.ts  output-266.ts  output-285.ts  output-40.ts   output-5.ts   output-79.ts  output-98.ts
output-115.ts      output-134.ts  output-153.ts  output-172.ts  output-191.ts  output-20.ts   output-229.ts  output-248.ts  output-267.ts  output-286.ts  output-41.ts   output-60.ts  output-7.ts   output-99.ts
output-116.ts      output-135.ts  output-154.ts  output-173.ts  output-192.ts  output-210.ts  output-22.ts   output-249.ts  output-268.ts  output-287.ts  output-42.ts   output-61.ts  output-80.ts  output-9.ts
[obscenity@FOXPUP tmp]$ vlc final-output.m3u8 
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[0000635d88a55520] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000732b98001190] adaptive demux: Changing stream format Unknown -> TS
[0000732b98c14de0] mpeg4audio packetizer: AAC channels: 2 samplerate: 44100
@ObscenityIB commented on GitHub (Apr 29, 2025): Still has a permissions issue when running from the ABS user. ``` [audiobookshelf@FOXPUP tmp]$ stat '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b' stat: cannot statx '/home/obscenity/Documents/Libation/Books/Thrown to the Wolves [1515941914]/Thrown to the Wolves: The Big Bad Wolf Series, Book 3 [1515941914] - 01 - Chapter 1.m4b': Permission denied ``` VLC works fine from the normal user, even the ffmpeg command ABS is using works fine. ``` [obscenity@FOXPUP tmp]$ nano files.txt [obscenity@FOXPUP tmp]$ ffmpeg -seek_timestamp 1 -f concat -safe 0 -i ./files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename ./output-%d.ts ./final-output.m3u8 [obscenity@FOXPUP tmp]$ ls files.txt output-117.ts output-136.ts output-155.ts output-174.ts output-193.ts output-211.ts output-230.ts output-24.ts output-269.ts output-288.ts output-43.ts output-62.ts output-81.ts final-output.m3u8 output-118.ts output-137.ts output-156.ts output-175.ts output-194.ts output-212.ts output-231.ts output-250.ts output-26.ts output-289.ts output-44.ts output-63.ts output-82.ts output-0.ts output-119.ts output-138.ts output-157.ts output-176.ts output-195.ts output-213.ts output-232.ts output-251.ts output-270.ts output-28.ts output-45.ts output-64.ts output-83.ts output-100.ts output-11.ts output-139.ts output-158.ts output-177.ts output-196.ts output-214.ts output-233.ts output-252.ts output-271.ts output-290.ts output-46.ts output-65.ts output-84.ts output-101.ts output-120.ts output-13.ts output-159.ts output-178.ts output-197.ts output-215.ts output-234.ts output-253.ts output-272.ts output-291.ts output-47.ts output-66.ts output-85.ts output-102.ts output-121.ts output-140.ts output-15.ts output-179.ts output-198.ts output-216.ts output-235.ts output-254.ts output-273.ts output-29.ts output-48.ts output-67.ts output-86.ts output-103.ts output-122.ts output-141.ts output-160.ts output-17.ts output-199.ts output-217.ts output-236.ts output-255.ts output-274.ts output-2.ts output-49.ts output-68.ts output-87.ts output-104.ts output-123.ts output-142.ts output-161.ts output-180.ts output-19.ts output-218.ts output-237.ts output-256.ts output-275.ts output-30.ts output-4.ts output-69.ts output-88.ts output-105.ts output-124.ts output-143.ts output-162.ts output-181.ts output-1.ts output-219.ts output-238.ts output-257.ts output-276.ts output-31.ts output-50.ts output-6.ts output-89.ts output-106.ts output-125.ts output-144.ts output-163.ts output-182.ts output-200.ts output-21.ts output-239.ts output-258.ts output-277.ts output-32.ts output-51.ts output-70.ts output-8.ts output-107.ts output-126.ts output-145.ts output-164.ts output-183.ts output-201.ts output-220.ts output-23.ts output-259.ts output-278.ts output-33.ts output-52.ts output-71.ts output-90.ts output-108.ts output-127.ts output-146.ts output-165.ts output-184.ts output-202.ts output-221.ts output-240.ts output-25.ts output-279.ts output-34.ts output-53.ts output-72.ts output-91.ts output-109.ts output-128.ts output-147.ts output-166.ts output-185.ts output-203.ts output-222.ts output-241.ts output-260.ts output-27.ts output-35.ts output-54.ts output-73.ts output-92.ts output-10.ts output-129.ts output-148.ts output-167.ts output-186.ts output-204.ts output-223.ts output-242.ts output-261.ts output-280.ts output-36.ts output-55.ts output-74.ts output-93.ts output-110.ts output-12.ts output-149.ts output-168.ts output-187.ts output-205.ts output-224.ts output-243.ts output-262.ts output-281.ts output-37.ts output-56.ts output-75.ts output-94.ts output-111.ts output-130.ts output-14.ts output-169.ts output-188.ts output-206.ts output-225.ts output-244.ts output-263.ts output-282.ts output-38.ts output-57.ts output-76.ts output-95.ts output-112.ts output-131.ts output-150.ts output-16.ts output-189.ts output-207.ts output-226.ts output-245.ts output-264.ts output-283.ts output-39.ts output-58.ts output-77.ts output-96.ts output-113.ts output-132.ts output-151.ts output-170.ts output-18.ts output-208.ts output-227.ts output-246.ts output-265.ts output-284.ts output-3.ts output-59.ts output-78.ts output-97.ts output-114.ts output-133.ts output-152.ts output-171.ts output-190.ts output-209.ts output-228.ts output-247.ts output-266.ts output-285.ts output-40.ts output-5.ts output-79.ts output-98.ts output-115.ts output-134.ts output-153.ts output-172.ts output-191.ts output-20.ts output-229.ts output-248.ts output-267.ts output-286.ts output-41.ts output-60.ts output-7.ts output-99.ts output-116.ts output-135.ts output-154.ts output-173.ts output-192.ts output-210.ts output-22.ts output-249.ts output-268.ts output-287.ts output-42.ts output-61.ts output-80.ts output-9.ts [obscenity@FOXPUP tmp]$ vlc final-output.m3u8 VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8) [0000635d88a55520] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0000732b98001190] adaptive demux: Changing stream format Unknown -> TS [0000732b98c14de0] mpeg4audio packetizer: AAC channels: 2 samplerate: 44100 ```
Author
Owner

@Vito0912 commented on GitHub (Apr 29, 2025):

Still has a permissions issue when running from the user.

This is most likely a problem with your configuration and not with ABS. The audiobookshelf user needs to have access to the files.

It is still strange that it tries to transcode them, but that could be because it cannot access the files.

Edit: I just noticed you save your files in /home. The issue is probably with how you have set up permissions. I cannot find the exact source right now, but I am pretty sure that even if the user has permission to access the files, they will not be able to access or see the files if the parent directories do not have the correct permissions.

Edit2: https://apple.stackexchange.com/questions/436775/accessing-file-in-restricted-directory
https://superuser.com/questions/1320569/linux-permission-of-parent-directory-more-restrictive-than-child-is-normal (first comment)

@Vito0912 commented on GitHub (Apr 29, 2025): > Still has a permissions issue when running from the user. This is most likely a problem with your configuration and not with ABS. The audiobookshelf user needs to have access to the files. It is still strange that it tries to transcode them, but that could be because it cannot access the files. Edit: I just noticed you save your files in /home. The issue is probably with how you have set up permissions. I cannot find the exact source right now, but I am pretty sure that even if the user has permission to access the files, they will not be able to access or see the files if the parent directories do not have the correct permissions. Edit2: <https://apple.stackexchange.com/questions/436775/accessing-file-in-restricted-directory> <https://superuser.com/questions/1320569/linux-permission-of-parent-directory-more-restrictive-than-child-is-normal> (first comment)
Author
Owner

@ObscenityIB commented on GitHub (Apr 29, 2025):

My home partition is the largest, so that's where everything is.

I edited the library location to /home/shared/Books owned by root:books and added both users to the books group.

ABS decided that changing a library path is cause for erasing all data, without prompting, so I'll have to go through and put everything back how it was.

But hey, it works now, thanks for helping me get there, much appreciated.

@ObscenityIB commented on GitHub (Apr 29, 2025): My home partition is the largest, so that's where everything is. I edited the library location to `/home/shared/Books` owned by `root:books` and added both users to the `books` group. ABS decided that changing a library path is cause for erasing all data, without prompting, so I'll have to go through and put everything back how it was. But hey, it works now, thanks for helping me get there, much appreciated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2739