spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Flatpak not starting

Open Mikesco3 opened this issue 3 months ago • 23 comments

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

  1. Attempted to just launch the app.
  2. Tried to Lauch from the terminal
  3. 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!

Mikesco3 avatar Sep 13 '25 05:09 Mikesco3

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 @@

20250913_spotube_startuplog.txt

Mikesco3 avatar Sep 13 '25 05:09 Mikesco3

Hi. Not sure if this is helpful but I have the same issue on Mint with KDE. Thanks for your work

Alastair-L avatar Sep 13 '25 07:09 Alastair-L

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

baskinsy avatar Sep 13 '25 08:09 baskinsy

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

assistance-informatique avatar Sep 14 '25 08:09 assistance-informatique

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

CaptainMirage avatar Sep 14 '25 13:09 CaptainMirage

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

reddragonmps avatar Sep 17 '25 12:09 reddragonmps

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

carias-rh avatar Sep 17 '25 13:09 carias-rh

➜  ~ 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

Cyclica-bin avatar Sep 17 '25 16:09 Cyclica-bin

Same problem, Arch | Linux 6.16.3 | KDE6.4.5.

linuxmunchies avatar Sep 17 '25 16:09 linuxmunchies

+1 from Fedora Kinoite 42.20250917

Logs from: flatpak run -vvv com.github.KRTirtho.Spotube https://paste.ente.dev/?a802c5dde2fd7e3e#EQk7juvnKj81uEi6hvr8xqhVRwoeFAuj74KoA5zT4LN9

WilliDieEnte avatar Sep 17 '25 19:09 WilliDieEnte

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 avatar Sep 18 '25 16:09 KRTirtho

@KRTirtho

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

Let me know if there is anything I can do to help on my end...

Mikesco3 avatar Sep 18 '25 16:09 Mikesco3

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

KRTirtho avatar Sep 20 '25 05:09 KRTirtho

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.

logs.txt

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.

reddragonmps avatar Sep 20 '25 08:09 reddragonmps

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

Mikesco3 avatar Sep 20 '25 18:09 Mikesco3

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

Mikesco3 avatar Sep 21 '25 03:09 Mikesco3

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...

Mikesco3 avatar Sep 21 '25 03:09 Mikesco3

sudo mkdir /var/lib/flatpak/app/com.github.KRTirtho.Spotube/aarch64/stable/active/files/lib/ffmpeg

Well done, it works...

assistance-informatique avatar Sep 21 '25 06:09 assistance-informatique

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

bogaliberado avatar Sep 22 '25 00:09 bogaliberado

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

ermshiperete avatar Sep 22 '25 15:09 ermshiperete

Fixed another push. This one works now:

flatpak install --user https://dl.flathub.org/build-repo/213369/com.github.KRTirtho.Spotube.flatpakref

KRTirtho avatar Sep 23 '25 13:09 KRTirtho

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

WilliDieEnte avatar Sep 24 '25 23:09 WilliDieEnte

The intallation from dnf is now working, thanks!

carias-rh avatar Sep 25 '25 08:09 carias-rh