[GH-ISSUE #1768] Spotify on Gentoo fails to open #1200

Closed
opened 2026-05-05 07:38:36 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @brakenow on GitHub (Feb 7, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1768

Works fine without Firejail.

Reading profile /etc/firejail/spotify.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 11875, child pid 11879
Child process initialized in 38.49 ms
/opt/spotify/spotify-client/spotify: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Originally created by @brakenow on GitHub (Feb 7, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1768 Works fine without Firejail. Reading profile /etc/firejail/spotify.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 11875, child pid 11879 Child process initialized in 38.49 ms /opt/spotify/spotify-client/spotify: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
Author
Owner

@SkewedZeppelin commented on GitHub (Feb 8, 2018):

Does commenting out private-opt in /etc/firejail/spotify.profile fix it? If not can you comment out the other options and see if any of them fix it?

<!-- gh-comment-id:363970279 --> @SkewedZeppelin commented on GitHub (Feb 8, 2018): Does commenting out `private-opt` in `/etc/firejail/spotify.profile` fix it? If not can you comment out the other options and see if any of them fix it?
Author
Owner

@brakenow commented on GitHub (Feb 8, 2018):

Thanks, but there is no 'private-opt' in the profile. Could try commenting out on random yes.

<!-- gh-comment-id:364110181 --> @brakenow commented on GitHub (Feb 8, 2018): Thanks, but there is no 'private-opt' in the profile. Could try commenting out on random yes.
Author
Owner

@brakenow commented on GitHub (Feb 8, 2018):

Got it to work by commenting out 'private-etc fonts,machine-id,pulse,resolv.conf'.

<!-- gh-comment-id:364188773 --> @brakenow commented on GitHub (Feb 8, 2018): Got it to work by commenting out 'private-etc fonts,machine-id,pulse,resolv.conf'.
Author
Owner

@smitsohu commented on GitHub (Mar 6, 2018):

@brakenow Could you please try if adding ld.so.cache to the private-etc line fixes your issue?

<!-- gh-comment-id:370867147 --> @smitsohu commented on GitHub (Mar 6, 2018): @brakenow Could you please try if adding `ld.so.cache` to the private-etc line fixes your issue?
Author
Owner

@okcomputerik commented on GitHub (Mar 11, 2018):

I had a similar issue on Korora 26, but only when running Spotify with the --private option (in normal mode, i.e. firejail spotify, it would run fine). I commented out "private-etc fonts,machine-id,pulse,resolv.conf" as suggested by brakenow and "firejail --private spotify" worked again.

@smitsohu adding ld.so.cache to private-etc didn't help in my case. Just so you know.... Do let me know if you would like me to try out other stuff...

Thanks!

<!-- gh-comment-id:372105665 --> @okcomputerik commented on GitHub (Mar 11, 2018): I had a similar issue on Korora 26, but only when running Spotify with the --private option (in normal mode, i.e. firejail spotify, it would run fine). I commented out "private-etc fonts,machine-id,pulse,resolv.conf" as suggested by brakenow and "firejail --private spotify" worked again. @smitsohu adding ld.so.cache to private-etc didn't help in my case. Just so you know.... Do let me know if you would like me to try out other stuff... Thanks!
Author
Owner

@smitsohu commented on GitHub (Mar 12, 2018):

@okcomputerik to find out which directories are accessed below /etc, just run firejail --build spotify, play some time with it and then exit spotify again (firejail version 0.9.52 or more recent).

It will provide a good starting point for looking further.

<!-- gh-comment-id:372338043 --> @smitsohu commented on GitHub (Mar 12, 2018): @okcomputerik to find out which directories are accessed below /etc, just run `firejail --build spotify`, play some time with it and then exit spotify again (firejail version 0.9.52 or more recent). It will provide a good starting point for looking further.
Author
Owner

@brakenow commented on GitHub (Mar 12, 2018):

Thank you smitsohu!

'private-etc fonts,machine-id,pulse,resolv.conf,ld.so.cache' solved it. :-D

<!-- gh-comment-id:372344247 --> @brakenow commented on GitHub (Mar 12, 2018): Thank you smitsohu! 'private-etc fonts,machine-id,pulse,resolv.conf,ld.so.cache' solved it. :-D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1200
No description provided.