[Bug]: Duplicate file paths and manual track adjustment required after library migration #2106

Closed
opened 2026-04-25 00:03:31 +02:00 by adam · 7 comments
Owner

Originally created by @kyleviloria on GitHub (Jul 13, 2024).

What happened?

This is likely a personal issue where I didn't do something correctly in order to successfully migrate my libraries, but it may be helpful to others. Happens in Firefox and Chrome.

Issue

I moved libraries to a new drive and aim to retain library/user progress/statistics. I stopped ABS (with backups downloaded), copied files to new drive (G:/) from old (C:/), updated absdatabase to change all (known) file/library paths (e.g., path and libraryFiles in libraryItems table, path in libraryFolders table), restarted ABS, and rescanned libraries (successfully).

I can listen to books as normal in 2 of 4 libraries with statistics retained, and cannot listen to books w/o a workaround in the other 2 libraries (which happen to be the 2 that I have listened to books from in the last 6 months).

As a workaround I can use ‘Manage Tracks’ in web UI to move the new file path G:/ into ‘Track 1’ position, and it plays successfully but the trace of the old file location C:/ is still detected. I'd have to do this manually for each book I want to listen to, and ABS is doubling the book size/length by identifying the (deleted) old file path as an additional track.

Logs

Playing book with old file location detected

DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id 2fd0dd28-0460-4b69-9117-560bcccb8684 (Device: Windows 10 / Firefox)
ERROR [LibraryItemController] Library file "106116066220099341" does not exist for library item
DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
INFO [PlaybackSessionManager] startSession: Closing open session "Yumi and the Nightmare Painter" for user "user" (Device: Windows 10 / Firefox)
DEBUG [PlaybackSessionManager] closeSession "2fd0dd28-0460-4b69-9117-560bcccb8684"
DEBUG [PlaybackSessionManager] Removed session "2fd0dd28-0460-4b69-9117-560bcccb8684"
DEBUG [PlaybackSessionManager] "user" starting stream session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" (Device: Windows 10 / Firefox)
INFO [STREAM] START STREAM - Num Segments: 17672
INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt -y -loglevel warning -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\output-%d.ts C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\final-output.m3u8
INFO [concat @ 000001fc1ad55240] Impossible to open 'C:/Users/user/Audiobooks Fiction/Brandon Sanderson/Secret Projects/2024 - Yumi and the Nightmare Painter [Secret Projects 3]/Yumi and the Nightmare Painter.m4b'
INFO C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory
ERROR Ffmpeg Err "ffmpeg exited with code 1: C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory "
INFO Closing Stream c8187ae6-383e-4178-be38-1da41af5aa60
INFO Deleted session data C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60
DEBUG [PlaybackSessionManager] Stream closed for session "c8187ae6-383e-4178-be38-1da41af5aa60" (Device: Windows 10 / Firefox)
ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist
ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist
DEBUG [PlaybackSessionManager] closeSession "c8187ae6-383e-4178-be38-1da41af5aa60"
DEBUG [PlaybackSessionManager] Removed session "c8187ae6-383e-4178-be38-1da41af5aa60"

Swapping 'tracks' via Manage Tracks and then playing

DEBUG [Book] Tracks being rebuilt...!
DEBUG [LibraryItem] Success saving abmetadata to "G:\Audiobooks Fiction\Brandon Sanderson\Secret Projects\2024 - Yumi and the Nightmare Painter [Secret Projects 3]\metadata.json"
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" book.audioFiles updated from [object Object],[object Object] to [object Object],[object Object]
DEBUG [ApiCacheManager] book.afterUpdate: Clearing cache
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" ctime updated from 1720385396175 to 1720666730645
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" libraryFiles updated from [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] to [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
DEBUG [ApiCacheManager] libraryItem.afterUpdate: Clearing cache
INFO [LibraryItem] Library item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" updated
DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id c5e85de0-624e-4d15-b562-985dd7263e76 (Device: Windows 10 / Firefox)

What did you expect to happen?

Retain library statistics and play books as normal

Steps to reproduce the issue

  1. Press Play
  2. Upon failure (Stream Failed: undefined), select Manage Tracks, switch tracks 1 (old file path) and 2 (new file path), select Save Tracklist
  3. Press Play
  4. Book successfully plays, but is detected as twice as long due to the old file path being recognized as an audio file
    absmigration

Audiobookshelf version

v2.11.0

How are you running audiobookshelf?

Windows Tray App

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?

Firefox and Chrome

Logs

DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id 2fd0dd28-0460-4b69-9117-560bcccb8684 (Device: Windows 10 / Firefox)
ERROR [LibraryItemController] Library file "106116066220099341" does not exist for library item
DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
INFO [PlaybackSessionManager] startSession: Closing open session "Yumi and the Nightmare Painter" for user "user" (Device: Windows 10 / Firefox)
DEBUG [PlaybackSessionManager] closeSession "2fd0dd28-0460-4b69-9117-560bcccb8684"
DEBUG [PlaybackSessionManager] Removed session "2fd0dd28-0460-4b69-9117-560bcccb8684"
DEBUG [PlaybackSessionManager] "user" starting stream session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" (Device: Windows 10 / Firefox)
INFO [STREAM] START STREAM - Num Segments: 17672
INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt -y -loglevel warning -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\output-%d.ts C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\final-output.m3u8
INFO [concat @ 000001fc1ad55240] Impossible to open 'C:/Users/user/Audiobooks Fiction/Brandon Sanderson/Secret Projects/2024 - Yumi and the Nightmare Painter [Secret Projects 3]/Yumi and the Nightmare Painter.m4b'
INFO C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory
ERROR Ffmpeg Err "ffmpeg exited with code 1: C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory "
INFO Closing Stream c8187ae6-383e-4178-be38-1da41af5aa60
INFO Deleted session data C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60
DEBUG [PlaybackSessionManager] Stream closed for session "c8187ae6-383e-4178-be38-1da41af5aa60" (Device: Windows 10 / Firefox)
ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist
ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist
DEBUG [PlaybackSessionManager] closeSession "c8187ae6-383e-4178-be38-1da41af5aa60"
DEBUG [PlaybackSessionManager] Removed session "c8187ae6-383e-4178-be38-1da41af5aa60"

DEBUG [Book] Tracks being rebuilt...!
DEBUG [LibraryItem] Success saving abmetadata to "G:\Audiobooks Fiction\Brandon Sanderson\Secret Projects\2024 - Yumi and the Nightmare Painter [Secret Projects 3]\metadata.json"
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" book.audioFiles updated from [object Object],[object Object] to [object Object],[object Object]
DEBUG [ApiCacheManager] book.afterUpdate: Clearing cache
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" ctime updated from 1720385396175 to 1720666730645
DEBUG [LibraryItem] "Yumi and the Nightmare Painter" libraryFiles updated from [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] to [object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
DEBUG [ApiCacheManager] libraryItem.afterUpdate: Clearing cache
INFO [LibraryItem] Library item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" updated
DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox
DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id c5e85de0-624e-4d15-b562-985dd7263e76 (Device: Windows 10 / Firefox)
Originally created by @kyleviloria on GitHub (Jul 13, 2024). ### What happened? _This is likely a personal issue where I didn't do something correctly in order to successfully migrate my libraries, but it may be helpful to others. Happens in Firefox and Chrome._ ### Issue I moved libraries to a new drive and aim to retain library/user progress/statistics. I stopped ABS (with backups downloaded), copied files to new drive (G:/) from old (C:/), updated absdatabase to change all (known) file/library paths (e.g., `path` and `libraryFiles` in `libraryItems` table, `path` in libraryFolders table), restarted ABS, and rescanned libraries (successfully). I can listen to books as normal in 2 of 4 libraries with statistics retained, and cannot listen to books w/o a workaround in the other 2 libraries (which happen to be the 2 that I have listened to books from in the last 6 months). As a workaround I can use ‘Manage Tracks’ in web UI to move the new file path G:/ into ‘Track 1’ position, and it plays successfully but the trace of the old file location C:/ is still detected. I'd have to do this manually for each book I want to listen to, and ABS is doubling the book size/length by identifying the (deleted) old file path as an additional track. ### Logs Playing book with old file location detected ``` DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id 2fd0dd28-0460-4b69-9117-560bcccb8684 (Device: Windows 10 / Firefox) ERROR [LibraryItemController] Library file "106116066220099341" does not exist for library item DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox INFO [PlaybackSessionManager] startSession: Closing open session "Yumi and the Nightmare Painter" for user "user" (Device: Windows 10 / Firefox) DEBUG [PlaybackSessionManager] closeSession "2fd0dd28-0460-4b69-9117-560bcccb8684" DEBUG [PlaybackSessionManager] Removed session "2fd0dd28-0460-4b69-9117-560bcccb8684" DEBUG [PlaybackSessionManager] "user" starting stream session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" (Device: Windows 10 / Firefox) INFO [STREAM] START STREAM - Num Segments: 17672 INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt -y -loglevel warning -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\output-%d.ts C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\final-output.m3u8 INFO [concat @ 000001fc1ad55240] Impossible to open 'C:/Users/user/Audiobooks Fiction/Brandon Sanderson/Secret Projects/2024 - Yumi and the Nightmare Painter [Secret Projects 3]/Yumi and the Nightmare Painter.m4b' INFO C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory ERROR Ffmpeg Err "ffmpeg exited with code 1: C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory " INFO Closing Stream c8187ae6-383e-4178-be38-1da41af5aa60 INFO Deleted session data C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60 DEBUG [PlaybackSessionManager] Stream closed for session "c8187ae6-383e-4178-be38-1da41af5aa60" (Device: Windows 10 / Firefox) ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist DEBUG [PlaybackSessionManager] closeSession "c8187ae6-383e-4178-be38-1da41af5aa60" DEBUG [PlaybackSessionManager] Removed session "c8187ae6-383e-4178-be38-1da41af5aa60" ``` Swapping 'tracks' via `Manage Tracks` and then playing ``` DEBUG [Book] Tracks being rebuilt...! DEBUG [LibraryItem] Success saving abmetadata to "G:\Audiobooks Fiction\Brandon Sanderson\Secret Projects\2024 - Yumi and the Nightmare Painter [Secret Projects 3]\metadata.json" DEBUG [LibraryItem] "Yumi and the Nightmare Painter" book.audioFiles updated from [object Object],[object Object] to [object Object],[object Object] DEBUG [ApiCacheManager] book.afterUpdate: Clearing cache DEBUG [LibraryItem] "Yumi and the Nightmare Painter" ctime updated from 1720385396175 to 1720666730645 DEBUG [LibraryItem] "Yumi and the Nightmare Painter" libraryFiles updated from [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] to [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] DEBUG [ApiCacheManager] libraryItem.afterUpdate: Clearing cache INFO [LibraryItem] Library item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" updated DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id c5e85de0-624e-4d15-b562-985dd7263e76 (Device: Windows 10 / Firefox) ``` ### What did you expect to happen? Retain library statistics and play books as normal ### Steps to reproduce the issue 1. Press `Play` 2. Upon failure (Stream Failed: undefined), select `Manage Tracks`, switch tracks 1 (old file path) and 2 (new file path), select `Save Tracklist` 3. Press `Play` 4. Book successfully plays, but is detected as twice as long due to the old file path being recognized as an audio file ![absmigration](https://github.com/user-attachments/assets/e9c2bfe2-eca2-41ef-a04a-6ba1dc018f36) ### Audiobookshelf version v2.11.0 ### How are you running audiobookshelf? Windows Tray App ### 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? Firefox and Chrome ### Logs ```shell DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id 2fd0dd28-0460-4b69-9117-560bcccb8684 (Device: Windows 10 / Firefox) ERROR [LibraryItemController] Library file "106116066220099341" does not exist for library item DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox INFO [PlaybackSessionManager] startSession: Closing open session "Yumi and the Nightmare Painter" for user "user" (Device: Windows 10 / Firefox) DEBUG [PlaybackSessionManager] closeSession "2fd0dd28-0460-4b69-9117-560bcccb8684" DEBUG [PlaybackSessionManager] Removed session "2fd0dd28-0460-4b69-9117-560bcccb8684" DEBUG [PlaybackSessionManager] "user" starting stream session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" (Device: Windows 10 / Firefox) INFO [STREAM] START STREAM - Num Segments: 17672 INFO [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt -y -loglevel warning -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\output-%d.ts C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\final-output.m3u8 INFO [concat @ 000001fc1ad55240] Impossible to open 'C:/Users/user/Audiobooks Fiction/Brandon Sanderson/Secret Projects/2024 - Yumi and the Nightmare Painter [Secret Projects 3]/Yumi and the Nightmare Painter.m4b' INFO C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory ERROR Ffmpeg Err "ffmpeg exited with code 1: C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60\files.txt: No such file or directory " INFO Closing Stream c8187ae6-383e-4178-be38-1da41af5aa60 INFO Deleted session data C:\audiobookshelf\metadata\streams\c8187ae6-383e-4178-be38-1da41af5aa60 DEBUG [PlaybackSessionManager] Stream closed for session "c8187ae6-383e-4178-be38-1da41af5aa60" (Device: Windows 10 / Firefox) ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist ERROR [HlsRouter] Stream "c8187ae6-383e-4178-be38-1da41af5aa60" does not exist DEBUG [PlaybackSessionManager] closeSession "c8187ae6-383e-4178-be38-1da41af5aa60" DEBUG [PlaybackSessionManager] Removed session "c8187ae6-383e-4178-be38-1da41af5aa60" DEBUG [Book] Tracks being rebuilt...! DEBUG [LibraryItem] Success saving abmetadata to "G:\Audiobooks Fiction\Brandon Sanderson\Secret Projects\2024 - Yumi and the Nightmare Painter [Secret Projects 3]\metadata.json" DEBUG [LibraryItem] "Yumi and the Nightmare Painter" book.audioFiles updated from [object Object],[object Object] to [object Object],[object Object] DEBUG [ApiCacheManager] book.afterUpdate: Clearing cache DEBUG [LibraryItem] "Yumi and the Nightmare Painter" ctime updated from 1720385396175 to 1720666730645 DEBUG [LibraryItem] "Yumi and the Nightmare Painter" libraryFiles updated from [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] to [object Object],[object Object],[object Object],[object Object],[object Object],[object Object] DEBUG [ApiCacheManager] libraryItem.afterUpdate: Clearing cache INFO [LibraryItem] Library item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" updated DEBUG [PlaybackSessionManager] startSessionRequest for device Windows 10 / Firefox DEBUG [PlaybackSessionManager] "user" starting direct play session for item "9d62f5a6-7039-4ee7-bed0-8f842f5c94a6" with id c5e85de0-624e-4d15-b562-985dd7263e76 (Device: Windows 10 / Firefox) ```
adam added the bug label 2026-04-25 00:03:31 +02:00
adam closed this issue 2026-04-25 00:03:31 +02:00
Author
Owner

@nichwall commented on GitHub (Jul 13, 2024):

Can you try doing a filter on the libraryItems table to make sure that C: doesn't show up anywhere in the database? The paths should all be in those tables you already identified (except for podcasts and podcastEpisodes if applicable).

You can use something like https://sqlitebrowser.org/ to filter on all columns in a table. It also supports find-and-replace for strings (the find and replace will be less useful with duplicate database entries because of additional information in libraryFiles column, but filtering will help you find the ones that still need to be edited).

Make sure your server is not running before you start editing the database (and make a backup in case you accidentally edit something wrong during cleanup)

@nichwall commented on GitHub (Jul 13, 2024): Can you try doing a filter on the libraryItems table to make sure that `C:` doesn't show up anywhere in the database? The paths should all be in those tables you already identified (except for `podcasts` and `podcastEpisodes` if applicable). You can use something like https://sqlitebrowser.org/ to filter on all columns in a table. It also supports find-and-replace for strings (the find and replace will be less useful with duplicate database entries because of additional information in `libraryFiles` column, but filtering will help you find the ones that still need to be edited). Make sure your server is not running before you start editing the database (and make a backup in case you accidentally edit something wrong during cleanup)
Author
Owner

@kyleviloria commented on GitHub (Jul 13, 2024):

Can you try doing a filter on the libraryItems table to make sure that C: doesn't show up anywhere in the database? The paths should all be in those tables you already identified (except for podcasts and podcastEpisodes if applicable).

Confirmed C: doesn't show up in the database with DB Browser for SQLite (which I used to do the path replacements too via find-and-replace). Filtered libraryItems via the Filter in any column search field in the Browse Data tab.

@kyleviloria commented on GitHub (Jul 13, 2024): > Can you try doing a filter on the libraryItems table to make sure that `C:` doesn't show up anywhere in the database? The paths should all be in those tables you already identified (except for `podcasts` and `podcastEpisodes` if applicable). Confirmed `C:` doesn't show up in the database with DB Browser for SQLite (which I used to do the path replacements too via find-and-replace). Filtered libraryItems via the `Filter in any column` search field in the `Browse Data` tab.
Author
Owner

@advplyr commented on GitHub (Jul 14, 2024):

If I'm understanding this correctly the only way it could happen is if the paths in the audioFiles column of the books table was not updated.

This column is a JSON column that is an array of AudioFile objects. I'm not sure if you can search inside JSON objects in DB Browser. That may be why you are not finding it.

@advplyr commented on GitHub (Jul 14, 2024): If I'm understanding this correctly the only way it could happen is if the paths in the `audioFiles` column of the `books` table was not updated. This column is a JSON column that is an array of AudioFile objects. I'm not sure if you can search inside JSON objects in DB Browser. That may be why you are not finding it.
Author
Owner

@nichwall commented on GitHub (Jul 14, 2024):

DB Browser does search through the entire string. Not sure if it's something being cached in the Windows Tray app?
Screenshot from 2024-07-14 12-22-04

@nichwall commented on GitHub (Jul 14, 2024): DB Browser does search through the entire string. Not sure if it's something being cached in the Windows Tray app? ![Screenshot from 2024-07-14 12-22-04](https://github.com/user-attachments/assets/dd258527-5ddc-4e89-ae83-d372417453e6)
Author
Owner

@advplyr commented on GitHub (Jul 14, 2024):

I'm not aware of any caching. The data in the tracks list comes specifically from the audioFiles column of the books table.
I saw they mentioned updating the libraryFiles column but not the other tables

@advplyr commented on GitHub (Jul 14, 2024): I'm not aware of any caching. The data in the tracks list comes specifically from the `audioFiles` column of the `books` table. I saw they mentioned updating the `libraryFiles` column but not the other tables
Author
Owner

@nichwall commented on GitHub (Jul 14, 2024):

Oh, thanks. I misread your message.

@nichwall commented on GitHub (Jul 14, 2024): Oh, thanks. I misread your message.
Author
Owner

@kyleviloria commented on GitHub (Jul 14, 2024):

If I'm understanding this correctly the only way it could happen is if the paths in the audioFiles column of the books table was not updated.

This column is a JSON column that is an array of AudioFile objects. I'm not sure if you can search inside JSON objects in DB Browser. That may be why you are not finding it.

This was the issue; simple fix! I'd only replaced the paths in the libraryItems table, not in the books table. 😑

Using DB Browser's Replace text in cells function, I was able to replace any instance of C:/... with the new paths, and all books play as expected.

Thank you both for your help!

@kyleviloria commented on GitHub (Jul 14, 2024): > If I'm understanding this correctly the only way it could happen is if the paths in the `audioFiles` column of the `books` table was not updated. > > This column is a JSON column that is an array of AudioFile objects. I'm not sure if you can search inside JSON objects in DB Browser. That may be why you are not finding it. This was the issue; simple fix! I'd only replaced the paths in the `libraryItems` table, not in the `books` table. 😑 Using DB Browser's `Replace text in cells` function, I was able to replace any instance of `C:/...` with the new paths, and all books play as expected. Thank you both for your help!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2106