mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: Docker image crashing during both scan or re-scan #354
Closed
opened 2026-04-24 23:05:45 +02:00 by adam
·
16 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#354
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 @77boaz on GitHub (May 12, 2022).
Describe the issue
Docker image crashes during scan or re-scan. This has been an issue for me since version 2.0.11 when someone else reported it.

tail -30 config.v2.json
{"StreamConfig":{},"State":{"Running":true,"Paused":false,"Restarting":false,"OOMKilled":false,"RemovalInProgress":false,"Dead":false,"Pid":14466,"ExitCode":0,"Error":"","StartedAt":"2022-05-12T20:44:13.365047464Z","FinishedAt":"0001-01-01T00:00:00Z","Health":null},"ID":"5b00d7ac540014d8f5fe333bdd9cff7f24515fcdc0a0b525ba39f57521e4c5a4","Created":"2022-05-12T20:44:12.163670522Z","Managed":false,"Path":"docker-entrypoint.sh","Args":["npm","start"],"Config":{"Hostname":"5b00d7ac5400","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:a53fd73f9a2cba8e5f07db999147ff5437c3ea3ac96a61e5a8187778e2de4d37","NetworkSettings":{"Bridge":"","SandboxID":"a40e57475fac8d87742449dac001fab4bacb73af536fff2813d6013add687fbc","HairpinMode":false,"LinkLocalIPv6Address":"","LinkLocalIPv6PrefixLen":0,"Networks":{"bridge":{"IPAMConfig":null,"Links":null,"Aliases":null,"NetworkID":"7c2e93959e3ec7ee770639b19b0dafaa765a89d10155b50b4bb48c71fd683348","EndpointID":"b94a3cca7c07bc969ae42d63f0618fd87a0614c9b642f1b6cd5659b5f28ffb79","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/a40e57475fac","SecondaryIPAddresses":null,"SecondaryIPv6Addresses":null,"IsAnonymousEndpoint":false,"HasSwarmEndpoint":false},"LogPath":"","Name":"/audiobookshelf","Driver":"overlay2","OS":"linux","MountLabel":"system_u:object_r:container_file_t:s0:c2,c902","ProcessLabel":"system_u:system_r:container_t:s0:c2,c902","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/5b00d7ac540014d8f5fe333bdd9cff7f24515fcdc0a0b525ba39f57521e4c5a4/hostname","HostsPath":"/var/lib/docker/containers/5b00d7ac540014d8f5fe333bdd9cff7f24515fcdc0a0b525ba39f57521e4c5a4/hosts","ShmPath":"","ResolvConfPath":"/var/lib/docker/containers/5b00d7ac540014d8f5fe333bdd9cff7f24515fcdc0a0b525ba39f57521e4c5a4/resolv.conf","SeccompProfile":"","NoNewPrivileges":false,"LocalLogCacheMeta":{"HaveNotifyEnabled":true}}
tail -30 hostconfig.json
{"Binds":["/data/audiobookshelf/metadata:/metadata","/data/audiobookshelf/audiobooks:/audiobooks","/data/audiobookshelf/config:/config"],"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"]}
Steps to reproduce the issue
Audiobookshelf version
v2.0.13
How are you running audiobookshelf?
Docker
@advplyr commented on GitHub (May 13, 2022):
We need the logs leading up to the crash
@77boaz commented on GitHub (May 13, 2022):
I blew away all of the logs just to make sure it's fresh... Started the server.. then immediately went to do a re-scan. This is what I found in the daily log. Let me know if you need anything else? Thanks!
@advplyr commented on GitHub (May 13, 2022):
Unfortunately none of these show what the error was. I'm not sure what to suggest except for maybe starting with a fresh database and maybe there was some corrupt database file.
@77boaz commented on GitHub (May 13, 2022):
Yah ugh.. I will try that..Maybe it is in fact remedied but I just need to start anew.. I'll give that a shot Thanks!
@77boaz commented on GitHub (May 13, 2022):
Unfortunately it did the same thing.. the log doesn't look too different. Just in case it matters I'm running on fedora. Also, I wouldn't think it would matter, but I have some super large audiobooks. The Old Testament is 900 some tracks.. lol. Maybe I will try to remove a few and re-scan just to see/troubleshoot Thanks!
@advplyr commented on GitHub (May 13, 2022):
Yeah I think you need to isolate whichever one is causing the crash.
@77boaz commented on GitHub (May 13, 2022):
I'm in the process of removing chunks of types of audiobooks but so far to no avail. Would running docker as root mess things up potentially? I'm pretty new at using docker. Also a question. Is there any chance in the future of creating an appimage? Thanks!
@77boaz commented on GitHub (May 13, 2022):
Ok I'm not sure else what to do.. I removed every book down to nothing with re-scans in between and it crashes around 20-30 seconds no matter what.. :( I'm still poking around but am kinda at a loss unless it's just the docker version or my OS..
@advplyr commented on GitHub (May 13, 2022):
The scanner crashes with no books?
@77boaz commented on GitHub (May 13, 2022):
Actually I didn't go down to complete nothing. :) I can try nothing I suppose :)
@77boaz commented on GitHub (May 13, 2022):
It completes when down to nothing. I also noticed it will automatically populate without my intervention if I copied a couple books over which is cool! Interesting.. It did say socket disconnected shortly after
@advplyr commented on GitHub (May 13, 2022):
Is your media sitting on the same server as the docker container?
It seems like you may be using a remote file system.
@77boaz commented on GitHub (May 13, 2022):
Yes it is, although it is on a samba share if that could be an issue... I can try moving it out of that.. It's basically a samba share with music to share off to windows mac whatever.. It is also interesting.. if I move all of the books back it looks like it's auto-finding them no problem so far.. Only when I initiate the scan it dies anyways hope this info helps! Thanks!
@advplyr commented on GitHub (May 13, 2022):
Remote file systems cause a lot of issues
@77boaz commented on GitHub (May 13, 2022):
So I disabled smb (samba) and still the same.. the only other difference is they are on different drives.. partitions.. When I have time I will try it on a completely different vm I have in a cloud.. Just to troubleshoot hrmm
@77boaz commented on GitHub (May 13, 2022):
Ok.. There were packages missing and or I guess older versions of docker in fedora.. so I went with podman. Now everything is updating.. I do get intermittent socket disconnected while it's updating but that could be due to this slow server - I hope to upgrade soon! It looks like it's all good! Sorry if this was any waste of time and thanks again! Sweet server/app :-)