mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: The server stops running after a few minutes of startup. #2171
Closed
opened 2026-04-25 00:04:36 +02:00 by adam
·
9 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#2171
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 @shanyan-wcx on GitHub (Aug 10, 2024).
What happened?
The server stops running after a few minutes of startup. It doesn't always happen, but once it does, it will happen continuously
What did you expect to happen?
Server runs stably.
Steps to reproduce the issue
Audiobookshelf version
v2.12.3
How are you running audiobookshelf?
Docker
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?
Edge
Logs
Additional Notes
No response
@nichwall commented on GitHub (Aug 10, 2024):
Is there anything in
crash_logs.txt?@shanyan-wcx commented on GitHub (Aug 11, 2024):
{"timestamp":"2024-08-10 21:38:53.752","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 21:38:53.753","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 21:48:27.974","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 21:48:27.975","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:02:51.743","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:02:51.743","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:08:22.801","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:33:58.003","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:33:58.004","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:49:41.844","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:52:49.426","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-10 22:52:49.427","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
{"timestamp":"2024-08-11 09:24:25.216","source":"Server.js:170","message":"[Server] Unhandled rejection: TypeError: Cannot use 'in' operator to search for 'readable' in null, promise: Promise {\n TypeError: Cannot use 'in' operator to search for 'readable' in null\n at new FfmpegCommand (/server/libs/fluentFfmpeg/index.js:44:49)\n at FfmpegCommand (/server/libs/fluentFfmpeg/index.js:39:12)\n at /server/utils/ffmpegHelpers.js:81:18\n at new Promise ()\n at resizeImage (/server/utils/ffmpegHelpers.js:79:10)\n at CacheManager.handleAuthorCache (/server/managers/CacheManager.js:154:29)\n}","levelName":"FATAL","level":5}
@shanyan-wcx commented on GitHub (Aug 11, 2024):
After my testing, I found that when I call the Get an Author's Image API, if there is no image, it will cause the server to crash.
@shanyan-wcx commented on GitHub (Aug 11, 2024):
If there is no image, it will not return a 404
@hoggatt commented on GitHub (Aug 12, 2024):
I'm experiencing the same behavior, somewhat intermittently
@CraigMThomas commented on GitHub (Aug 12, 2024):
I seem to be getting something similar. After updating from v2.11.0 to v2.12.3 and trying to run a library scan, the page will appear to freeze, and I can observe the following logs over and over. Downgrading to v2.11.0 again does not resolve this issue.
The restart loop occurs when I connect a new client or switch between library and home a few times.
@CraigMThomas commented on GitHub (Aug 12, 2024):
If I get to the libraries configuration page and try to scan this shows for any new items
Instead of Scan I have now selected Match files. which appears to be cycling through all existing books in the library and downloading images. I'll leave that to run while I sleep and see if it clears anything up, but not holding my breath.
@mikiher commented on GitHub (Aug 20, 2024):
There's maybe a dipper issue here, but the crash is easy to reproduce.
/api/authors/{authorid}/image?token={token})Our web interface actually checks if the author has an image when creating the
<img>tag (inAuthorImage.vue):This is why it's not easy to reproduce using the web interface. However the problem does seem to occur in some circumstances, and indicates that sometimes (for reasons I still need to understand better) there's some data mismatch between client and the server.
We need to fix this since the API can (in theory) be called in isolation.
The root cause for the crash is that we don't check that author.imagePath is not null (or that it exists) before we send it to FFMpeg for resizing. I'll send on a fix for that, and I'll also try to understand the data mismatch issues reported above.
@github-actions[bot] commented on GitHub (Aug 31, 2024):
Fixed in v2.13.0.