mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: Socket Disconnected on Scan #2252
Closed
opened 2026-04-25 00:05:27 +02:00 by adam
·
23 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
sql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1.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#2252
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 @GhostTownCowboy on GitHub (Sep 12, 2024).
What happened?
I've added a library that links to a directory that is all comics (CBZ/CBR). When I scan the comic folder (issue not present in EBook/Audiobook directory) it starts, finds about 4 then gives the "SOCKET DISCONNECTED" popup. The scan seems to continue with notifications about the socket connecting and disconnecting. No other items are found.
What did you expect to happen?
The scan should add comics similar to other books unless I'm misunderstanding something.
Steps to reproduce the issue
Audiobookshelf version
2.13.4
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Windows
If the issue is being seen in the UI, what browsers are you seeing the problem on?
None
Logs
Additional Notes
Running on Synology.
2024-09-11.txt
crash_logs.txt
@nichwall commented on GitHub (Sep 12, 2024):
Related to https://github.com/advplyr/audiobookshelf/issues/3399, https://github.com/advplyr/audiobookshelf/issues/2526
Looks like that file is malformed based on the log, or at least the data is truncated.
If you're able to share the file for testing that would be helpful for debugging.
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
@nichwall Which file is it saying is bad? Am I just missing that? Judging by the Comics that are showing this seems to be the halting point.

I am unable to upload the file as it's too large. Could the file size be the issue? The files are not stored in a zip archive.

@GhostTownCowboy commented on GitHub (Sep 12, 2024):
Also as a note, the files it did find are all CBR files. Do I need to convert my CBZs to CBRs?
@mikiher commented on GitHub (Sep 12, 2024):
To diagnose which file caused the issue, can you please upload the scan log as well?
You should find it at
<your metadata directory>/logs/scans. Just upload the latest one.@GhostTownCowboy commented on GitHub (Sep 12, 2024):
Sorry about that, I didn't see those before.
When I opened that log folder there were 3 files in there (Attached) I attempted to scan the comics again. They server crashed, restarted/socket reconnected and no additional log was written. Looking at the attached logs they all seem to be of E/Audiobooks however there is a high chance I'm missing something.
2024-09-11_e6e39b4f-b8bc-449b-8ce0-7df1eefbb4ae.txt
2024-09-10_f1f60f28-13c7-42ca-8efc-ae87ad33a985.txt
2024-09-10_8b7ff359-3689-4be5-b3ce-1b43eaf369f8.txt
@mikiher commented on GitHub (Sep 12, 2024):
OK, sorry, my bad - the scan log is only saved if the scan is completed, but since the server crashes during the scan, there wouldn't be any scan log for it.
Instead, can you please:
This will cause scan log lines to also appear in the main log file.
(To set the server log level, go to Settings => Logs, and select
Debugin theServer Log Leveldropdown box).@Nda70 commented on GitHub (Sep 12, 2024):
2024-09-12.txt
crash_logs (1).txt
Hi, same problem here, i've already sxwtch all my cbr to cbz,. Me too on synology nas latest docker version. I've remove some of the blocking CBZ, they are all big files around 400mb
@mikiher commented on GitHub (Sep 12, 2024):
You can see in the log that it started parsing
/medias/Downloaded/test/Sur les rives du Lethe/Black Science - T04 (46)/Black Science - T04 - Sur les rives du Lethe.cbzbut did not finish, so this is probably the file it is crashing on.If you can send this file to me privately on discord, I can try to see what's going on with it (I think you can send large files in discord)
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
I'll pull these when I get off work today.
@Nda70 commented on GitHub (Sep 12, 2024):
Hi, not good at discord but will try, my son will help :)
@Nda70 commented on GitHub (Sep 12, 2024):
How do we do? you give me your nickname or stuff like that and i ask to be friend?
@mikiher commented on GitHub (Sep 12, 2024):
Yes, I think that will work. My nickname is mikiher there as well.
On Thu, Sep 12, 2024, 19:43 Nda70 @.***> wrote:
@Nda70 commented on GitHub (Sep 12, 2024):
Done
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
Okay the daily is below.
2024-09-12.txt
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
I think I sorted out how to tell what's breaking the scan from the logs. I've deleted a few folders and it's running now. It's not ideal but it's functioning.
@mikiher commented on GitHub (Sep 12, 2024):
I think it would be good to keep the bug open until I figure out what's
causing parsing to fail on some of these files (and to also prevent the
parsing failure from failing the whole scan).
On Thu, Sep 12, 2024 at 10:21 PM GhostTownCowboy @.***>
wrote:
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
Sounds good. I'd like to upload one of the files that's causing the failure but they are too big for Git Comments. I'll drop it someplace reachable after work.
@GhostTownCowboy commented on GitHub (Sep 12, 2024):
This is one of the folders that was causing the issue. On the server they are not zipped folders.
https://drive.google.com/file/d/1N5Cn0nEV7bBA21zETHq16nL3RJ0yVPdg/view?usp=drive_link
@Nda70 commented on GitHub (Sep 13, 2024):
Hi, I put all my big cbz >400mo in one folder, the scan with the rest went well. But when i scanned the big file folder all went well too even with the file i upload for you. the main differences is 318 cbz of under 400Mo but only 10 >400mo
I'm lost...
@Nda70 commented on GitHub (Sep 13, 2024):
I will try again with all in one folder too see if it crash.
@Nda70 commented on GitHub (Sep 13, 2024):
Can it be a problem of file sturcture? i use calibre to sort my comics and it uses folder in folder in folder with sometimes relatively long path
@mikiher commented on GitHub (Sep 13, 2024):
I haven't had the time to check the files yet. Stay tuned...
On Fri, Sep 13, 2024 at 6:28 PM Nda70 @.***> wrote:
@github-actions[bot] commented on GitHub (Oct 5, 2024):
Fixed in v2.14.0.