After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 635041 - Library database inconsistent/unable to see my files
Library database inconsistent/unable to see my files
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: general
0.13.x
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-17 02:40 UTC by Jean-François Fortin Tam
Modified: 2018-05-24 15:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug log (641.05 KB, text/x-log)
2010-11-17 02:40 UTC, Jean-François Fortin Tam
  Details
rhythmdb.xml (82.96 KB, application/x-gzip)
2010-11-17 04:16 UTC, Jean-François Fortin Tam
  Details
debug log (64.28 KB, application/x-gzip)
2010-11-17 04:26 UTC, Jean-François Fortin Tam
  Details
update mountpoint when un-hiding an entry (3.79 KB, patch)
2010-11-21 10:53 UTC, Jonathan Matthew
none Details | Review

Description Jean-François Fortin Tam 2010-11-17 02:40:17 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!
Comment 1 Jonathan Matthew 2010-11-17 02:46:06 UTC
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.
Comment 2 Jean-François Fortin Tam 2010-11-17 04:16:26 UTC
Created attachment 174645 [details]
rhythmdb.xml
Comment 3 Jean-François Fortin Tam 2010-11-17 04:26:37 UTC
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...
Comment 4 Jonathan Matthew 2010-11-17 04:29:31 UTC
This is most likely the cause:

    <location>file:///home/jeff/Musique/Trombone%20Shorty%20-%202005%20-%20Orleans%20&amp;%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.
Comment 5 Jean-François Fortin Tam 2010-11-17 13:39:53 UTC
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.
Comment 6 Jonathan Matthew 2010-11-18 03:55:34 UTC
If your files are on a core filesystem, like / or /home, they shouldn't have the mountpoint property set.
Comment 7 Jean-François Fortin Tam 2010-11-18 04:15:44 UTC
Oh indeed, removing those mountpoint lines entirely solves the problem.
Comment 8 Jonathan Matthew 2010-11-21 10:53:55 UTC
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.
Comment 9 GNOME Infrastructure Team 2018-05-24 15:41:27 UTC
-- 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.