mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
“Empty” library after upgrade to 2.0.0 #281
Closed
opened 2026-04-24 23:03:20 +02:00 by adam
·
24 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
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#281
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 @norseghost on GitHub (Apr 22, 2022).
Upgraded to latest, and now my library in the web app (and iOS) shows up as empty even though the scanner says “12 items added”.
the metadata scan log seems reasonable enough; and the server logs seem fine too:
I’d like to supply more information; but idk where to find it.
@Albuca commented on GitHub (Apr 22, 2022):
Known issue: https://github.com/advplyr/audiobookshelf/issues/470
We have to wait for Google to approve the latest app update in the Play Store -- or you can grab the apk and sideload the app until the Play Store version is updated.
The apk is available here: https://github.com/advplyr/audiobookshelf/issues/470#issuecomment-1105173611
Also - don't downgrade back to 1.7, the new 2.0 database isn't compatible.
@norseghost commented on GitHub (Apr 22, 2022):
Nope, different issue. I have an empty library view in the web app and iOS.
@norseghost commented on GitHub (Apr 22, 2022):
This is with a completely fresh install too.
@prolife86 commented on GitHub (Apr 22, 2022):
Like this?
Empty while I have 240 books:
INFO [DB] 240 Library Items Loaded
INFO [Scanner] Library scan lscan_xpllpdz6azs0cl18sk completed in 0:39.0 | 0 Added | 240 Updated | 0 Missing
INFO [LibraryController] Scan complete
@norseghost commented on GitHub (Apr 22, 2022):
Exactly like that
@prolife86 commented on GitHub (Apr 22, 2022):
@Albuca
This is different, the problem with the apps is something I had yesterday, 2.2.0 with (in my case android) v0.9.40-beta was not working, the WebApp was good and working, after a manual update to v0.9.41-beta it was working perfectly.
But this morning tha app was again blank, no book.
But this time I also have no books in the WebApp, the complete Main Library contents is invisible, but not gone as the log shows.
Something in the 2 updates from github to the server last night changed it.
Purge Cache does not work, restore backup does not work, I'm in doubt wether I should Remove All Library Items, as norseghost states that fres doest not work as well.
I do not know anything about programming, accept very amateur stuff with a raspberry pi, but has this something to do with it?
It was updated last night.
@norseghost commented on GitHub (Apr 22, 2022):
@prolife86 that issue might be messing up things. I don’t have any tags set; maybe that trips it up (although it shouldn’t on the face of it)
it does seem like a view issue and not a library issue
@prolife86 commented on GitHub (Apr 22, 2022):
True, but that is the only one that looks suspicious ;)
The other commits are less suspicious
@soilheart commented on GitHub (Apr 22, 2022):
Same issue here.
Well, that may be the issue. If I read this this line correctly, checkCanAccessLibraryItemWithTags will always return false if you have no tags:
https://github.com/advplyr/audiobookshelf/commit/22762285316ccc083e584792be3e1731b2ad1823#diff-89cde91967c084b20c4b2c39fbf0391d022633ed7722f576db77f09e985a957bR311
@norseghost commented on GitHub (Apr 22, 2022):
That line errors out (well, actually, fails silently) if no tags are passed in to the function; it seems; so I don’t think that’s it
@Leave-MeAlone commented on GitHub (Apr 22, 2022):
after upgrade the library is empty, but during a scan everything is found but not being displayed.
@prolife86 commented on GitHub (Apr 22, 2022):
I changed line 311 " if (!tags || !tags.length) return false" to " if (!tags || !tags.length) return true"
in server/objects/user/User.js
It is working again, although this will not survive an update, as I'm running it in a Docker Container and is a temporary workaround, use at your own risk!
Edit:
This has been fixed! Do not use this workaround anymore! See below!
@Typhonragewind commented on GitHub (Apr 22, 2022):
This fix worked for me! Thanks
@advplyr commented on GitHub (Apr 22, 2022):
Just fixed this and patched. Nice catch @prolife86
@iSplasher commented on GitHub (Apr 22, 2022):
Would it be possible to add a changelog for v2.0.0?
@advplyr commented on GitHub (Apr 22, 2022):
Yes, I'm releasing that today
@yourjelly commented on GitHub (Apr 22, 2022):
Yes, this fixed it, my library wasn't empty it was only showing the books that had a tag.
Had to figure out how to use Vi again to make the change in my docker container tho. XD
@norseghost commented on GitHub (Apr 22, 2022):
Oh ok I can’t read JS very well! Good job!
@advplyr commented on GitHub (Apr 22, 2022):
You don't need to do the workaround that @prolife86 pointed out anymore, that fix is now in the current v2.0.0 release.
@yourjelly commented on GitHub (Apr 22, 2022):
Yeah, but it was faster than figuring out how to force docker to update when it wasn't requesting to.
@skyzuma commented on GitHub (Apr 22, 2022):
yeasterdays upgrade / migration to v2 was successfull but today my library was fully empty after load the litte v2 patch (docker on armv8 x64) ... the server was loading all content correct ... ONLY after delete and redownload the latest docker image all is there back
@advplyr commented on GitHub (Apr 22, 2022):
Oh I didn't realize that was an issue for some, forcing docker updates for the same version.
What are you using to manage your docker containers? Or how can I make it so patches will be auto-pulled for you?
Basically I want to overwrite the :2.0.0 and :latest docker images because they were broken, but I also want the patch to be detectable on everyone's systems.
@Albuca commented on GitHub (Apr 22, 2022):
The hash changes with each commit (even if the version number does not), so a 'docker-compose pull' would grab the latest image and see that the hash does not match what is existing on the system and thus mark it as the 'newest'. Therefore a subsequent 'docker-compose up -d' would recreate the container using the newest image.
n.b. docker pull advplyr/audiobookshelf ((followed by your cli command to initiate the container would also grab the newest image and recreate the container using it))
That said, @advplyr I see that you've pushed V2.0.1 (https://github.com/advplyr/audiobookshelf/commit/d4525ad5ca3153b765bdbb730147a1c308eb2882) and it's been pushed to Docker Hub - so that should hopefully catch anyone whos systems weren't grabbing the latest revision to the 2.0.0 release.
Lastly, I'll open an issue with regards to release notifications within the application itself - so we can track discussion/requirements/need in its own topic.
@advplyr commented on GitHub (Apr 22, 2022):
I appreciate you all. Hopefully with the official release notes for v2.0.1 everyone should be aware to update.