K3B vs. permissions problem

Hi,

I’m running Rocky Linux 9 with KDE from EPEL. I have a problem with K3B. When I’m trying to burn a CD, I get the following error with what looks like a permissions problem on the device.

I tried adding my user to the cdrom system group, but to no avail.

Gave it another spin by running K3B as root from within a terminal, and everything worked fine.

Any idea how I can fix these permissions ?

On a side note, this bug has been around since Slackware 9.x more than twenty years ago, and it’s been haunting me since then under Slackware, Debian, Libranet, Ubuntu, CentOS, OpenSUSE and now Rocky 8.x and 9.x.

Cheers,

Niki

Have you tried in K3B to click Settings and then the option to Setup System Permissions?

1 Like

Thanks very much ! That did the trick !

1 Like

I have been unable to get K3b to work on my Rocky 9.5 box, so I read this post with interest.
Back when I was first working on it (2 or more years ago) I posted here about it and, as I recall, got no (helpful) replies, so I gave up. Curiously, Brasero doesn’t work either.

I was interested to see if the solution posted here may be related to my problem, so I click Settings and there is no option to setup system permissions! Is it actually called “Setup System Permissions” on your computer?

I get: Show Menubar, Show Toolbar, Show Statusbar, Show Projects Header, Configure Language, Configure Keyboard Shortcuts, Configure Toolbars, and Configure K3b. None of those takes me to anyplace that is called anything even remotely like “Setup System Permissions”.

Is this screen image what you’re talking about:

I have K3b 23.08.5-1.el9, and I got it from epel. what about yours?

Thanks in advance for any further ideas. I hope no one thinks I’m hijacking the thread, as I see it as related. Apologies in advance if you all think I’m wrong. :frowning:

Fred

1 Like

This is it exactly. And no, you’re not hijacking anything. Just apply these permissions and (important) add your user to the cdrom system group.

# useradd -aG cdrom fredex

Log out, log back in (or reboot if you have GDM since it does some weird stuff with your session) and you’re good to go.

Cheers,

Niki

Niki:

Thanks for the suggestion. However I find I"m already in that group. :-{

Try to run k3b as root from a terminal. If you can burn a CD/DVD, then you know it’s most probably a permission problem.

good idea!

however, it starts up and hangs, not responding to any clicks, with this in the terminal window:

$ sudo k3b
[sudo] password for fredex:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
kf.service.sycoca: Service type not found: “application/x-audacity-project+sqlite3”
kf.service.sycoca: Service type not found: “application/x-audacity-project”
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found

Note that I am using the Mate desktop, not KDE, though in every system I’ve run for years, whatever the desktop, installing K3B brings along all the KDE bits it needs.

Not that I have any idea what those diagnostics mean…

Fred

Ah, it was hung waiting for me to close an err msg window. h aving closed that it now sorta works, but still won’t burn a CD. Instead it puts this in the progress window:

writing files to CD:
Writing CD-R
Could not find cdrecord executable
mkisofs crashed.

Trouble is, cdrecord exists.

[fredex@rockybox ~]$ ls -l /usr/bin/cdrecord
lrwxrwxrwx. 1 root root 26 May 3 2023 /usr/bin/cdrecord → /etc/alternatives/cdrecord
[fredex@rockybox ~]$ ls -l /etc/alternatives/cdrecord
lrwxrwxrwx. 1 root root 16 May 3 2023 /etc/alternatives/cdrecord → /usr/bin/cdrskin
[fredex@rockybox ~]$ ls -l /usr/bin/cdrskin
-rwxr-xr-x. 1 root root 175216 May 25 2022 /usr/bin/cdrskin
[fredex@rockybox ~]$

which is the problem I’ve had with K3b all along since installing Rocky, i.e., cdrecord exists, but K3b insists it doesn’t.

As for why mkisofs crashes, I have, at this time, no clue. Is it a result of the “missing” cdrecord, or something else? I dunno.

[fredex@rockybox ~]$ ls -l /usr/bin/mkisofs
lrwxrwxrwx. 1 root root 25 May 3 2023 /usr/bin/mkisofs → /etc/alternatives/mkisofs
[fredex@rockybox ~]$ ls -l /etc/alternatives/mkisofs
lrwxrwxrwx. 1 root root 20 May 3 2023 /etc/alternatives/mkisofs → /usr/bin/genisoimage
[fredex@rockybox ~]$ ls -l /usr/bin/genisoimage
-rwxr-xr-x. 1 root root 587128 Jan 19 2022 /usr/bin/genisoimage
[fredex@rockybox ~]$

same situation, apparently, where K3b doesn’t want to recognize the symbolic links.

attempting to burn an ISO image file gives exactly the same result.

I seem to recall that it USED to write audio to a CD, but now it doesn’t. it just hangs with:

Using cdrdao 1.2.4 - Copyright Andreas Mueller <andreas@daneb.de>
Starting DAO writing at 48x speed…
then it hangs.

In none of the cases above does the “Show Debugging Output” button in the “Writing…” window show any errors.

in the terminal from which I started it, however, I see a bunch of stuff that means little to me:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to ‘/tmp/runtime-root’
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.xmlgui: Shortcut for action “project_burn” “&Burn” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action “project_properties” “&Properties” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.xmlgui: Shortcut for action “track_remove” “Remove” set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found
QObject::connect: No such signal KLineEdit::lostFocus()
QLayout: Attempting to add QLayout “” to QFrame “”, which already has a layout
QLayout: Attempting to add QLayout “” to K3b::EmptyDiscWaiter “”, which already has a layout
QLayout: Attempting to add QLayout “” to K3b::EmptyDiscWaiter “”, which already has a layout
lsof: WARNING: can’t stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
lsof: WARNING: can’t stat() fuse.portal file system /run/user/1000/doc
Output information may be incomplete.
QIODevice::seek (K3b::AudioTrackReader): The device is not open
kf.kio.widgets.kdirmodel: No node found for item that was just removed: QUrl(“file:///root/k3b_audio_2_.toc”)
kf.notifications: Audio notification requested, but sound file from notifyrc file was not found, aborting audio notification
kf.kio.widgets.kdirmodel: No node found for item that was just removed: QUrl(“file:///root/k3b_audio_2_01.wav”)
QProcess: Destroyed while process is still running.

I wonder particularly about the items I’ve bolded, above.

If you have any inspirations on what is wrong I’d LOVE to hear 'em! As it is when I need to burn I copy to a USB thumb drive and fire up an ANCIENT HP laptop and do the actual burns there.

Fred

selinux maybe interfering?

You did good work showing all the alternatives and symlinks, all the way to the real programs.

There is potential for conflicts in your setup.

There are lots of programs called “cd_this”, “cd_that”, and lots of alternative symlinks that can point all over the place. Some of these programs came from official repos, others came from epel, it could even go wrong depending on what order you installed everything.

What you really need is the original dnf transcript showing all dependencies for each cd related program you installed. Maybe you installed brasero before K3B, who knows.

On my system, I don’t have ‘genisoimage-1.1.11-48.el9.x86_64’ installed.

ls -l /usr/bin/genisoimage
lrwxrwxrwx. 1 root root 37 Aug  7  2022 /usr/bin/genisoimage -> /etc/alternatives/mkisofs-genisoimage
ls -l /etc/alternatives/mkisofs-genisoimage
lrwxrwxrwx. 1 root root 18 Aug  7  2022 /etc/alternatives/mkisofs-genisoimage -> /usr/bin/xorrisofs
ls -l /usr/bin/xorrisofs
lrwxrwxrwx. 1 root root 7 May 25  2022 /usr/bin/xorrisofs -> xorriso

Yikes, and I haven’t even found the real program yet!

Then there’s more confusion; ‘brasero’ has it’s own ‘libburn’, but there’s also a system installed ‘libburn’. How do we know which one it’s using?

If you had a triple boot computer, you could create a clean install of Rocky, and then install them one at a time, avoiding any conflicts, but that’s a lot of work, and you can’t really test in a vm guest unless you can get the optical drive working with a virtual machine.

Well, it has been a couple years (at least) but I think I installed brasero AFTER k3b, k3b being my preferred tool, because k3b didn’t work.

A possible way forward is to audit all cd related software and all dependencies on your system, do clean uninstall of all, and check that every file has gone, then install just one package and see if it works, if not, clean uninstall, then install a new one, and so on…

K3B has a src file where it looks for “default external programs”. It then does various “feature tests” on each program to decide which features to enable inside K3B.

About two years ago, big changes were made in K3B to the way it looks for external programs and features. It’s worth checking your installed version includes these latest changes.

https://invent.kde.org/multimedia/k3b/-/commit/0ede72063c38c103acf72ce513185a3cc760fac4

How would I know if it has those changes, or not? I believe it is the latest K3b available for Rocky 9.x (at least from the source I got it from), as doing dnf update does not offer a K3b. therefore it would seem to make sense to assume that it does contain those changes.

I installed then then current release of Rocky 9.x in early 2023 (Feb, Mar???) and K3b immediately failed to work and hasn’t changed its mind since.

Does it make sense to assume that since no one else on this board has admitted to having the same problems that it works for everybody else? If so, there must be something unique about my installation.

Fred

I just did dnf remove of k3b, cdrdao, cdrskin and k3b-libs then reinstalled k3b. Unsurprisingly, it still doesn’t work. First run of k3b pops up a “System Configuration Problem” report that says:

Unable to find cdrecord executable
K3b uses cdrecord to actually write CDs.
Solution: Install the cdrtools package which contains cdrecord.

Guess what? There ISN’T any cdrtools package in Rocky 9.

subsequently running k3b (as myself) from a terminal results in this:

$ k3b
kf.service.sycoca: Service type not found: “application/x-audacity-project+sqlite3”
kf.service.sycoca: Service type not found: “application/x-audacity-project”
kf.service.services: KServiceTypeTrader: serviceType “ThumbCreator” not found

which I personally don’t find helpful.

Before doing that small dnf remove, I looked at doing this:

$ sudo dnf remove cdparanoia cdrdao cdrskin libcdio libcddb libcdr k3b

which got this loooong list of things it wanted to delete:

Dependencies resolved.

Package Arch Version Repository Size

Removing:
cdparanoia x86_64 10.2-38.el9 @epel 120 k
cdrdao x86_64 1.2.4-9.el9 @epel 1.3 M
cdrskin x86_64 1.5.4-4.el9 @appstream 197 k
k3b x86_64 1:23.08.5-1.el9 @epel 31 M
libcddb x86_64 1.3.2-35.el9 @epel 207 k
libcdio x86_64 2.1.0-6.el9 @AppStream 627 k
libcdr x86_64 0.1.7-3.el9 @AppStream 854 k
Removing dependent packages:
atril-caja x86_64 1.26.2-1.el9 @epel 34 k
atril-thumbnailer x86_64 1.26.2-1.el9 @epel 583
caja x86_64 1.26.3-1.el9 @epel 4.2 M
caja-actions x86_64 1.26.0-3.el9 @epel 1.7 M
caja-open-terminal x86_64 1.26.1-3.el9 @epel 44 k
engrampa x86_64 1.26.2-1.el9 @epel 13 M
ffmpeg-free x86_64 5.1.4-3.el9 @epel 2.2 M
gstreamer1-plugins-ugly-free
x86_64 1.22.1-1.el9 @appstream 331 k
gvfs-fuse x86_64 1.48.1-4.el9 @AppStream 50 k
gvfs-gphoto2 x86_64 1.48.1-4.el9 @AppStream 182 k
gvfs-mtp x86_64 1.48.1-4.el9 @AppStream 186 k
gvfs-smb x86_64 1.48.1-4.el9 @AppStream 113 k
k3b-devel x86_64 1:23.08.5-1.el9 @epel 394 k
libcdio-devel x86_64 2.1.0-6.el9 @crb 5.7 M
libreoffice-graphicfilter
x86_64 1:7.1.8.1-15.el9_5 @appstream 994 k
libreoffice-impress x86_64 1:7.1.8.1-15.el9_5 @appstream 1.8 M
seahorse-caja x86_64 1.18.5-1.el9 @epel 841 k
vlc-plugins-extra x86_64 1:3.0.21-9.el9 @epel 2.1 M
x264 x86_64 0.163-6.20210613git5db6aa6.el9 @rpmfusion-free-updates
179 k
Removing unused dependencies:
aalib-libs x86_64 1.4.0-0.42.rc5.el9 @epel 160 k
aribb24 x86_64 1.0.3^20160216git5e9be27-1.el9 @epel 83 k
asdcplib x86_64 2.10.38-5.el9 @epel 1.7 M
caja-actions-doc noarch 1.26.0-3.el9 @epel 24 M
caja-core-extensions x86_64 1.26.3-1.el9 @epel 65 k
caja-extensions-common noarch 1.26.1-3.el9 @epel 806 k
cdparanoia-libs x86_64 10.2-38.el9 @epel 114 k
daala-libs x86_64 0-21.20200724git694d4ce.el9 @epel 453 k
dvd+rw-tools x86_64 7.1-36.el9 @epel 380 k
faad2-libs x86_64 1:2.10.1-1.el9 @rpmfusion-free-updates
505 k
genisoimage x86_64 1.1.11-48.el9 @epel 1.1 M
gpac-libs x86_64 2.0.0-1.el9 @rpmfusion-free-updates
8.8 M
gvfs x86_64 1.48.1-4.el9 @AppStream 1.3 M
k3b-libs x86_64 1:23.08.5-1.el9 @epel 2.9 M
kf5-attica x86_64 5.115.0-1.el9 @epel 664 k
kf5-kfilemetadata x86_64 5.115.0-1.el9 @epel 1.1 M
kf5-knewstuff x86_64 5.115.0-1.el9 @epel 3.8 M
kf5-knotifyconfig x86_64 5.115.0-1.el9 @epel 377 k
kf5-libkcddb x86_64 23.08.5-1.el9 @epel 1.0 M
kf5-libkcddb-doc noarch 23.08.5-1.el9 @epel 465 k
kf5-syndication x86_64 1:5.115.0-1.el9 @epel 613 k
ladspa x86_64 1.13-28.el9 @crb 157 k
leptonica x86_64 1.80.0-4.el9.1 @appstream 2.9 M
libass x86_64 0.17.1-1.el9 @epel 246 k
libavc1394 x86_64 0.5.4-17.el9 @epel 148 k
libavdevice-free x86_64 5.1.4-3.el9 @epel 227 k
libavfilter-free x86_64 5.1.4-3.el9 @epel 4.3 M
libbs2b x86_64 3.1.0-27.el9 @epel 65 k
libcaca x86_64 0.99-0.69.beta20.el9 @epel 861 k
libcdio-paranoia x86_64 10.2+2.0.1-6.el9 @AppStream 179 k
libcryptui x86_64 3.12.2-24.el9 @epel 4.2 M
libdc1394 x86_64 2.2.6-7.el9 @epel 352 k
libdca x86_64 0.0.7-7.el9 @epel 225 k
libdvbpsi x86_64 1.3.3-5.el9 @epel 284 k
libebml x86_64 1.4.5-1.el9 @epel 186 k
libfreehand x86_64 0.1.2-11.el9 @AppStream 454 k
libiec61883 x86_64 1.2.0-29.el9 @epel 86 k
libkate x86_64 0.4.1-24.el9 @epel 123 k
libmatroska x86_64 1.6.3-3.el9 @epel 758 k
libmicrodns x86_64 0.2.0-4.el9 @epel 57 k
libmpcdec x86_64 1.2.6-28.el9 @epel 47 k
libmpeg2 x86_64 0.5.1-24.el9.0.1 @appstream 178 k
libmspub x86_64 0.1.4-17.el9 @AppStream 416 k
libmtp x86_64 1.1.18-6.el9 @AppStream 518 k
libmusicbrainz5 x86_64 5.1.0-18.el9 @epel 598 k
libmysofa x86_64 1.2.1-1.el9 @epel 73 k
libnfs x86_64 5.0.2-2.el9 @epel 455 k
libpagemaker x86_64 0.0.4-13.el9 @AppStream 159 k
libqxp x86_64 0.0.2-11.el9 @AppStream 317 k
libraw1394 x86_64 2.1.2-14.el9 @epel 164 k
libreoffice-ogltrans x86_64 1:7.1.8.1-15.el9_5 @appstream 281 k
libspatialaudio x86_64 3.1-5.20200406gitd926a2e.el9 @epel 1.3 M
libssh2 x86_64 1.11.0-1.el9 @epel 305 k
libtiger x86_64 0.3.4-23.el9 @epel 89 k
libupnp x86_64 1.14.12-1.el9 @epel 265 k
libusal x86_64 1.1.11-48.el9 @epel 469 k
libusb x86_64 1:0.1.7-5.el9 @appstream 61 k
libvisio x86_64 0.1.7-9.el9 @AppStream 685 k
libvpl x86_64 1:2.14.0-1.el9 @epel 405 k
libzmf x86_64 0.0.2-18.el9 @AppStream 189 k
lilv-libs x86_64 0.24.14-3.el9 @epel 134 k
lirc-libs x86_64 0.10.0-36.el9 @epel 362 k
lv2 x86_64 1.18.8-4.el9 @epel 373 k
openal-soft x86_64 1.19.1-16.el9 @appstream 1.1 M
poppler-qt5 x86_64 21.01.0-21.el9 @appstream 622 k
protobuf-lite x86_64 3.14.0-13.el9 @appstream 782 k
rubberband x86_64 3.1.3-2.el9 @epel 1.7 M
schroedinger x86_64 1.0.11-26.el9 @epel 918 k
serd x86_64 0.30.12-2.el9 @epel 132 k
sord x86_64 0.16.10-2.el9 @epel 109 k
speexdsp x86_64 1.2.0-5.el9 @appstream 513 k
sratom x86_64 0.6.10-2.el9 @epel 47 k
tesseract x86_64 4.1.1-7.el9 @appstream 3.3 M
tesseract-langpack-eng noarch 4.1.0-3.el9 @appstream 3.9 M
tesseract-tessdata-doc noarch 4.1.0-3.el9 @appstream 15 k
vamp-plugin-sdk x86_64 2.9.0-4.el9 @epel 523 k
vid.stab x86_64 1.1.0-14.20201110gitf9166e9.el9 @epel 97 k
x264-libs x86_64 0.163-6.20210613git5db6aa6.el9 @rpmfusion-free-updates
2.7 M
xerces-c x86_64 3.2.5-1.el9 @epel 3.6 M

Transaction Summary

Remove 105 Packages

I have NO IDEA why it wants to remove tesseract, or xerces-c (whatever that is), or schroedinger, or libusb, just to name a few, but I am uncomfortable with removing 105 things in one swell foop just to see what happens, so I didn’t do it.

I’m tempted to go back to epel and see if I can find an older version of k3b (and its necessary aux files) just to see if I can make it all work.

Thanks, once again, for all your attempts to help!

Fred

For what it’s worth, k3b works fine for me, using xorriso to provide cdrecord.

But, it doesn’t really, it’s pointing to cdrskin.

xorriso doesn’t really provide cdrecord, it provides a pretend version of it, and maybe that’s all that K3B needs to find what it’s looking for.

but it is a symbolic link named cdrecord which, except for the tests for cdrecord features in the code, should represent cdrecord. I guess it is the feature tests that make it fail.

Fred