GNOME Bugzilla – Bug 635041
Library database inconsistent/unable to see my files
Last modified: 2018-05-24 15:41:27 UTC
Created attachment 174641 [details] debug log Here's some historical background so you know what might have happened. ------------- Background ------------- On my old computer, my ~/Musique directory (Music) was actually a soft symbolic link to an SD card. So it was something like ln -s /media/foobar /home/jeff/Musique And rhythmbox was perfectly happy with that. Now, I changed computers and I have a bigger hard drive, I don't need the SD card trick anymore, so I copied the rhythmbox settings and database over and I put the actual files in a "real" folder, "/home/jeff/Musique/". So, the paths are 100% identical, the only difference is that the old one was a symlink, the new one is a real folder. ------------- The bug ---------------- Rhythmbox on the new computer (with the "real" folder) is unable to "see" that the files are actually present: - they do not show up in the "Library" view - they do not show up in dynamic playlists - they all show up in "Missing files" HOWEVER: - They do playback if I double-click them inside the "Missing files" category - If I move them out and back into the folder while rhythmbox is running, RB detects them and re-adds them to the library... but this only lasts while RB is still running. When you close RB and start it again, it can't see the files (again). ------------ Further proofs ------------ jeff@kuze:~$ gconftool-2 --get /apps/rhythmbox/library_locations [file:///home/jeff/Musique] jeff@kuze:~$ du -hs Musique/ 7,2G Musique/ jeff@kuze:~$ ls -l Musique/|wc -l 87 -------------------- Debug log attached. Any help in figuring out what's going on is much appreciated!
The debug log doesn't contain any useful information. Attach your rhythmdb.xml file, and maybe a log file showing a) what happens when you play files from the missing files source, b) what happens when you move files away and restore them to your library directory.
Created attachment 174645 [details] rhythmdb.xml
Created attachment 174646 [details] debug log As requested. Note: jeff@kuze:~$ ls -lh .local/share/rhythmbox/ total 1,2M -rw------- 1 jeff jeff 0 2010-11-16 21:30 audioscrobbler.queue -rw-r--r-- 1 jeff jeff 132K 2010-11-16 23:22 playlists.xml -rw-r--r-- 1 jeff jeff 1004K 2010-11-16 23:22 rhythmdb.xml So I don't see why it says the database is read-only in those logs...
This is most likely the cause: <location>file:///home/jeff/Musique/Trombone%20Shorty%20-%202005%20-%20Orleans%20&%20Claiborne/15%20Got%20To%20Get%20Ready.mp3</location> <mountpoint>file:///media/7ABB-6D31</mountpoint> so, I guess we need to update the mountpoint in some circumstances.
FWIW, I tried editing rhythmdb.xml with gedit and replacing "media/7ABB-6D31" by "home", then start RB and move the files out/back in (so it notices changes) and it didn't solve the problem: when restarting RB, the files are missing again.
If your files are on a core filesystem, like / or /home, they shouldn't have the mountpoint property set.
Oh indeed, removing those mountpoint lines entirely solves the problem.
Created attachment 174942 [details] [review] update mountpoint when un-hiding an entry Any chance you could set some of them back and test this patch? If it works, the result won't be perfect, but it should at least allow you to fix it by reimporting.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/1016.