[Bug 788886] New: CDEmu daemon not working
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c0 Summary: CDEmu daemon not working Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i686 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: opera1818@yandex.ru QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (X11; Linux i686; U; ru) Presto/2.10.289 Version/12.02 When run manually I get it: ~> cdemu load 0 ~/1/opt/xensource/packages/iso/xs-tools-6.0.0.iso ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/cdemu-daemon-session.sh exited with status 255 ERROR: Failed to connect to daemon (bus: 'session')! My Next Step: ~> cat /usr/sbin/cdemud-launch #!/bin/sh modprobe -q sg; modprobe -q vhba; exec /usr/bin/cdemud ""; ~> su - # cdemud-launch Starting CDEmu daemon with following parameters: - num devices: 1 - ctl device: /dev/vhba_ctl - audio driver: null - bus type: session In other console: ~> lsmod | egrep "vhba|sg" vhba 17504 1 sg 35635 0 ~> cdemu load 0 ~/1/opt/xensource/packages/iso/xs-tools-6.0.0.iso ERROR: Failed to connect to CDEmu daemon: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/cdemu-daemon-session.sh exited with status 255 ERROR: Failed to connect to daemon (bus: 'session')! Then I create a file /etc/udev/rules.d/60-vhba.rules: KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="users" Also I do the following: # modprobe -r vhba sg # cdemud-launch ~> cdemu load 0 ~/1/opt/xensource/packages/iso/xs-tools-6.0.0.iso ~> cdemu status Devices' status: DEV LOADED FILENAME 0 1 /home/aliaksei/1/opt/xensource/packages/iso/xs-tools-6.0.0.iso 1 0 How to solve a problem without file? Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c1 Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jren@suse.com InfoProvider| |opera1818@yandex.ru --- Comment #1 from Jiaying ren <jren@suse.com> 2012-11-15 12:22:30 UTC --- Hi¬aleksei,this problem occured in KED or Gnome? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c2 aleksei P. <opera1818@yandex.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|opera1818@yandex.ru | --- Comment #2 from aleksei P. <opera1818@yandex.ru> 2012-11-15 23:57:08 UTC --- In kde, but I think it doesn't matter. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c3 Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |opera1818@yandex.ru AssignedTo|bnc-team-screening@forge.pr |kde-maintainers@suse.de |ovo.novell.com | --- Comment #3 from Jiaying ren <jren@suse.com> 2012-11-19 02:47:05 UTC --- (In reply to comment #2)
In kde, but I think it doesn't matter. How did you get it installed?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c4 Christian Trippe <ctrippe@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |ctrippe@opensuse.org InfoProvider|opera1818@yandex.ru | AssignedTo|kde-maintainers@suse.de |jengelh@inai.de --- Comment #4 from Christian Trippe <ctrippe@opensuse.org> 2012-11-19 18:56:24 UTC --- @Jiaying Ren: 'osc maintainer -e openSUSE:Factory name-of-source-package' tells you the maintainer of a package. (Just in case you did not know.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c5 --- Comment #5 from Jan Engelhardt <jengelh@inai.de> 2012-11-19 20:55:16 CET --- cdemu-daemon is supposed to be run as user. There is no udev rule file by default because that is a site-specific security decision. Some users may want 0666, others may want {0660 with a cdemu group}. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c6 --- Comment #6 from Jan Engelhardt <jengelh@inai.de> 2012-11-19 21:01:58 CET --- JFYI, for mere ISO9660/etc. filesystem images, you don't need vhba, but can use losetup. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c7 --- Comment #7 from aleksei P. <opera1818@yandex.ru> 2012-11-19 21:56:17 UTC ---
How did you get it installed? Have you tried mounting the images?
http://cdemu.sourceforge.net/about/vhba/
As such, depending on the configuration (i.e. if CDEmu daemon is to be run in session, non-root mode), it might be a good idea to include an udev rule to set up appripriate permissions. E.g.:
KERNEL=="vhba_ctl", NAME="%k", MODE="0660", OWNER="root", GROUP="cdrom" For example in arch: https://www.archlinux.org/packages/community/i686/vhba-module/
View the file list for vhba-module: ... usr/lib/udev/rules.d/60-vhba.rules
+ https://www.archlinux.org/packages/community/i686/cdemu-daemon/
.... usr/lib/systemd/system/cdemu-daemon.service ...
cdemu-daemon is supposed to be run as user.
# modprobe -r vhba # cd /etc/udev/rules.d/ # mv 60-vhba.rules 60-vhba.rules.backup # modprobe vhba ~> /usr/bin/cdemud Starting daemon in local mode with following parameters: - num devices: 1 - ctl device: /dev/vhba_ctl - audio driver: null - bus type: session cdemu0: Device: failed to open control device /dev/vhba_ctl! cdemud: Daemon: failed to initialize device 0! Daemon initialization failed: Device initialization failed. # modprobe -r vhba # mv 60-vhba.rules.backup 60-vhba.rules # modprobe vhba ~> /usr/bin/cdemud Starting daemon in local mode with following parameters: - num devices: 1 - ctl device: /dev/vhba_ctl - audio driver: null - bus type: session In other console: ~> cdemu status Devices' status: DEV LOADED FILENAME 0 0 N/A
There is no udev rule file by default because that is a site-specific security decision. Some users may want 0666, others may want {0660 with a cdemu group}.
Therefore it is necessary to find a compromise. I think a normal user should not: /sbin/yast2 sysconfig set MODULES_LOADED_ON_BOOT="vhba" touch /etc/udev/rules.d/60-vhba.rules -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c8 --- Comment #8 from aleksei P. <opera1818@yandex.ru> 2012-11-19 22:21:03 UTC --- Additional information: zypper se -s digikam Reading installed packages... S | Name | Type | Version | Arch | Repository --+--------------+---------+-------------+-------------+------------------- i | cdemu-client | package | 1.5.0-2.1.1 | noarch | openSUSE-Oss i | cdemu-daemon | package | 1.5.0-2.1.2 | i586 | openSUSE-Oss -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=788886 https://bugzilla.novell.com/show_bug.cgi?id=788886#c9 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Jan Engelhardt <jengelh@inai.de> 2013-04-07 20:36:33 CEST --- cdemu 2.0 is in the update channel since a while. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com