Bug 495240 - Ipod not recognized as mediaplayer
Summary: Ipod not recognized as mediaplayer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: podsleuth
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Christian Krause
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 498997 550753 (view as bug list)
Depends On: 533397 533399
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-10 17:20 UTC by Hendrik Borghorst
Modified: 2010-01-13 09:31 UTC (History)
21 users (show)

Fixed In Version: 1.5.3-0.1.20091216git.fc12
Clone Of:
Environment:
Last Closed: 2010-01-08 20:01:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
banshee disconnection error (111.44 KB, image/png)
2009-12-18 21:19 UTC, Jonathan Colon
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 586508 0 None None None Never

Description Hendrik Borghorst 2009-04-10 17:20:24 UTC
Description of problem:
If I connect my iPod classic 120gb, gnome mounts it as an normal usb-hdd and as a result of this rhythmbox and banshee does not recognize it as an ipod media player.

Version-Release number of selected component (if applicable):
DeviceKit-disks-004-0.5.20090408git.fc11.x86_64

How reproducible:
100%

Steps to Reproduce:
1.connect an ipod
2.wait
3.not found in rhythmbox/banshee
  
Actual results:
Ipod mounts as harddisk

Expected results:
ipod is recognized as mediaplayer

Additional info:

Comment 1 Hendrik Borghorst 2009-04-10 17:50:16 UTC
It seems to work ok with KDE and Amarok 2.0.2

Comment 2 Hendrik Borghorst 2009-04-11 11:47:47 UTC
The problem has been fixed for rhythmbox but still appears with banshee. So I think it is banshee's problem

Comment 3 John Anderson 2009-05-18 21:01:58 UTC
Getting this also. My ipod worked in f10, did the upgrade to rawhide today and it doesn't work with the f11 banshee.

Comment 4 David Nielsen 2009-05-18 22:31:22 UTC
when you plug it in do you get any new messages in your dmesg output?

Additionally after it is plugged in what happens if you run podsleuth?

Comment 5 David Nielsen 2009-05-18 22:36:06 UTC
I just had the bright idea to dig out my iPod and test this.

podsleuth claims there is no iPod, however it is detected as a mass storage device it seems. I smell podsleuth or hal/devicekit might be to blame here. Since you say it works with rhythmbox (really libgpod) it must be podsleuth.

Reassigning to podsleuth for the time being.

Comment 6 David Nielsen 2009-05-18 23:04:52 UTC
*** Bug 498997 has been marked as a duplicate of this bug. ***

Comment 7 David Nielsen 2009-05-18 23:19:16 UTC
/tmp/podsleuth-debug contains this. Would you happen to see similar output in that file if you hooked up the iPod and ran podsleuth --rescan --debug ?

Pre-Mount Settings:
  - UDI:                    /org/freedesktop/Hal/devices/volume_uuid_5514_1E15
  - Block Device:           /dev/sdc2
  - Temporary Mount Point:  /tmp/podsleuth-mount-2
  - FS Type:                vfat

Exception:

Mono.Unix.UnixIOException: No such file or directory [ENOENT].
  at PodSleuth.LowLevelMount.Mount (System.String source, System.String target, System.String fstype, Boolean readOnly) [0x0002b] in /home/david/rpmbuild/BUILD/podsleuth-0.6.4/src/PodSleuth/PodSleuth/LowLevelMount.cs:24
  at PodSleuth.HalFrontend.HalPopulator.RunInternal (System.String[] args) [0x00065] in /home/david/rpmbuild/BUILD/podsleuth-0.6.4/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:61
  at PodSleuth.HalFrontend.HalPopulator.Run (System.String[] args) [0x00000] in /home/david/rpmbuild/BUILD/podsleuth-0.6.4/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:24

Comment 8 Bug Zapper 2009-06-09 13:37:25 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 9 James 2009-06-20 23:32:57 UTC
I have the same problem. I am running Fedora 11 x86_64 on a hp dv6000 laptop and yum-updated prior to trying this. Rhythmbox detects my iPod classic 120G, but banshee-1 does not.

[james@hp-fedora64 ~]$ podsleuth --rescan --debug && cat /tmp/podsleuth-debug
No iPods were found in the HAL device tree
Pre-Mount Settings:
  - UDI:                    /org/freedesktop/Hal/devices/volume_uuid_3141_5926
  - Block Device:           /dev/sdb1
  - Temporary Mount Point:  /tmp/podsleuth-mount-1
  - FS Type:                vfat

Exception:

Mono.Unix.UnixIOException: No such file or directory [ENOENT].
  at PodSleuth.LowLevelMount.Mount (System.String source, System.String target, System.String fstype, Boolean readOnly) [0x0002b] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth/PodSleuth/LowLevelMount.cs:24 
  at PodSleuth.HalFrontend.HalPopulator.RunInternal (System.String[] args) [0x00065] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:61 
  at PodSleuth.HalFrontend.HalPopulator.Run (System.String[] args) [0x00000] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:24 
================================
END OF TERMINAL OUTPUT
================================

And this is what dmesg gives me relative to plugging in my iPod:

usb 1-6: new high speed USB device using ehci_hcd and address 4
usb 1-6: New USB device found, idVendor=05ac, idProduct=1261
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-6: Product: iPod
usb 1-6: Manufacturer: Apple Inc.
usb 1-6: SerialNumber: 000A270013A86AE6
usb 1-6: configuration #1 chosen from 2 choices
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete
scsi 6:0:0:0: Direct-Access     Apple    iPod             1.62 PQ: 0 ANSI: 0
sd 6:0:0:0: [sdb] 29255991 4096-byte hardware sectors: (119 GB/111 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 68 00 00 08
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sd 6:0:0:0: [sdb] 29255991 4096-byte hardware sectors: (119 GB/111 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 68 00 00 08
sd 6:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 6:0:0:0: [sdb] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg2 type 0
SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts

Comment 10 David Nielsen 2009-06-21 08:18:58 UTC
I've opened up a bug on this upstream. Hopefully the developer will be able to point us in the right direction for this. I looked over the code and I can't spot the place it seems to go wrong, it's like it's not allowed access to the mount point,

http://bugzilla.gnome.org/show_bug.cgi?id=586508

I see that SELinux is running, and Dan Walsh unfortunately seems capable of breaking the ruleset for podsleuth at least once per cycle. Is anyone able to reproduce this with SELinux disabled?

Comment 11 JimmyMa 2009-06-21 09:29:10 UTC
SELinux is disabled in my computer,but my ipod still cannot be recognized by podsleuth.

as this:

[Jimmy@JimmyLinux ~]$ podsleuth
No iPods were found in the HAL device tree
[Jimmy@JimmyLinux ~]$ 

My ipod:nano 2 2g.

Comment 12 James 2009-06-21 15:28:33 UTC
On a whim, I reinstalled podsleuth. At least now podsleuth recognizes my iPod Classic (selinux is enabled):

[james@hp-fedora64 ~]$ podsleuth --debug
Found an iPod device, but it is not known by PodSleuth:
   Error: org.podsleuth.* properties are missing
   UDI:          /org/freedesktop/Hal/devices/volume_uuid_3141_5926
   Block Device: /dev/sdb1
   Mount Point:  /media/JHALL'S IPO

   Cause: PodSleuth may not be installed properly, the HAL daemon may need
          to be restarted and/or the device needs to be refreshed.

   Note:  A PodSleuth debug log was found: /tmp/podsleuth-debug
          This file may provide more details or can be useful to
          developers. Please save it somewhere else and use it in
          a bug report. See http://banshee-project.org/PodSleuth

[james@hp-fedora64 ~]$ cat /tmp/podsleuth/debug
cat: /tmp/podsleuth/debug: No such file or directory
[james@hp-fedora64 ~]$ cat /tmp/podsleuth-debug
Pre-Mount Settings:
  - UDI:                    /org/freedesktop/Hal/devices/volume_uuid_3141_5926
  - Block Device:           /dev/sdb1
  - Temporary Mount Point:  
  - FS Type:                

Exception:

System.ApplicationException: Could not find org.freedesktop.Hal
  at Hal.Device.CastDevice[IDevice] () [0x00000] 
  at Hal.Device..ctor (System.String udi) [0x0000d] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth.Hal/Hal/Device.cs:127 
  at PodSleuth.HalFrontend.HalPopulator.RunInternal (System.String[] args) [0x0001f] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:54 
  at PodSleuth.HalFrontend.HalPopulator.Run (System.String[] args) [0x00000] in /builddir/build/BUILD/podsleuth-0.6.3/src/PodSleuth.Hal/PodSleuth.HalFrontend/HalPopulator.cs:24

Then I tried:
[james@hp-fedora64 ~]$ podsleuth --update
Downloading PodSleuth table update... Error (org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.67" (uid=500 pid=2690 comm="mono /usr/lib64/podsleuth/PodSleuth.Hal.exe --upda") interface="org.podsleuth" member="UpdateModelTable" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1514 comm="hald ")))
Found an iPod device, but it is not known by PodSleuth:
   Error: org.podsleuth.* properties are missing
   UDI:          /org/freedesktop/Hal/devices/volume_uuid_3141_5926
   Block Device: /dev/sdb1
   Mount Point:  /media/JHALL'S IPO

   Cause: PodSleuth may not be installed properly, the HAL daemon may need
          to be restarted and/or the device needs to be refreshed.

   Note:  A PodSleuth debug log was found: /tmp/podsleuth-debug
          This file may provide more details or can be useful to
          developers. Please save it somewhere else and use it in
          a bug report. See http://banshee-project.org/PodSleuth

And...
[james@hp-fedora64 ~]$ podsleuth --rescan
Rescanning device [/org/freedesktop/Hal/devices/volume_uuid_3141_5926]

Unhandled Exception: System.Exception: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.68" (uid=500 pid=2699 comm="mono /usr/lib64/podsleuth/PodSleuth.Hal.exe --resc") interface="org.podsleuth" member="Scan" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1514 comm="hald "))
  at IPodSleuthProxy.Scan () [0x00000] 
  at PodSleuth.HalFrontend.HalClient.Run (System.String[] args) [0x00000] 
  at PodSleuth.HalFrontend.HalEntry.Main (System.String[] args) [0x00000]

Comment 13 James 2009-06-21 16:35:34 UTC
Got it to work, but (1) only if it is not connected during boot-up (or if it is unmounted and re-connected after login), and (2) only the first time that the iPod is connected and detected.

1) The iPod can not be connected durring boot-up. If it is I got exactally what I got in my previous post (Found an iPod device, but it is not known by PodSleuth...). If you unmount it and reconnect then you get number 3 below.

2) I edited /etc/selinux/config, changed to permissive mode and rebooted, did all of the below steps. Then I changed to enforcing mode and rebooted and did all of the the steps below. Both selinux modes had the same effect/results. 

3) 
[james@hp-fedora64 ~]$ podsleuth
iPod Found [/org/freedesktop/Hal/devices/volume_uuid_3141_5926]
  * Generic Device Properties
    - Block Device:       /dev/sdb1
    - Mount Point:        /media/JHALL'S IPO
    - Read Only:          False
    - Volume Size:        120 GiB
  * General iPod Properties
    - Serial Number:      8K9192NY2C7
    - Firewire ID:        000A270013A86AE6
    - Firmware Version:   2.0.1
    - iPod_Control:       /iPod_Control
    - Extra Capabilities: podcast
    - Production Info:    3454 in May, 2009 from factory 8K
  * iPod Model Properties
    - Device Class:       classic
    - Generation:         7
  * Image Types Supported
    - Photos:             True
    - Album Art:          True
    - Chapter Images:     True

4) However,
[james@hp-fedora64 ~]$ podsleuth --rescan
Rescanning device [/org/freedesktop/Hal/devices/volume_uuid_FCFD_53A4]
Unhandled Exception: System.Exception: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.62" (uid=500 pid=2665 comm="mono /usr/lib64/podsleuth/PodSleuth.Hal.exe --resc") interface="org.podsleuth" member="Scan" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1526 comm="hald "))
  at IPodSleuthProxy.Scan () [0x00000] 
  at PodSleuth.HalFrontend.HalClient.Run (System.String[] args) [0x00000] 
  at PodSleuth.HalFrontend.HalEntry.Main (System.String[] args) [0x00000]

5) But if I rum banshee-1 (and rebuild the database :-() it reads every song and video on the ipod.

6) Can't eject from Podsleuth:
[james@hp-fedora64 ~]$ podsleuth --eject
Ejecting iPod [/org/freedesktop/Hal/devices/volume_uuid_3141_5926]... ERROR (org.freedesktop.Hal.Device.Volume.UnknownFailure: Cannot open /media/.hal-mtab)

7) and here is the terminal output if I attempt to eject from banshee-1:
[Warn  12:03:52.469] Caught an exception - org.freedesktop.Hal.Device.Volume.UnknownFailure: Cannot open /media/.hal-mtab (in `NDesk.DBus.Proxies')
  at IVolumeProxy.Unmount (System.String[] ) [0x00000] 
  at Hal.Volume.Unmount (System.String[] args) [0x00000] 
  at Hal.Volume.Unmount () [0x00000] 
  at Banshee.HalBackend.Volume.Unmount () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.Unmount () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.Eject () [0x00000] 
  at Banshee.Dap.RemovableSource.<Unmap>m__5 (System.Object ) [0x00000]

8) If I manually unmount & podsleuth:
[james@hp-fedora64 ~]$ podsleuth
No iPods were found in the HAL device tree

9) And when I reattach the device:
[james@hp-fedora64 ~]$ podsleuth --debug
No iPods were found in the HAL device tree

The following has nothing to do with this bug, but banshee-1 (1) removed all of the album art from my iPod- even though the music in banshee's library that I exported from my iPod has art. (2) reclassified all of my TV Shows as movies, and lost the season numbers and names of the episodes. (3) reclassified all of my audiobooks as music. So it looks like I'll still use my work XP machine to sync my iPod and I won't be fiddling around with podsleuth or banshee-1 any further. 

Hope 1-9 helps someone though.

Comment 14 JimmyMa 2009-06-21 16:47:04 UTC
 Your comment was:

    Yes,reinstall works.

    it seems that it can report my ipod and i can sync my ipod in banshee now,but i
    can't eject it in banshee.May be HAL has some mistakes.

    And I found a strange thing.I'm using a Lenovo Thinkpad x200 with a internal SD
    reader  ,when I connect my IPod without my SD card plugged,podsleuth recognizes
    it.But after I plug my SD card,podsleuth can't recognizes any ipod connected.

    How reproducible:

    1.empty your SD reader,restart computer.
    2.connect Ipod.
    3.podsleuth recognizes it.
    4.plug your SD card,wait a moment.
    5.eject ipod in Nautilus,
    6.after a while,reconnect your iPod.
    7.Now run podsleuth.it reports "No iPods were found in the HAL device tree"
    8.eject your SD card.
    9.run podsleuth and it recognizes my ipod immediately.

    100% works in my ThinkPad,type:7459-FN3,And if i use a USB flash disk instead
    of using SD,your podsleuth cannot recognizes ipod any more before restart,after
    you connect your flash disk ,even you flash disk has been removed from the
    computer.

Comment 15 James 2009-06-21 17:18:42 UTC
I have the same results. When I empty my SD slot then podsleuth recognizes my ipod every time that it is reconnected.

Still can't podsleuth --eject

Comment 16 Arnar Gunnarsson 2009-07-02 10:11:57 UTC
Here is the comment from Gabriel Burt  (banshee developer, points: 21) over at bugzilla.gnome.org:

My guess is that on most distros, in this code:

            bool private_mount =
!hal_device.GetPropertyBoolean("volume.is_mounted");

            if(private_mount) {
                mount_point = LowLevelMount.GenerateMountPoint();
                fs_type = hal_device["volume.fstype"];
                LowLevelMount.Mount(HalEnvironment.BlockDevice, mount_point,
fs_type, true);
            } else {
                mount_point = hal_device["volume.mount_point"];
            }

private_mount is false; that is, the distro already mounted the drive, so the
podsleuth mounting code path doesn't get run).  You can try modifying the
LowLevelMount.Mount method to print out whether the mount point directory
exists (according to System.IO) to corroborate the exception message.  It
should have been created by the call to GenerateMountPoint - could also modify
that method to make sure it's working.

Comment 17 Eric Mesa 2009-08-23 21:25:47 UTC
Does it matter that when the iPod loads up it's not with an iPod icon?  Does this mean the system isn't reading as an iPod?  It appears to be doing it as a removable hard drive instead.  In Fedora 10 when I'd put the iPod in it would ask if I wanted to sync it with Rhythmbox, etc

Comment 18 Thorsten Scherf 2009-10-25 16:04:57 UTC
Do we have any updates on this. Can verify this bug still exists in rawhide using

banshee-1.5.1-0.3.git20090917.fc12.i686 and podsleuth-0.6.4-1.fc12.i686

Comment 19 David Nielsen 2009-10-25 16:33:03 UTC
The problem is the move away from HAL to DeviceKit-disks. Podsleuth is being rewritten to support this move but progress is unfortunately a bit slow

Comment 20 Christian Krause 2009-10-26 21:33:40 UTC
(In reply to comment #19)
> The problem is the move away from HAL to DeviceKit-disks. Podsleuth is being
> rewritten to support this move but progress is unfortunately a bit slow  

Most likely this is not sufficient since banshee and co. will still search the podsleuth data in hal's database. :-(


However, I think I've found a workaround which makes the situation at least for me a little bit better. Please note that this is not a solution and you should be aware of the drawback (see below):

Here is my setup:

Once:
- add the "Disk Mounter" applet to a panel
- use gconf-editor to uncheck "/apps/nautilus/preferences/media_automount"
(please note, that this will prevent _any_ automatic mounting of _any_ devices)


If you want to use your ipod with banshee/rhythmbox/amarok, just attach it and wait for some seconds. Then you can mount it via the Disk Mounter applet and it will appear in the various programs.

Sure, each and every _other_ external device must now be mounted manually too, but I'm looking for a solution where the automount can be inhibited just for ipods...

Comment 21 Tim Waugh 2009-11-06 15:55:13 UTC
This work-around didn't work for me with Fedora 12 Beta.  I've filed the two bugs reponsible:

bug #533397
bug #533399

Comment 22 Christian Krause 2009-12-17 08:19:17 UTC
Upstream has recently implemented DeviceKit-disks support in podsleuth and banshee.

I've updated both packages to the most recent snapshots (in F12).

Comment 23 Fedora Update System 2009-12-17 08:23:30 UTC
banshee-1.5.3-0.1.20091216git.fc12,podsleuth-0.6.6-0.1.20091216git.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/banshee-1.5.3-0.1.20091216git.fc12,podsleuth-0.6.6-0.1.20091216git.fc12

Comment 24 Fedora Update System 2009-12-18 04:32:58 UTC
banshee-1.5.3-0.1.20091216git.fc12, podsleuth-0.6.6-0.1.20091216git.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update banshee podsleuth'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-13337

Comment 25 Thorsten Scherf 2009-12-18 08:37:52 UTC
using this package, the ipod doesn't appear at all in banshee. using 160gb model which is recognized by podsleuth:

 $ podsleuth 
iPod Found [/org/freedesktop/Hal/devices/volume_uuid_3141_5926]
  * Generic Device Properties
    - Block Device:       /dev/sdb1
    - Mount Point:        /media/IPOD
    - Read Only:          False
    - Volume Size:        160 GiB
  * General iPod Properties
    - Serial Number:      
    - Firewire ID:        
    - Firmware Version:   
    - iPod_Control:       /iPod_Control
    - Extra Capabilities: none
    - Production Info:    Unknown
  * iPod Model Properties
    - Device Class:       
    - Model information could not be determined
      Try a `podsleuth --update --rescan` or visit
      http://banshee-project.org/IpodDataSubmit
  * Image Types Supported
    - Photos:             False
    - Album Art:          False
    - Chapter Images:     False

using the old version worked with the manually device mounting trick. in gtkpod , the device shows up just fine.

tried with these packages:
banshee-1.5.3-0.1.20091216git.fc12.i686
podsleuth-0.6.6-0.1.20091216git.fc12.i686

Comment 26 Thorsten Scherf 2009-12-18 08:41:42 UTC
ok, seems to be a selinux bug:

node=tiffy.tuxgeek.de type=AVC msg=audit(1261125552.271:44149): avc:  denied  { read write } for  pid=18331 comm="mono" name="sdb1" dev=tmpfs ino=1997891 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

node=tiffy.tuxgeek.de type=AVC msg=audit(1261125552.271:44149): avc:  denied  { open } for  pid=18331 comm="mono" name="sdb1" dev=tmpfs ino=1997891 scontext=system_u:system_r:podsleuth_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file

dwalsh added to cc-list.

Comment 27 Thorsten Scherf 2009-12-18 08:45:42 UTC
as a temp workaround you can build a customized policy:

# grep mono /var/log/audit/audit.log |audit2allow -R -M local
# semodule -i local.pp

this fixed it.

Comment 28 Daniel Walsh 2009-12-18 13:28:50 UTC
SELinux is preventing podsleuth form writing to fixed disk.  Allowing this rule, allows the podsleuth applet to write any disk on the system.

We have written a udev plugin to label the podsleuth/ipod disk as removable_t and added rules to allow podsleuth_t to read/write removable_t devices.

https://bugzilla.redhat.com/show_bug.cgi?id=533399

And David, I did  not remove the right for podsleuth to write to all disks on the system.  This access was added in a podsleuth update or never caught before.  So please to not say that I am working to break things on each update.

Comment 29 Thorsten Scherf 2009-12-18 16:12:02 UTC
Dan, using the udev rules worked for me without the need to give access to the raw disk.

Comment 30 Daniel Walsh 2009-12-18 16:26:31 UTC
Yes we need to get podsleuth to ship the udev rule.

Comment 31 Jonathan Colon 2009-12-18 20:44:02 UTC
works for me

iPod Found [/org/freedesktop/Hal/devices/volume_uuid_6E62_964C]
  * Generic Device Properties
    - Block Device:       /dev/sdc1
    - Mount Point:        /media/JOCOLON'S I
    - Read Only:          False
    - Volume Size:        80 GiB
  * General iPod Properties
    - Serial Number:      8M745MYCY5N
    - Firewire ID:        000A2700131382FD
    - Firmware Version:   1.1.2
    - iPod_Control:       /iPod_Control
    - Extra Capabilities: podcast
    - Production Info:    29748 in November, 2007 from factory 8M
  * iPod Model Properties
    - Device Class:       classic
    - Generation:         6
  * Image Types Supported
    - Photos:             True
    - Album Art:          True
    - Chapter Images:     True

Comment 32 Jonathan Colon 2009-12-18 20:52:38 UTC
cannot disconnect the ipod on banshee. open the bug?

[Warn  16:50:16.116] Caught an exception - org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (in `NDesk.DBus.Proxies')
  at PropertiesProxy.Get (System.String propname, System.String ) [0x00000] 
  at Banshee.HalBackend.DkDisk.get_IsReadOnly () [0x00000] 
  at Banshee.HalBackend.Volume.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.get_CanRename () [0x00000] 
  at Banshee.Gui.SourceActions.UpdateActions (Boolean force) [0x00000] 
  at Banshee.Gui.SourceActions.<HandleActiveSourceUpdated>m__87 () [0x00000] 
  at Banshee.Base.ThreadAssist.ProxyToMain (Banshee.Base.InvokeHandler handler) [0x00000] 
  at Banshee.Gui.SourceActions.HandleActiveSourceUpdated (System.Object o, System.EventArgs args) [0x00000] 
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at Banshee.Sources.Source.OnUpdated () [0x00000] 
  at Banshee.Sources.Source.OnPropertyChanged (System.Object o, Hyena.Data.PropertyChangeEventArgs args) [0x00000] 
  at (wrapper delegate-invoke) Hyena.Data.PropertyChangeEventHandler:invoke_void__this___object_PropertyChangeEventArgs (object,Hyena.Data.PropertyChangeEventArgs)
  at (wrapper delegate-invoke) Hyena.Data.PropertyChangeEventHandler:invoke_void__this___object_PropertyChangeEventArgs (object,Hyena.Data.PropertyChangeEventArgs)
  at Hyena.Data.PropertyStore.OnPropertyChanged (System.String propertyName, Boolean added, Boolean removed, System.Object oldValue, System.Object newValue) [0x00000] 
  at Hyena.Data.PropertyStore.Remove (System.String name) [0x00000] 
  at Banshee.Dap.DapSource.Dispose () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.Dispose () [0x00000] 
  at Banshee.Dap.DapService.UnmapDevice (System.String uuid) [0x00000] 
[Warn  16:50:53.796] Caught an exception - org.freedesktop.Hal.NoSuchDevice: No device with id /org/freedesktop/Hal/devices/volume_uuid_6E62_964C (in `NDesk.DBus.Proxies')
  at IDeviceProxy.PropertyExists (System.String ) [0x00000] 
  at Hal.Device.PropertyExists (System.String key) [0x00000] 
  at Hal.Device.get_IsVolume () [0x00000] 
  at Banshee.HalBackend.Volume.Unmount () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.Unmount () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.Eject () [0x00000] 
  at Banshee.Dap.RemovableSource.<Unmap>m__B (System.Object ) [0x00000] 
Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

  at PropertiesProxy.Get (System.String propname, System.String ) [0x00000] 
  at Banshee.HalBackend.DkDisk.get_IsReadOnly () [0x00000] 
  at Banshee.HalBackend.Volume.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.DapPropertiesDialog..ctor (Banshee.Dap.DapSource source) [0x00000] 
  at Banshee.Dap.DapSource.<Initialize>m__D () [0x00000] 
  at Banshee.Gui.SourceActions.OnSourceProperties (System.Object o, System.EventArgs args) [0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Banshee.Gui.GtkBaseClient.Run()
   at Banshee.Gui.GtkBaseClient.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at Banshee.Gui.GtkBaseClient.Startup()
   at Banshee.Gui.GtkBaseClient.Startup(System.String[] args)
   at Nereid.Client.Main(System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.Reflection.Assembly , System.String[] )
   at System.AppDomain.ExecuteAssemblyInternal(System.Reflection.Assembly a, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args)
   at System.AppDomain.ExecuteAssembly(System.String assemblyFile)
   at Booter.Booter.BootClient(System.String clientName)
   at Booter.Booter.Main()

Comment 33 Daniel Walsh 2009-12-18 20:59:00 UTC
Any avc messages generated?

Comment 34 Jonathan Colon 2009-12-18 21:15:23 UTC
nop it only display a message "Disconnecting media player"

im still waiting the disconnection process. jejejeej.

i also see that the ipod finish the synchronization because it display its normal menu

Comment 35 Jonathan Colon 2009-12-18 21:18:18 UTC
banshee display this see the screenshot on the attachment



[Warn  17:14:49.680] Caught an exception - org.freedesktop.Hal.Device.UnknownError: An unknown error occured (in `NDesk.DBus.Proxies')
  at IVolumeProxy.Eject (System.String[] ) [0x00000] 
  at Hal.Volume.Eject (System.String[] args) [0x00000] 
  at Hal.Volume.Eject () [0x00000] 
  at Banshee.HalBackend.Volume.Eject () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.Eject () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.Eject () [0x00000] 
  at Banshee.Dap.RemovableSource.<Unmap>m__B (System.Object ) [0x00000] 
[Warn  17:14:49.681] Caught an exception - org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
 (in `NDesk.DBus.Proxies')
  at PropertiesProxy.Get (System.String propname, System.String ) [0x00000] 
  at Banshee.HalBackend.DkDisk.get_IsReadOnly () [0x00000] 
  at Banshee.HalBackend.Volume.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.PodSleuthDevice.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.get_IsReadOnly () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.get_CanRename () [0x00000] 
  at Banshee.Gui.SourceActions.UpdateActions (Boolean force) [0x00000] 
  at Banshee.Gui.SourceActions.<HandleActiveSourceUpdated>m__87 () [0x00000] 
  at Banshee.Base.ThreadAssist.ProxyToMain (Banshee.Base.InvokeHandler handler) [0x00000] 
  at Banshee.Gui.SourceActions.HandleActiveSourceUpdated (System.Object o, System.EventArgs args) [0x00000] 
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at Banshee.Sources.Source.OnUpdated () [0x00000] 
  at Banshee.Sources.Source.OnPropertyChanged (System.Object o, Hyena.Data.PropertyChangeEventArgs args) [0x00000] 
  at (wrapper delegate-invoke) Hyena.Data.PropertyChangeEventHandler:invoke_void__this___object_PropertyChangeEventArgs (object,Hyena.Data.PropertyChangeEventArgs)
  at (wrapper delegate-invoke) Hyena.Data.PropertyChangeEventHandler:invoke_void__this___object_PropertyChangeEventArgs (object,Hyena.Data.PropertyChangeEventArgs)
  at Hyena.Data.PropertyStore.OnPropertyChanged (System.String propertyName, Boolean added, Boolean removed, System.Object oldValue, System.Object newValue) [0x00000] 
  at Hyena.Data.PropertyStore.Remove (System.String name) [0x00000] 
  at Banshee.Dap.DapSource.Dispose () [0x00000] 
  at Banshee.Dap.Ipod.IpodSource.Dispose () [0x00000] 
  at Banshee.Dap.DapService.UnmapDevice (System.String uuid) [0x00000]

Comment 36 Jonathan Colon 2009-12-18 21:19:41 UTC
Created attachment 379298 [details]
banshee disconnection error

Comment 37 Christian Krause 2009-12-19 17:08:03 UTC
(In reply to comment #30)
> Yes we need to get podsleuth to ship the udev rule.  

I'm working on the problem. Unfortunately the suggested udev rule is not sufficient, because it is possible that certain udev events re-label the devices back to fixed_disk. 

Please see bug 533399 for all details.

Comment 38 Christian Krause 2009-12-19 17:28:03 UTC
(In reply to comment #32)
> cannot disconnect the ipod on banshee. open the bug?
> 
> [Warn  16:50:16.116] Caught an exception -
> org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on
> interface "org.freedesktop.DBus.Properties" doesn't exist
>  (in `NDesk.DBus.Proxies')
>   at PropertiesProxy.Get (System.String propname, System.String ) [0x00000] 
>   at Banshee.HalBackend.DkDisk.get_IsReadOnly () [0x00000] 
>   at Banshee.HalBackend.Volume.get_IsReadOnly () [0x00000] 

Unfortunately I cannot reproduce the problem so far. I can successfully disconnect the Ipod via the menu.

Please open a new bug report for this problem and attach the following information:

- is the devkit-disks-daemon which handles the ipod device still running - just use "ps ax |grep devkit-disks" - there should be at least two deamons:
 2845 ?        S      0:04 /usr/libexec/devkit-disks-daemon
 2846 ?        S      0:04 devkit-disks-daemon: polling /dev/sdb

- please attach (as root) an strace to the devkit daemon (the one with the full name /usr/libexec/devkit-disks-daemon):
e.g.
strace -s 1024 -p 2845 -o /tmp/devkit.log

This will log all activities of the devkit daemon including its dbus communicatio and it may give us some information why the dbus request has failed.

Comment 39 Jonathan Colon 2009-12-20 03:56:53 UTC
successfully open the bug. 

https://bugzilla.redhat.com/show_bug.cgi?id=549036

Comment 40 Christian Krause 2009-12-27 20:30:29 UTC
*** Bug 550753 has been marked as a duplicate of this bug. ***

Comment 41 Fedora Update System 2010-01-08 20:01:18 UTC
banshee-1.5.3-0.1.20091216git.fc12, podsleuth-0.6.6-0.1.20091216git.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 42 aedallan 2010-01-13 09:18:57 UTC
Hi again,

Installed the new banshee release last night. Ipod mounted just fine with full podsleuth recognition and banshee functionality.

This morning it no longer works. At a bit of a loss.


(In reply to comment #41)
> banshee-1.5.3-0.1.20091216git.fc12, podsleuth-0.6.6-0.1.20091216git.fc12 has
> been pushed to the Fedora 12 stable repository.  If problems still persist,
> please make note of it in this bug report.

Comment 43 Thorsten Scherf 2010-01-13 09:29:10 UTC
Have you enabled SELinux in the meantime?! If so, please check comment #28 and BZ #533399.

Comment 44 aedallan 2010-01-13 09:29:48 UTC
Update: 

Unmounting device and remounting via Palimpsest Disk Utility as suggested earlier now works fine.

Comment 45 aedallan 2010-01-13 09:31:02 UTC
(In reply to comment #43)
> Have you enabled SELinux in the meantime?! If so, please check comment #28 and
> BZ #533399.    

No, it is still disabled.


Note You need to log in before you can comment on or make changes to this bug.