[Bug]: Crashing instantly when scan is triggered #1347

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

Originally created by @SeanOMik on GitHub (Sep 5, 2023).

Describe the issue

I'm running audiobookshelf in k3s/kubernetes. Just browsing the site causes the audiobookshelf server, and webui, to crash. There's no errors in the log:

Config /config /metadata
[2023-09-04 22:52:38] INFO: === Starting Server ===
[2023-09-04 22:52:38] INFO: [Server] Init v2.3.3
[2023-09-04 22:52:38] INFO: [Database] Initializing db at "/config/absdatabase.sqlite"
[2023-09-04 22:52:38] INFO: [Database] Db connection was successful
[2023-09-04 22:52:38] INFO: [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, colle
ctionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting
[2023-09-04 22:52:38] INFO: [Database] Loading db data...
[2023-09-04 22:52:38] INFO: [LibraryItem] Loading podcast episodes...
[2023-09-04 22:52:38] INFO: [LibraryItem] Finished loading 0 podcast episodes in 0.00s
[2023-09-04 22:52:38] INFO: [LibraryItem] Loading library items...
[2023-09-04 22:52:38] INFO: [LibraryItem] Finished loading 0 library items in 0.02s
[2023-09-04 22:52:38] INFO: [Database] Loaded 0 library items
[2023-09-04 22:52:38] INFO: [Database] Loaded 2 users
[2023-09-04 22:52:38] INFO: [Database] Loaded 1 libraries
[2023-09-04 22:52:38] INFO: [Database] Loaded 0 collections
[2023-09-04 22:52:38] INFO: [Database] Loaded 0 playlists
[2023-09-04 22:52:38] INFO: [Database] Loaded 0 authors
[2023-09-04 22:52:38] INFO: [Database] Loaded 0 series
[2023-09-04 22:52:38] INFO: [Database] Db data loaded in 0.06s
[2023-09-04 22:52:38] INFO: [BackupManager] 0 Backups Found
[2023-09-04 22:52:38] INFO: [BackupManager] Auto Backups are disabled
[2023-09-04 22:52:38] INFO: [LogManager] Init current daily log filename: 2023-09-04.txt
[2023-09-04 22:52:38] INFO: [Watcher] Initializing watcher for "Audiobooks".
[2023-09-04 22:52:38] INFO: Listening on port :80
[2023-09-04 22:52:38] INFO: [Watcher] "Audiobooks" Ready
[2023-09-04 22:53:14] INFO: [Server] Socket Connected K4cC0zVDrYZmx3wUAAAB
[2023-09-04 22:53:44] DEBUG: Set Log Level to DEBUG (Logger.js:87)
[2023-09-04 22:53:53] INFO: [Server] Socket Connected A0yKWKCi8ANq0_V5AAAD
[2023-09-04 22:53:53] DEBUG: [Server] User Online admin (SocketAuthority.js:162)
[2023-09-04 22:53:55] INFO: [Scanner] Starting library scan 1be942cd-c7a7-408f-8d6b-181555cb6ee6 for Audiobooks

Steps to reproduce the issue

  1. Setup the server and create a library for books
  2. Provide the server with books
  3. Sync the library

Audiobookshelf version

v2.3.3

How are you running audiobookshelf?

Kubernetes/k3s

Originally created by @SeanOMik on GitHub (Sep 5, 2023). ### Describe the issue I'm running audiobookshelf in k3s/kubernetes. Just browsing the site causes the audiobookshelf server, and webui, to crash. There's no errors in the log: ``` Config /config /metadata [2023-09-04 22:52:38] INFO: === Starting Server === [2023-09-04 22:52:38] INFO: [Server] Init v2.3.3 [2023-09-04 22:52:38] INFO: [Database] Initializing db at "/config/absdatabase.sqlite" [2023-09-04 22:52:38] INFO: [Database] Db connection was successful [2023-09-04 22:52:38] INFO: [Database] Db initialized with models: user, library, libraryFolder, book, podcast, podcastEpisode, libraryItem, mediaProgress, series, bookSeries, author, bookAuthor, collection, colle ctionBook, playlist, playlistMediaItem, device, playbackSession, feed, feedEpisode, setting [2023-09-04 22:52:38] INFO: [Database] Loading db data... [2023-09-04 22:52:38] INFO: [LibraryItem] Loading podcast episodes... [2023-09-04 22:52:38] INFO: [LibraryItem] Finished loading 0 podcast episodes in 0.00s [2023-09-04 22:52:38] INFO: [LibraryItem] Loading library items... [2023-09-04 22:52:38] INFO: [LibraryItem] Finished loading 0 library items in 0.02s [2023-09-04 22:52:38] INFO: [Database] Loaded 0 library items [2023-09-04 22:52:38] INFO: [Database] Loaded 2 users [2023-09-04 22:52:38] INFO: [Database] Loaded 1 libraries [2023-09-04 22:52:38] INFO: [Database] Loaded 0 collections [2023-09-04 22:52:38] INFO: [Database] Loaded 0 playlists [2023-09-04 22:52:38] INFO: [Database] Loaded 0 authors [2023-09-04 22:52:38] INFO: [Database] Loaded 0 series [2023-09-04 22:52:38] INFO: [Database] Db data loaded in 0.06s [2023-09-04 22:52:38] INFO: [BackupManager] 0 Backups Found [2023-09-04 22:52:38] INFO: [BackupManager] Auto Backups are disabled [2023-09-04 22:52:38] INFO: [LogManager] Init current daily log filename: 2023-09-04.txt [2023-09-04 22:52:38] INFO: [Watcher] Initializing watcher for "Audiobooks". [2023-09-04 22:52:38] INFO: Listening on port :80 [2023-09-04 22:52:38] INFO: [Watcher] "Audiobooks" Ready [2023-09-04 22:53:14] INFO: [Server] Socket Connected K4cC0zVDrYZmx3wUAAAB [2023-09-04 22:53:44] DEBUG: Set Log Level to DEBUG (Logger.js:87) [2023-09-04 22:53:53] INFO: [Server] Socket Connected A0yKWKCi8ANq0_V5AAAD [2023-09-04 22:53:53] DEBUG: [Server] User Online admin (SocketAuthority.js:162) [2023-09-04 22:53:55] INFO: [Scanner] Starting library scan 1be942cd-c7a7-408f-8d6b-181555cb6ee6 for Audiobooks ``` ### Steps to reproduce the issue 1. Setup the server and create a library for books 2. Provide the server with books 3. Sync the library ### Audiobookshelf version v2.3.3 ### How are you running audiobookshelf? Kubernetes/k3s
adam added the bug label 2026-04-24 23:40:46 +02:00
adam closed this issue 2026-04-24 23:40:47 +02:00
Author
Owner

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

I had memory limits set on the audiobookshelf pod and when scanning it would hit the limit and crash. I removed the limits and its fixed.

@SeanOMik commented on GitHub (Sep 9, 2023): I had memory limits set on the audiobookshelf pod and when scanning it would hit the limit and crash. I removed the limits and its fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1347