View previous topic :: View next topic |
Author |
Message |
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 5:51 pm Post subject: kcdemu isnt working anymore (at least) after the upgrade |
|
|
Hello. Today ive noticed that cdemu was upgraded from 3.2.4 to 3.2.5 and there was a message in emerge about that upgrade something like "On openrc system the deamon cannot start automatically so i put new file in /etc/module-load.d" Actually i`m already had such file (named differently) with the same contents - just the "vhba" word in it. So i removed my file and left only the maintainer`s version there. Then i rebooted my pc and tried to mount some iso (using the menu in kde). Nothing happened. Then i`ve checked lsmod and dmesg
Code: | $ lsmod |grep vhba
vhba 20480 0
|
Code: | $ dmesg |grep vhba
[ 2.793166] vhba: loading out-of-tree module taints kernel.
[ 2.793389] scsi host6: vhba
|
It seems that everything was ok. but still i cant load any isos and kcdemu program dont start anymore saying "Unable to connect to the CDemu daemon". How can i make it work again (without switching to that damn systemd of course)? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun May 30, 2021 6:30 pm Post subject: |
|
|
Try
Code: |
modprobe vhba
/usr/bin/cdemu-daemon --config-file "%h/.config/cdemu-daemon"
|
Does it start?
Is dbus running? _________________
|
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 8936
|
Posted: Sun May 30, 2021 6:41 pm Post subject: |
|
|
Alternatively you could check if really app-cdr/dolphin-plugins-mountiso is all you need. |
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 6:50 pm Post subject: |
|
|
alamahant wrote: | Try
Code: |
...
/usr/bin/cdemu-daemon --config-file "%h/.config/cdemu-daemon"
|
Does it start?
Is dbus running? |
After the last string yes it starts to work fine (vhba module is already loaded). But how can i make that daemon to start automatically at the boot time?
rc-update |grep cdemu gives me nothing (and thats probably okay since openrc cannot start the daemon anymore) but are there any alternatives except manual? |
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 6:53 pm Post subject: |
|
|
asturm wrote: | Alternatively you could check if really app-cdr/dolphin-plugins-mountiso is all you need. |
Probably not cause sometimes i need to mount even mdf files and so on. It`s better to have something "daemon-tools-like" than just an ordinary iso mounter. And kcdemu worked fine that way until now. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun May 30, 2021 7:07 pm Post subject: |
|
|
If you run
equery f cdemu-daemon
you will get
Code: |
eqf cdemu-daemon
* Searching for cdemu-daemon ...
* Contents of app-cdr/cdemu-daemon-3.2.5:
/etc
/etc/modules-load.d
/etc/modules-load.d/vhba.conf
/usr
/usr/bin
/usr/bin/cdemu-daemon
/usr/lib
/usr/lib/systemd
/usr/lib/systemd/user
/usr/lib/systemd/user/cdemu-daemon.service
/usr/share
/usr/share/dbus-1
/usr/share/dbus-1/services
/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
/usr/share/doc
/usr/share/doc/cdemu-daemon-3.2.5
/usr/share/doc/cdemu-daemon-3.2.5/AUTHORS
/usr/share/doc/cdemu-daemon-3.2.5/README.bz2
/usr/share/locale
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/cdemu-daemon.mo
/usr/share/locale/sl
/usr/share/locale/sl/LC_MESSAGES
/usr/share/locale/sl/LC_MESSAGES/cdemu-daemon.mo
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/cdemu-daemon.8.bz2
|
What happens is
Code: |
/usr/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service
|
calls
Code: |
/usr/lib/systemd/user/cdemu-daemon.service
|
which in turn invokes
Code: |
/usr/bin/cdemu-daemon --config-file "%h/.config/cdemu-daemon"
|
This should happen automatically if dbus is enabled.
If for some reason this is not the case
either create an openrc-init script, an /etc/local.d/*.start script or more easily a cron job @reboot executing the last command. _________________
|
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 7:32 pm Post subject: |
|
|
I`ve found that message
Code: | pkg_postinst() {
elog "As of 3.2.5, cdemu-daemon no longer supports autoloading"
elog "on non-systemd systems. OpenRC users have to start it manually."
elog
elog "We install /etc/modules-load.d/vhba.conf to load the module"
elog "automatically, and D-BUS autolaunch will start cdemu-daemon user"
elog "service."
} |
So the main problem is D-BUS autolaunch i think. How can i check that d-bus module is working fine? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun May 30, 2021 7:35 pm Post subject: |
|
|
Quote: |
So the main problem is D-BUS autolaunch i think. How can i check that d-bus module is working fine?
|
Code: |
rc-service dbus status
rc-status boot default | grep dbus
|
_________________
|
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 7:48 pm Post subject: |
|
|
alamahant wrote: |
Code: |
rc-service dbus status
rc-status boot default | grep dbus
|
|
And that`s fine.
Code: | $ rc-service dbus status
* status: started
$ rc-status boot default | grep dbus
dbus [ started ] |
But still there is no cdemu daemon running. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun May 30, 2021 8:05 pm Post subject: |
|
|
ps -ef | grep cdemu-daemon | grep -v colour
OR
ps -C cdemu-daemon
It will not be visible via rc commands because it is running via dbus. _________________
|
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 8:13 pm Post subject: |
|
|
alamahant wrote: | ps -ef | grep cdemu-daemon
It will not be visible via rc commands because it is running via dbus. |
No, theres nothing except that "grep" part itself. |
|
Back to top |
|
|
Amon2501 Tux's lil' helper
Joined: 12 Dec 2018 Posts: 131
|
Posted: Sun May 30, 2021 9:22 pm Post subject: |
|
|
Digged further and it seems that problem is very similar (but not exact) as this one. The same message about "Timeout was reached (24)" when trying the Code: | dbus-launch cdemu status | command or when gcdemu is started instead of kde_cdemu (i installed it just to test). But they`re talking about ubuntu and there is no such package as "dbus-service-session" in Gentoo. |
|
Back to top |
|
|
|