Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kcdemu isnt working anymore (at least) after the upgrade
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 5:51 pm    Post subject: kcdemu isnt working anymore (at least) after the upgrade Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 30, 2021 6:30 pm    Post subject: Reply with quote

Try
Code:

modprobe vhba
/usr/bin/cdemu-daemon --config-file "%h/.config/cdemu-daemon"

Does it start?
Is dbus running?
_________________
:)
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Sun May 30, 2021 6:41 pm    Post subject: Reply with quote

Alternatively you could check if really app-cdr/dolphin-plugins-mountiso is all you need.
Back to top
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 30, 2021 7:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 7:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 30, 2021 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun May 30, 2021 8:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amon2501
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2018
Posts: 131

PostPosted: Sun May 30, 2021 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum