GNOME Bugzilla – Bug 614707
Songs transferred to iPod Touch do not appear in the device's library
Last modified: 2018-05-24 15:06:06 UTC
Forwarded from Launchpad (https://bugs.edge.launchpad.net/ubuntu/+source/rhythmbox/+bug/553301) Just been testing the new libidevice support in Gnome 2.30 as part of the Lucid beta. When I connect my iPod touch to my computer, I can see the device in Rhythmbox. I'm then able to drag music from my music library to the device. A progress bar appears and it seems that the song is transferred across (the song appears in Rhythmbox's window for the device). Unfortunately when you check the Music library on the device, or check in Rhythmbox after reconnecting the device, none of the transferred songs are shown. One suggestion is that since this iPod touch has never had music synced from iTunes that the music database on the device has not been created yet. Unfortunately adding some files still didn't solve the problem. We can see that the songs are being uploaded, but I'm guessing the database isn't being updated (I can only see the 3 songs from iTunes in Rhythmbox and on the device). $ find '/home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music' -type f /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F05/Sorcerous_Stabber_Orph~FQ.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F11/ZDFQ.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F14/B06%20-%20Stickerbrush~BW.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F18/B03%20-%20Donkey%20Kon~IC.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F28/ZADL.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F31/07 Viva la Vida.m4a /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F34/01 - UNDO.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F35/EMQO.mp3 /home/dcoles/.gvfs/dcoles’s iPod/iTunes_Control/Music/F39/03 Samuel Barber - Ada~KT.mp3 ProblemType: Bug DistroRelease: Ubuntu 10.04 Package: rhythmbox 0.12.8-0ubuntu1 ProcVersionSignature: Ubuntu 2.6.32-18.27-generic 2.6.32.10+drm33.1 Uname: Linux 2.6.32-18-generic x86_64 NonfreeKernelModules: openafs Architecture: amd64 Date: Fri Apr 2 00:27:13 2010 EcryptfsInUse: Yes InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) ProcEnviron: PATH=(custom, user) LANG=en_AU.utf8 SHELL=/bin/bash SourcePackage: rhythmbox
After the song finishes transferring, you have to wait about 15 seconds for the database to be updated. When this is being done, there should be a "sync in progress" screen displayed on the itouch. I'd also check that iTunes_Control/Device exists and the modification time of the files in iTunes_Control/iTunes Library.itlp/* (they are the files that have to be updated for the songs to show up on the device)
Yes. I did consider it unusual that I wasn't getting a "sync in progress" screen on the device. When copying a file I see the "Transferring Track 1 out of 1 (x%)" screen, but see no indication of progress on the iPod touch even after letting the device sit for a minute or so. Checking the AFC mount I've noticed that there is no ./iTunes_Control/Device (though there is a ./Device directory) or ./iTunes_Control/iTunes Library.itlp/ (though there is a ./iTunes_Control/iTunes/iTunes%20Library.itlp). Running `stat -c "%-18n (%-12F) %y"` inside the ~/.gvfs/dcoles’s iPod/iTunes_Control/iTunes/iTunes Library.itlp shows that the files haven't been modified since yesterday (when iTunes was last used): DBTemp (directory ) 2010-04-02 21:49:16.000000000 +1100 Dynamic.itdb (regular file) 2010-04-02 21:48:25.000000000 +1100 Extras.itdb (regular file) 2010-04-02 21:49:16.000000000 +1100 Genius.itdb (regular file) 2010-04-02 21:48:23.000000000 +1100 Library.itdb (regular file) 2010-04-02 21:49:16.000000000 +1100 Locations.itdb (regular file) 2010-04-02 21:48:24.000000000 +1100 Locations.itdb.cbk (regular file) 2010-04-02 21:48:27.000000000 +1100 My assumption was that copying at least one song from iTunes should have been enough to set up the database correctly.
Try creating an iTunes_Control/Device directory and then unplug/replug the iPod, libgpod puts mandatory files in it, but the creation of this directory was buggy until yesterday :-/
Created attachment 157794 [details] Console output from Rhythbox when copying a file I also took a look at the console output of Rhythmbox. The parts that look interesting are about 20 copies of: Device 0 (VID=05ac and PID=1293) is UNKNOWN. Please report this VID/PID and the device model to the libmtp development team And after transfer, quite a few copies of things like: ** (rhythmbox:4273): CRITICAL **: itdb_splr_validate: assertion `at != ITDB_SPLAT_UNKNOWN' failed ** (rhythmbox:4273): WARNING **: Unknown action type 1 ** (rhythmbox:4273): WARNING **: Unknown action type 33556480 ** (rhythmbox:4273): WARNING **: Unknown action type 2048
Thanks for the advice. I tried creating the directory, but that didn't seem to help. More interestingly when creating directories or files in Nautilus (using the afc:// URI) the files and directories disappear (actually they end up in the devices root directory). Accessing the device with the ~/.gvfs/dcoles’s\ iPod/ share via a terminal doesn't seem to have this problem - the files end up in the correct place. It's only when you reconnect the device (or check with the terminal) that you can see the files are actually created in the root directory of the device.
I can confirm that I have the same problem, using Rhythmbox 0.12.8 on Ubuntu 10.04, with my first generation ipod touch 8G. The ipod's been jailbroken, as I used to sync with it on an older version ubuntu using amarok over ssh. Dragging songs to the ipod works fine, but after ejecting the ipod and checking on the device the songs don't show up. After reconnecting the ipod rhythmbox doesn't show the songs as being on the device either. When I look in iTunes_Control/iTunes/iTunes Library.itlp/, Library.itdb seems to have changed and when looking in the iTunes_Control/Music/F**/ folders there are new files there.
I notice that the new F** folders rhythmbox seems to be creating use a lower case f, while the older ones that were already there use a capital F (iTunes_Control/Music/F00 rather than iTunes_Control/Music/f18 for example). I tried changing all the lower case f's to upper case, and so that no new lower-case names would be generated, I created all the other capital F folders from 00 to 50 with for i in `seq -w 00 50`; do mkdir F$i; done Now adding songs from rhythmbox seems to work, though I can't be 100% sure if that's what fixed it or not.
I took a look at the database on my iPod Touch 2G. Looks like all of the F** folders were already uppercase. As you can see the files are being copied to the device but it still refuses to acknowledge the songs. ZDFQ.mp3, ZADL.mp3 and EMQO.mp3 are all copied using iTunes and appear in the playlist. The other two files that I just copied tonight do not. dcoles@krikkit:~/.gvfs/dcoles’s iPod$ ls iTunes_Control/Music/ F00 F04 F08 F12 F16 F20 F24 F28 F32 F36 F40 F44 F48 F01 F05 F09 F13 F17 F21 F25 F29 F33 F37 F41 F45 F49 F02 F06 F10 F14 F18 F22 F26 F30 F34 F38 F42 F46 F03 F07 F11 F15 F19 F23 F27 F31 F35 F39 F43 F47 dcoles@krikkit:~/.gvfs/dcoles’s iPod$ ls iTunes_Control/Music/*/* iTunes_Control/Music/F02/01 Voulez-Vous.mp3 iTunes_Control/Music/F11/ZDFQ.mp3 iTunes_Control/Music/F27/10 Ace of Base - Beaut~ID.mp3 iTunes_Control/Music/F28/ZADL.mp3 iTunes_Control/Music/F35/EMQO.mp3 dcoles@krikkit:~/.gvfs/dcoles’s iPod$ ls iTunes_Control/Music/ F00 F04 F08 F12 F16 F20 F24 F28 F32 F36 F40 F44 F48 F01 F05 F09 F13 F17 F21 F25 F29 F33 F37 F41 F45 F49 F02 F06 F10 F14 F18 F22 F26 F30 F34 F38 F42 F46 F03 F07 F11 F15 F19 F23 F27 F31 F35 F39 F43 F47 dcoles@krikkit:~/.gvfs/dcoles’s iPod$ ls iTunes_Control/Music/*/* iTunes_Control/Music/F02/01 Voulez-Vous.mp3 iTunes_Control/Music/F11/ZDFQ.mp3 iTunes_Control/Music/F27/10 Ace of Base - Beaut~ID.mp3 iTunes_Control/Music/F28/ZADL.mp3 iTunes_Control/Music/F35/EMQO.mp3
Nothing appears in the logs when you start rhythmbox from a console?
I'm now running Rhythmbox 0.13.1 on the Ubuntu 10.10 beta. I managed to get it to sync for the first time tonight. The main issue was that the sync did not start for at ~20 seconds after the file had appeared to have finished transferring. I'm attaching the console output with the 3 successful syncs.
Created attachment 170649 [details] Console output from Rhythmbox 0.13.1: 3 successful file syncs (starts 20 seconds after final file transferred)
-- 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/897.