Flatpak not starting
Is there an existing issue for this? (Please read the description)
- [x] I have searched the existing issues
Current Behavior
I just updated the flatpak version of Spotube and it won't start... when I try to launch it from the terminal I get:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
Expected Behavior
The app should launch
Steps to reproduce
- Attempted to just launch the app.
- Tried to Lauch from the terminal
- Tried removing / reinstalling
Logs
I don't know how to get logs if the app failed to launch
Operating System
Linux
Spotube version
v5.0.0
Installation source
Flathub (Flatpak)
Additional information
I'm running Manjaro XFCE
The AUR version works well...
Self grab
- [ ] I'm ready to work on this issue!
Here is an attempt to run it with -vvv
/usr/bin/flatpak run -vvv --branch=stable --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube @@u %u @@
Hi. Not sure if this is helpful but I have the same issue on Mint with KDE. Thanks for your work
I can confirm the same issue with the flatpak version on Opensuse Tumbleweed. Same error.
flatpak run com.github.KRTirtho.Spotube
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
Same for me:
uname -a Linux mon-smartphone 6.7.5-1-MANJARO-ARM #1 SMP PREEMPT Sat Feb 17 14:30:32 UTC 2024 aarch64 GNU/Linux
i tried many things to fix this problem, nothing is working, this is a flatpak packaging issue and it seems to have happened before, not much we can do about it except sit and wait for the devs to fix the flatpak version, for now u can use the AUR version if ur on arch using paru/yay -S spotube-bin, DO NOT install the spotube one, the official docs say this very command so just go with that
Same for me. Just installed it on Bazzite and I'm greeted with the same error at terminal.
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
Same issue on fedora 42 6.16.7-200.fc42.x86_64
F: Running: '/usr/bin/bwrap --args 25 ldconfig -X -C /run/ld-so-cache-dir/ec20654658836d2584634592a9879335d6cb243d037d7b3d4747c9c65dee5c64.nUcTOK'
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
➜ ~ flatpak --verbose run com.github.KRTirtho.Spotube
F: No installations directory in /etc/flatpak/installations.d. Skipping
F: Opening system flatpak installation at path /var/lib/flatpak
F: Opening user flatpak installation at path /home/akza/.local/share/flatpak
F: Opening user flatpak installation at path /home/akza/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Skipping parental controls check for app/com.github.KRTirtho.Spotube/x86_64/stable since parental controls are disabled globally
F: Opening user flatpak installation at path /home/akza/.local/share/flatpak
F: Opening system flatpak installation at path /var/lib/flatpak
F: Regenerating ld.so.cache /home/akza/.var/app/com.github.KRTirtho.Spotube/.ld.so/9bbeeba440480ffdba9b94306cba9446b3b393e8ec8f7feb40c865f1ea96b62e
F: /var/lib/flatpak/runtime/org.gnome.Platform/x86_64/48/96298e7709cbcd531a61ea647b7a5a91db15582daa2423e8ed4ebec48778735d/files/lib32 does not exist
F: Running: '/usr/bin/bwrap --args 24 ldconfig -X -C /run/ld-so-cache-dir/9bbeeba440480ffdba9b94306cba9446b3b393e8ec8f7feb40c865f1ea96b62e.1icARR'
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
➜ ~
Same error as others mentioned. Verbose log
Same problem, Arch | Linux 6.16.3 | KDE6.4.5.
+1 from Fedora Kinoite 42.20250917
Logs from: flatpak run -vvv com.github.KRTirtho.Spotube https://paste.ente.dev/?a802c5dde2fd7e3e#EQk7juvnKj81uEi6hvr8xqhVRwoeFAuj74KoA5zT4LN9
Looks like media_kit needs read+write directory for ffmpeg. But it worked in both my local machine and flatpak test builds in CI. Not sure what happened in the production version
@KRTirtho
Looks like
media_kitneeds read+write directory for ffmpeg. But it worked in both my local machine and flatpak test builds in CI. Not sure what happened in the production version
Let me know if there is anything I can do to help on my end...
Just fixed the issue. It was due to the ffmpeg directory not being created. It required a cleanup command. You can use the test build for now. It should be live soon https://github.com/flathub/com.github.KRTirtho.Spotube/pull/115
Hello, same issue persists with test build. As you pointed out ffmpeg directory is not being created. I tried installing both as user and system with the same results.
Running: '/usr/bin/bwrap --args 25 ldconfig -X -C /run/ld-so-cache-dir/3f5d22ee64436638c7a334f221be540e0a6ca93b3e693b043220231f4a2daa1b.6mBdsX'
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
A hotfix for users, browse to
/var/lib/flatpak/app/com.github.KRTirtho.Spotube/x86_64/stable/(build_id)/files/lib/
for system install, or
/home/$USER/.local/share/flatpak/runtime/com.github.KRTirtho.Spotube.Locale/x86_64/stable/(build_id)/files/lib/
for user install and create ffmpeg folder.
Just updated the flatpak and still:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube @@u %u @@
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
BTW just in case... I did pull the test build recommended in https://github.com/flathub/com.github.KRTirtho.Spotube/pull/115
I ran the:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube
And I'm still getting:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
or even:
/usr/bin/flatpak run --branch=test --arch=x86_64 --command=spotube --file-forwarding com.github.KRTirtho.Spotube @@u %u @@
bwrap: Can't mkdir /app/lib/ffmpeg: Read-only file system
error: ldconfig failed, exit status 256
The solution by @reddragonmps above https://github.com/KRTirtho/spotube/issues/2786#issuecomment-3314752935 Totally worked...
in my case
sudo mkdir /var/lib/flatpak/app/com.github.KRTirtho.Spotube/x86_64/stable/active/files/lib/ffmpeg
Then the flatpak version of spotube totally worked...
sudo mkdir /var/lib/flatpak/app/com.github.KRTirtho.Spotube/aarch64/stable/active/files/lib/ffmpeg
Well done, it works...
sudo mkdir /var/lib/flatpak/app/com.github.KRTirtho.Spotube/aarch64/stable/active/files/lib/ffmpeg
Well done, it works...
Confirmed also Linux Mint 21.3, this work
For me on Ubuntu 24.04 this worked as a workaround:
sudo mkdir /var/lib/flatpak/app/com.github.KRTirtho.Spotube/x86_64/stable/active/files/lib/ffmpeg
Fixed another push. This one works now:
flatpak install --user https://dl.flathub.org/build-repo/213369/com.github.KRTirtho.Spotube.flatpakref
Fixed another push. This one works now:
flatpak install --user https://dl.flathub.org/build-repo/213369/com.github.KRTirtho.Spotube.flatpakref
Yep, can confirm works perfectly for me as well :3
The intallation from dnf is now working, thanks!