You are not logged in.

#1 2017-05-09 13:53:21

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

[openrc] k3b not finding drives

since k3b was updated to work with plasma5, it can't find my optical drives anymore.

$ k3b
20 20
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
QFileInfo::absolutePath: Constructed with empty filename
QUrl("file:///home/panoramix/")
QUrl("file:///home/panoramix")  will be expanded.
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-panoramix'
klauncher not running... launching kdeinit
"K3b CDDB Audio Plugin" "k3baudioprojectcddbplugin"
Loaded plugin "K3b CDDB Audio Plugin"
"K3b FFMpeg Decoder" "k3bffmpegdecoder"
Loaded plugin "K3b FFMpeg Decoder"
"K3b Audio Metainfo Renamer" "k3baudiometainforenamerplugin"
Loaded plugin "K3b Audio Metainfo Renamer"
"K3b SoX Audio Encoder" "k3bsoxencoder"
Loaded plugin "K3b SoX Audio Encoder"
"K3b External Audio Encoder" "k3bexternalencoder"
Loaded plugin "K3b External Audio Encoder"
"K3b Ogg Vorbis Encoder" "k3boggvorbisencoder"
Loaded plugin "K3b Ogg Vorbis Encoder"
"K3b Libsndfile Decoder" "k3blibsndfiledecoder"
Loaded plugin "K3b Libsndfile Decoder"
"K3b Wave Decoder" "k3bwavedecoder"
Loaded plugin "K3b Wave Decoder"
"K3b Musepack Decoder" "k3bmpcdecoder"
Loaded plugin "K3b Musepack Decoder"
"K3b FLAC Decoder" "k3bflacdecoder"
Loaded plugin "K3b FLAC Decoder"
"K3b MAD Decoder" "k3bmaddecoder"
Loaded plugin "K3b MAD Decoder"
"K3b Lame MP3 Encoder" "k3blameencoder"
Loaded plugin "K3b Lame MP3 Encoder"
"K3b Ogg Vorbis Decoder" "k3boggvorbisdecoder"
Loaded plugin "K3b Ogg Vorbis Decoder"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Spawn.ExecFailed" 
 "Cannot launch daemon, file not found or permissions invalid"
Devices: 
------------------------------ 

(K3b::Core) System problems:
 CRITICAL
 PROBLEM:   "No optical drive found." 
 DETAILS:   "K3b did not find any optical device in your system." 
 SOLUTION:  "" 


20 20
22 22
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-panoramix'
kf5.kio.core: KSambaShare: Could not find smb.conf!

This was on my desktop while booting with openrc, when i switched to boot with systemd as PID1 k3b worked as normal.


I rebooted to openrc and checked my xorg log. Found dbus wasn't started correctly, and solved it , see Init #Dbus .

The Error message stayed the same.

NOTES  :
when booting with openrc (99.9% of the time) i don't have a valid logind session
I have Udisks2 installed because some things require it, but until now i never needed its functionality.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#2 2017-05-10 13:55:11

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: [openrc] k3b not finding drives

I looked a bit deeper into what happened with systemd as PID1 wrt udisks2 .
before starting k3b udisks2 was not active at all, after starting it was .

man udisks showed udev and a daemon work together to provide udisks functionality.
The udisks2 pacakge has one systemd service-file in usr/lib/systemd/system/udisks2.service .
I checked that and found it starts the udisksd daemon.


I had not enabled that service however, so what was starting it automagickally ?

Then i remembered the most annoying property of booting systemd :
starting stuff on demand without user interaction or approval .



I booted back into openrc, ran /usr/bin/udisksd in a terminal and k3b in another terminal .
Everything worked as expected.

I'll consider creating an openrc service file for udisks2 .
I vastly prefer having as little daemons running as possible, so whether i'll start udisksd at boot or use a script to start/stop it just for k3b remains to be decided.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB