Share

CDemu - a virtual CD/DVD drive for Linux

Tracker: Bugs

5 Jaunty cdemu-daemon package fails to setup - ID: 2783291
Last Update: Settings changed ( hstokset )

I tried installing the cdemu-daemon package for Ubuntu Jaunty from
<http://ppa.launchpad.net/cdemu/ppa/ubuntu>, but it fails at the "setting
up" stage.

The first error I get is
An override for "/usr/bin/cdemud" already exists, aborting
This can be worked around by removing the line "root cdemu 2755
/usr/bin/cdemud" from /var/lib/dpkg/statoverride, and then installing the
package. Removing the package and reinstalling it does not work around this
problem.

The second problem is the start up script fails, and thus causing the setup
script to fail too. I may be having the same problem as Bug 2749590. I have
lines like these in /var/log/syslog
kernel: [ 322.000319] scsi 4:0:0:0: abort 767
kernel: [ 332.000426] scsi 4:0:0:0: abort 767
kernel: [ 332.000444] scsi 4:0:0:0: Device offlined - not ready after
error recovery
cdemud[5790]: cdemu0: __cdemud_daemon_build_device_mapping_callback:
error while performing ioctl; device mapping info will not be available

The output from /etc/init.d/cdemu start is:
* Starting CDEmu daemon * Waiting for /dev/vhba_ctl to be created...
[ OK ]
* Starting cdemud daemon...
[fail]

[fail]

But the cdemud process stays running. I can use cdemu to load an image and
it shows in the status, but I cannot access it in the file system. KDE does
not detect a new removable device, and the program mountpy does not find it
either.


Nobody/Anonymous ( nobody ) - 2009-04-28 23:06

5

Closed

Fixed

Henrik Stokseth

cdemu-daemon

None

Public


Comments ( 10 )

Date: 2009-09-28 23:59
Sender: hstoksetAccepting Donations

Thanks for confirming it.



Date: 2009-09-28 20:14
Sender: yaohan

The new packages on PPA solved the problem. Thanks!


Date: 2009-09-28 16:44
Sender: hstoksetAccepting Donations

@yaohan: svn now has scripts to build ubuntu packages. and new packages
were uploaded.

do you have time to check if the problem still persists?



Date: 2009-05-08 20:28
Sender: yaohan

Is there a script to build Jaunty deb packages from the SVN checkout, or
are there instructions for completely removing the install from SVN after
testing? I'd like to try SVN but I'm not sure if I can easily clean up
afterwards.


Date: 2009-05-02 18:02
Sender: mrok

Any chance of testing with current SVN?
I've tested the packages from PPA on Jaunty VM, and the daemon indeed
fails to start (didn't get the 'abort 767', though - the whole thing seemed
very much like #2749590). Current SVN seemed to work OK, though.


Date: 2009-04-29 19:19
Sender: yaohan

I used aptitude purge and then reinstall the packages, and they were able
to setup successfully. However, when I restarted X session cdemu was not
launched, and I don't see anything about cdemu in ~/.xsession-errors or
/var/log/Xorg.0.log.

Then I edited /etc/defaults/cdemu-daemon to make it run at startup again,
and running /etc/init.d/cdemu-daemon start again gives "[OK] [fail]
[fail]". I think the reason package setup failed for me was because
cdemu-daemon was configured to run at start up, so the post-install script
tries to run the init script, and for another reason the init script is
failing on my system. Then the package is in "unconfigured" state, but it
probably already wrote the statoverride line, so when apt tries to
configure it again, it gives the "override already exists" error. But
anyway, purging and reinstalling gets around the package setup problem.

However, cdemu is still not actually creating the virtual drives when I
load an image. Should I ask about this on mailing list?


Date: 2009-04-29 18:58
Sender: hstoksetAccepting Donations

For the record the packages installs and works just fine here, and I just
tested the init script. I'll test installation on a fresh system as well
soon.

I'm afraid I have no clue why you get that "abort 767" message. The second
error message about device mapping is most likely because vhba already
stopped working (so it's actually misleading).




Date: 2009-04-29 16:45
Sender: yaohan

I already have set cdemu daemon to run at system start up by editing
/etc/defaults/cdemu-daemon. It was working when I was using Ubuntu
Intrepid; I could load an image and mountpy would automatically detect and
mount the new file system. After I upgraded to Ubuntu Jaunty the init
script started failing like I described, and although cdemud runs and can
interact with the client, the devices don't appear to be created when I
load an image.

I should be using the default kernel from Ubuntu. This is the output from
the commands you asked:

% uname -r
2.6.28-11-generic
% cat /boot/config-`uname -r` | grep CONFIG_CHR_DEV_SG
CONFIG_CHR_DEV_SG=y
% cat /boot/config-`uname -r` | grep CONFIG_BLK_DEV_SR
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set



Date: 2009-04-29 16:04
Sender: hstoksetAccepting Donations

For one do a PURGE to get rid of all old configuration files (!) before
installing new packages. Running "sudo apt-get purge cdemu-daemon
libmirage1 vhba-dkms" should do the trick. Remove the statoverride manually
if it still is there after the purge.

Second, the init script is disabled by default. The cdemu daemon is
started when you log into X so you'll have to log out then log in again for
it to start. It can be enabled/disabled via the command
"gnome-session-properties" or by editing "/etc/default/cdemu-daemon".

As for the device mapping error... SCSI support is built into the standard
Ubuntu kernel so it shouldn't be an issue, I guess you use a customized
kernel? But in any case this error pops up if the sr and sg_mod modules
aren't loaded before vhba is.

Can you tell me what the following commands says just to check?
uname -r
cat /boot/config-`uname -r` | grep CONFIG_CHR_DEV_SG
cat /boot/config-`uname -r` | grep CONFIG_BLK_DEV_SR



Date: 2009-04-28 23:12
Sender: yaohan

Sorry I forgot to login when reporting.


Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
status_id Open 2009-09-28 23:59 hstokset
resolution_id None 2009-09-28 23:59 hstokset
allow_comments 1 2009-09-28 23:59 hstokset
close_date - 2009-09-28 23:59 hstokset
assigned_to nobody 2009-06-29 07:20 hstokset
assigned_to hstokset 2009-04-29 19:11 hstokset
assigned_to nobody 2009-04-29 13:04 hstokset