mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: docker died if I start a simple re-scan of the library #339
Closed
opened 2026-04-24 23:05:15 +02:00 by adam
·
17 comments
No Branch/Tag Specified
master
book_tags_genres_dedupe
episode_download_fallback
Issue-4540-SortBy-StartedDate-and-FinishedDate
episode_meta_tagging
fix_authorize_race_condition
redirect_transcode_requests
progress_updated_sort
fix_ereader_socket_event
fix_change_empty_root_password
fix_podcast_session_track_index
fix_set_token
session_modal_user
localize_durations
fix_oidc_create_user
jwt_auth_refactor
fix_scanner_deleting_single_file_books
fix_mediaprogress_updatedat_2
experimental_next_client
podcast_episode_duration
episode-timestamps-clickable
book_author_secondary_sort_title
podcast_useragents
pathexists_user_access
fix_pathexists_join
book_author_secondary_sort
clean_duplicate_mediaprogress
sanitize_html_description
trix_prevent_attachments
check_path_api_fix
fix_mediaprogress_updatedat
increase_express_json_limit
fix_dockerfile_nunicode
search_episodes
audiobook_tools_update
episode_secondary_sorts
hls_stream_url_update
new_session_track_endpoint
audiobook_tools_enhancements
watcher_rescans_update
player_track_tooltip
fix_exclude_prefixes_crash
socket_item_events
fix_podcast_episode_scanner_promise
new_stats_controller
count_cache_for_userpermissions
parsing-opf-v3
validate_migration_files
fix-quick-match-all-crash
fix-chapter-end-sleep-timer
stringify_sequelize_query
remove-col-ambiguity
fix_next_prev_edit_description
details_trim_whitespace
fix_content_url_basepath
fix_logger_fatal
progress_bar_visibility
batch-edit-populate-map-details
feed_generator_updates
bookmark-modal-updates
migrate-library-item-in-scanner
migrate-new-library-items
migrate-podcasts-new-library-item-2
migrate-podcasts-new-library-item
fix-remove-episode-from-playlist
playback-session-use-new-library-item
refactor-library-item
fix-heatmap-caption
feed-episodes-upsert
share-media-player-media-session-api
remove-old-playlist
remove_old_collection_object
plugin-implementation-demo
feed_migration
refactor-feeds-from-item
fix_remove_authors_no_books
v2.17.3-fk-constraints-migration
migrations-first-upgrade
sqlite_2
feature/nuxt-target-server
waveform
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1
v1.3.4
v1.3.3
v1.3.1
v1.2.8
v1.2.6
v1.2.5
v1.2.4
v1.2.1
v1.1.15
v1.1.14
v1.1.13
v1.1.12
v1.1.11
v1.1.10
v1.1.9
v1.1.8
v1.0.0
0.9.61-beta.0
0.9.61-beta
Labels
Clear labels
authentication
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
pull-request
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
Mirrored from GitHub Pull Request
No Label
bug
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
adam (Adam Melkus)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/audiobookshelf#339
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @szemlicka on GitHub (May 5, 2022).
Describe the issue
When I start a rescan of my library, at one point the docker container died. At the terminal I can see before it died a lot of messages like
[2022-05-05T14:43:38.955Z] DEBUG: [LibraryItem] Success saving abmetadata to "/audiobooks/books/files/Robert A. Heinlein/Revolte auf Luna/metadata.abs"This is the latest messages that I can find before it died
2```
@szemlicka commented on GitHub (May 6, 2022):
At the moment it is useless for me. I cannot add new audiobooks. every scan end up in a crashed container.
@77boaz commented on GitHub (May 7, 2022):
I 2nd this bug. It crashes the docker container if running docker. It did manage to scan a few books.. but it won't complete.
@szemlicka commented on GitHub (May 8, 2022):
After I purge the DB and start from fresh, it reslove the problem. So there was something with the DB.
@77boaz commented on GitHub (May 8, 2022):
Interesting... So I set it up on a new fresh install and it just crashed. I keep trying and can't scan my entire library only parts, because it keeps dying..
@advplyr commented on GitHub (May 8, 2022):
Are there any error logs you can provide?
@77boaz commented on GitHub (May 8, 2022):
Sure where are the best logs located? I only see the ones in the GUI..
@advplyr commented on GitHub (May 8, 2022):
If your server is crashing the best place to get logs is from the docker container.
Abs stores its own logs in /metadata/logs/daily and we could use that to at least see what happened leading up to the crash
@77boaz commented on GitHub (May 8, 2022):
Duh.. I should have known that.. Attached the two files it made. This was on a separate installation brand new from the most recent docker version.. Thanks!
daily.tar.gz
.
@advplyr commented on GitHub (May 8, 2022):
The logs are going to need to be put in here directly so that a download isn't necessary. The only useful part is going to be the last ~30 lines or so before the crash.
@77boaz commented on GitHub (May 8, 2022):
Sorry.. Here's directly..
{"timestamp":"2022-05-06T22:55:37.837Z","message":"[BackupManager] Auto Backups are disabled","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:55:37.843Z","message":"[LogManager] Init current daily log filename: 2022-05-06.txt","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:55:37.852Z","message":"[Watcher] Initializing watcher for "Main".","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:55:37.893Z","message":"Listening on http://0.0.0.0:80","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:55:39.484Z","message":"[Watcher] "Main" Ready","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:55:45.238Z","message":"[Server] Socket Connected vDUDDzeQk4udP5q7AAAB","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:57:24.565Z","message":"[Scanner] Starting library scan lscan_ljcmz8udxm8armw8kk for Main","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.540Z","message":"=== Starting Server ===","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.541Z","message":"[Server] Init v2.0.11","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.592Z","message":"[DB] 0 Collections Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.593Z","message":"[DB] 0 Series Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.733Z","message":"[DB] 1 Libraries Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.737Z","message":"[DB] 10 Authors Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.744Z","message":"[DB] 9 Library Items Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.746Z","message":"[DB] 1 Users Loaded","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.747Z","message":"[Db] Root user exists, pw: false","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.751Z","message":"[BackupManager] 0 Backups Found","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.752Z","message":"[BackupManager] Auto Backups are disabled","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.757Z","message":"[LogManager] Init current daily log filename: 2022-05-06.txt","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.766Z","message":"[Watcher] Initializing watcher for "Main".","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:32.800Z","message":"Listening on http://0.0.0.0:80","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:34.368Z","message":"[Watcher] "Main" Ready","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:35.688Z","message":"[Server] Socket Connected hUEtsOYwTU1WhvLuAAAB","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:58:55.272Z","message":"[Server] Socket hUEtsOYwTU1WhvLuAAAB disconnected from client "root" after 19586ms","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T22:59:42.493Z","message":"[Server] Socket Connected YvasxF-sUwI9ziVNAAAD","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T23:00:59.505Z","message":"[Server] Socket YvasxF-sUwI9ziVNAAAD disconnected from client "root" after 77011ms","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T23:01:07.840Z","message":"[Server] Socket Connected BUl9K3x3R_R84gH7AAAF","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T23:05:23.615Z","message":"[Server] Socket BUl9K3x3R_R84gH7AAAF disconnected from client "root" after 255777ms","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T23:05:24.499Z","message":"[Server] Socket Connected 1HCNVRSzX8yUwg6XAAAH","levelName":"INFO","level":2}
{"timestamp":"2022-05-06T23:05:25.614Z","message":"[Server] Socket 1HCNVRSzX8yUwg6XAAAH disconnected from client "root" after 1117ms","levelName":"INFO","level":2}
@advplyr commented on GitHub (May 8, 2022):
Unfortunately the internal logs aren't providing anything useful. We would need to look at the docker container logs.
@77boaz commented on GitHub (May 8, 2022):
config.v2.json
{"StreamConfig":{},"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"RemovalInProgress":false,"Dead":false,"Pid":19369,"ExitCode":0,"Error":"","StartedAt":"2022-05-07T21:00:08.489497849Z","FinishedAt":"0001-01-01T00:00:00Z","Health":null},"ID":"a22dc00304cefaf362ab72f97780eb9b0eb15ecd38a9922302ba60680920c6cf","Created":"2022-05-07T21:00:06.704960826Z","Managed":false,"Path":"docker-entrypoint.sh","Args":["npm","start"],"Config":{"Hostname":"a22dc00304ce","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"ExposedPorts":{"80/tcp":{}},"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["AUDIOBOOKSHELF_UID=99","AUDIOBOOKSHELF_GID=100","PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","NODE_VERSION=16.15.0","YARN_VERSION=1.22.18","NODE_ENV=production"],"Cmd":["npm","start"],"Image":"ghcr.io/advplyr/audiobookshelf","Volumes":null,"WorkingDir":"","Entrypoint":["docker-entrypoint.sh"],"OnBuild":null,"Labels":{}},"Image":"sha256:a9f1645e7e77c602971a22efc390a86be856d237dcf5a0d519f83a5839cf5b89","NetworkSettings":{"Bridge":"","SandboxID":"bc8f345742e54cd2ea134a207eec8fa91f9f99217de5070f2bc2af560073458b","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"aa7e2656c0d1efe8eefdd7c84a33b8fc6263307c4dc21568fb80e6e43fc570c7","EndpointID":"8050baae2e7de2c5d32b7daeafdce0f80fb214a66d0c8050857e6efcf499c207","Gateway":"172.17.0.1","IPAddress":"172.17.0.2","IPPrefixLen":16,"IPv6Gateway":"","GlobalIPv6Address":"","GlobalIPv6PrefixLen":0,"MacAddress":"02:42:ac:11:00:02","DriverOpts":null,"IPAMOperational":false}},"Service":null,"Ports":{"80/tcp":[{"HostIp":"0.0.0.0","HostPort":"13378"},{"HostIp":"::","HostPort":"13378"}]},"SandboxKey":"/var/run/docker/netns/bc8f345742e5","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"IsAnonymousEndpoint":false,"HasSwarmEndpoint":false},"LogPath":"","Name":"/audiobookshelf","Driver":"overlay2","OS":"linux","MountLabel":"system_u:object_r:container_file_t:s0:c74,c578","ProcessLabel":"system_u:system_r:container_t:s0:c74,c578","RestartCount":0,"HasBeenStartedBefore":true,"HasBeenManuallyStopped":false,"MountPoints":{"/audiobooks":{"Source":"/data/audiobookshelf/audiobooks","Destination":"/audiobooks","RW":true,"Name":"","Driver":"","Type":"bind","Propagation":"rprivate","Spec":{"Type":"bind","Source":"/data/audiobookshelf/audiobooks","Target":"/audiobooks"},"SkipMountpointCreation":false},"/config":{"Source":"/data/audiobookshelf/config","Destination":"/config","RW":true,"Name":"","Driver":"","Type":"bind","Propagation":"rprivate","Spec":{"Type":"bind","Source":"/data/audiobookshelf/config","Target":"/config"},"SkipMountpointCreation":false},"/metadata":{"Source":"/data/audiobookshelf/metadata","Destination":"/metadata","RW":true,"Name":"","Driver":"","Type":"bind","Propagation":"rprivate","Spec":{"Type":"bind","Source":"/data/audiobookshelf/metadata","Target":"/metadata"},"SkipMountpointCreation":false}},"SecretReferences":null,"ConfigReferences":null,"AppArmorProfile":"","HostnamePath":"/var/lib/docker/containers/a22dc00304cefaf362ab72f97780eb9b0eb15ecd38a9922302ba60680920c6cf/hostname","HostsPath":"/var/lib/docker/containers/a22dc00304cefaf362ab72f97780eb9b0eb15ecd38a9922302ba60680920c6cf/hosts","ShmPath":"","ResolvConfPath":"/var/lib/docker/containers/a22dc00304cefaf362ab72f97780eb9b0eb15ecd38a9922302ba60680920c6cf/resolv.conf","SeccompProfile":"","NoNewPrivileges":false,"LocalLogCacheMeta":{"HaveNotifyEnabled":true}}
hostconfig.json
{"Binds":["/data/audiobookshelf/audiobooks:/audiobooks","/data/audiobookshelf/config:/config","/data/audiobookshelf/metadata:/metadata"],"ContainerIDFile":"","LogConfig":{"Type":"journald","Config":{}},"NetworkMode":"default","PortBindings":{"80/tcp":[{"HostIp":"","HostPort":"13378"}]},"RestartPolicy":{"Name":"no","MaximumRetryCount":0},"AutoRemove":true,"VolumeDriver":"","VolumesFrom":null,"CapAdd":null,"CapDrop":null,"CgroupnsMode":"private","Dns":[],"DnsOptions":[],"DnsSearch":[],"ExtraHosts":null,"GroupAdd":null,"IpcMode":"private","Cgroup":"","Links":null,"OomScoreAdj":0,"PidMode":"","Privileged":false,"PublishAllPorts":false,"ReadonlyRootfs":false,"SecurityOpt":null,"UTSMode":"","UsernsMode":"","ShmSize":67108864,"Runtime":"runc","ConsoleSize":[0,0],"Isolation":"","CpuShares":0,"Memory":0,"NanoCpus":0,"CgroupParent":"","BlkioWeight":0,"BlkioWeightDevice":[],"BlkioDeviceReadBps":null,"BlkioDeviceWriteBps":null,"BlkioDeviceReadIOps":null,"BlkioDeviceWriteIOps":null,"CpuPeriod":0,"CpuQuota":0,"CpuRealtimePeriod":0,"CpuRealtimeRuntime":0,"CpusetCpus":"","CpusetMems":"","Devices":[],"DeviceCgroupRules":null,"DeviceRequests":null,"KernelMemory":0,"KernelMemoryTCP":0,"MemoryReservation":0,"MemorySwap":0,"MemorySwappiness":null,"OomKillDisable":null,"PidsLimit":null,"Ulimits":null,"CpuCount":0,"CpuPercent":0,"IOMaximumIOps":0,"IOMaximumBandwidth":0,"MaskedPaths":["/proc/asound","/proc/acpi","/proc/kcore","/proc/keys","/proc/latency_stats","/proc/timer_list","/proc/timer_stats","/proc/sched_debug","/proc/scsi","/sys/firmware"],"ReadonlyPaths":["/proc/bus","/proc/fs","/proc/irq","/proc/sys","/proc/sysrq-trigger"]}
@szemlicka commented on GitHub (May 9, 2022):
Hi, server crashed again. Looks like there is a general problem. Last log line was :
<html>@szemlicka commented on GitHub (May 10, 2022):
Fixed with v2.0.12
@szemlicka commented on GitHub (May 10, 2022):
Fixed with v2.0.12
@77boaz commented on GitHub (May 10, 2022):
This seems to still be happening to me in the latest docker version... It could be just me though... I will reinstall later to verify..
@datagutten commented on GitHub (May 21, 2022):
I got the same issue after adding a specific book. The book had some text in the "composer" id3 field, after removing that I was able to run a scan without problems.