You are not logged in.
For some time I have this strange issue which I finally decided to describe here and ask for some help perhaps. First I thought it was due to some kind of my old system "garbage" or unknown config incompatibility, but I have the same issue on new Arch install on a different laptop.
The main thing is, I want to use two chromium-based browsers on my system - Vivaldi and Opera. Both are sandboxed with Firejail wit AppArmor, although Opera needs to be run with --noprofile option, otherwise it won't run at all.
The main issue is that I can't run them both - i.e. when Vivaldi is able to run, the Opera crashes and vice versa. This is not only true when it comes to simultaneous running, usually I'm not able to run one of these browsers at all. I'm not sure what is the reason for this, but usually Vivaldi is able to start more often than Opera. At this moment I can run Vivaldi without issues
$ /usr/bin/firejail --apparmor /usr/bin/vivaldi-stable
Reading profile /etc/firejail/vivaldi-stable.profile
Reading profile /home/zbigniew/.config/firejail/vivaldi.profile
Reading profile /home/zbigniew/.config/firejail/chromium-common.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-runuser-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 437640, child pid 437642
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: NVIDIA card detected, nogroups command ignored
Warning: NVIDIA card detected, nogroups command ignored
Child process initialized in 107.86 ms
[6:28:0901/113612.709268:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Brak dostępu
[6:63:0901/113613.050181:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Brak dostępu
[6:63:0901/113613.050212:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/firejail/mnt/dbus/system: Brak dostępu
Otwieram w istniejącej sesji przeglądarki.
Parent is shutting down, bye...
(...)
$ firejail --list
42164:zbigniew::/usr/bin/firejail --apparmor /usr/bin/vivaldi-stable and trying to run Opera gives me error and nothing happens
$ firejail --apparmor --noprofile opera --lang=pl %U
Parent pid 444466, child pid 444467
Child process initialized in 4.40 ms
opera_crashreporter: --database is required
Try 'opera_crashreporter --help' for more information.
[2:2:0901/113751.551296:ERROR:socket.cc(120)] recvmsg: Połączenie zerwane przez drugą stronę (104)
[2:2:0901/113751.780734:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Brak dostępu (13)
Parent is shutting down, bye...
(...)
$ opera
opera_crashreporter: --database is required
Try 'opera_crashreporter --help' for more information.
[445656:445656:0901/113810.246442:ERROR:socket.cc(120)] recvmsg: Połączenie zerwane przez drugą stronę (104)
[445656:445656:0901/113810.439337:FATAL:zygote_host_impl_linux.cc(201)] Check failed: . : Brak dostępu (13)
Pułapka debuggera/breakpoint (zrzut pamięci)The funny thing is I'm usually able to make Opera run by deleting the hidden folder $HOME/.opera and restarting the system, but unfortunately I have to configure the browser from scratch and after another reboot...the Opera is not running again with the above mentioned error, but Vivaldi is working.
Maybe other important thing is I have profile-sync daemon configured and I frequently use psd c command to clean all the recovery snapshots.
Now, what could be the reason for this?
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
Try eliminating troublemakers one by one. PSD, Firejail probably Apparmor. Run the browsers on bare metal and see if the error still exists.
Offline
I'm sure that neither Firejail nor AppArmor are responsible, as running without those option changes nothing. Not sure about PSD, but It would be a real pain in the ass to reverse, especially when I want to use this mechanism.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
Create a new user and try it with a fresh profile. Eliminate anomalies first.
Offline
I'm usually able to make Opera run by deleting the hidden folder $HOME/.opera and restarting the system, but unfortunately I have to configure the browser from scratch and after another reboot...the Opera is not running again with the above mentioned error
errno 13 is EACCESS and this pattern basically yells to be a PSD problem.
You might run out of tmpfs or the sync during the shutdown gets cut short, leaving you w/ a corrupted on-disk copy - even if you want to use it, you'll have to figure whether it's the cause and then, in case, fix it.
If you don't want to disable it, you could assume that it's the cause and look into its config and pot. pitfalls - but if it's actually not the cause, you'll have wasted your time. And won't even know that.
Offline
So you state that PSD is producing a Vivaldi - Opera conflict? Both of those browsers are affected although Opera far more.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
I have Vivaldi and Opera running together fine with PSD, I do not use Firejail or AppArmor.
Offline
Here's what happened when I've had run psd parse
$ psd parse
Ungraceful state detected for /home/zbigniew/.config/opera so fixing
Profile-sync-daemon v6.48
systemd service: active
resync-timer: active
sync on sleep: disabled
use overlayfs: enabled
Psd will manage the following per /home/zbigniew/.config/psd/.psd.conf:
browser/psname: firefox/firefox
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.mozilla/firefox/cbk1c7ac.default
tmpfs dir: /run/user/1000/psd/zbigniew-firefox-cbk1c7ac.default
profile size: 4,0K
overlayfs size: 0
recovery dirs: none
browser/psname: firefox/firefox
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.mozilla/firefox/rdcmxx0p.default-release
tmpfs dir: /run/user/1000/psd/zbigniew-firefox-rdcmxx0p.default-release
profile size: 97M
overlayfs size: 0
recovery dirs: none
browser/psname: google-chrome/chrome
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.config/google-chrome
tmpfs dir: /run/user/1000/psd/zbigniew-google-chrome
profile size: 4,0K
overlayfs size: 0
recovery dirs: 1 <- delete with the c option
dir path/size: /home/zbigniew/.config/opera-backup-crashrecovery-20230903_102242 (294M)
find: ‘/home/zbigniew/Pobrane/AUR/Tutanota/tutanota-desktop/pkg’: Brak dostępu
find: ‘/home/zbigniew/Pobrane/AUR/Phoenicis-playonlinux/phoenicis-playonlinux/pkg’: Brak dostępu
browser/psname: opera/opera
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.opera
Permissions are 755 on this profile.
Recommend a setting of 700 for increased privacy!
tmpfs dir: /run/user/1000/psd/zbigniew-opera
profile size: 294M
overlayfs size: 0
recovery dirs: 1 <- delete with the c option
dir path/size: /home/zbigniew/.config/opera-backup-crashrecovery-20230903_102242 (294M)
stat: nie można wykonać statx na '/home/zbigniew/.config/opera-backup': Nie ma takiego pliku ani katalogu
browser/psname: opera/opera
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.config/opera
Permissions are 755 on this profile.
Recommend a setting of 700 for increased privacy!
tmpfs dir: /run/user/1000/psd/zbigniew-opera
profile size: 294M
overlayfs size: 0
recovery dirs: 1 <- delete with the c option
dir path/size: /home/zbigniew/.config/opera-backup-crashrecovery-20230903_102242 (294M)
stat: nie można wykonać statx na '/home/zbigniew/.config/vivaldi-backup': Nie ma takiego pliku ani katalogu
browser/psname: vivaldi/vivaldi-bin
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.config/vivaldi
tmpfs dir: /run/user/1000/psd/zbigniew-vivaldi
profile size: 577M
overlayfs size:
recovery dirs: 1 <- delete with the c option
dir path/size: /home/zbigniew/.config/opera-backup-crashrecovery-20230903_102242 (294M)
stat: nie można wykonać statx na '/home/zbigniew/.config/vivaldi-snapshot-backup': Nie ma takiego pliku ani katalogu
browser/psname: vivaldi-snapshot/vivaldi-bin
owner/group id: zbigniew/1000
sync target: /home/zbigniew/.config/vivaldi-snapshot
tmpfs dir: /run/user/1000/psd/zbigniew-vivaldi-snapshot
profile size: 4,0K
overlayfs size:
recovery dirs: 1 <- delete with the c option
dir path/size: /home/zbigniew/.config/opera-backup-crashrecovery-20230903_102242 (294M)I don't have any clue what Ungraceful state detected for /home/zbigniew/.config/opera means, but after this I'm able to run both browsers. Will report back what happened after reboot.
Last edited by Zibi1981 (2023-09-03 09:05:11)
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
I don't think this is so much a conflict as more some sort of race condition.
The permanent storage ends up being corrupted when written back and simply having to sync more data might make it more likely for this to happen.
I'd pay very close attention to messages reg. the overlayfs when shutting down and see what happens when you terminate the browser processes, explicitly sync the data and only then reboot.
Offline
So it seems I have to execute psd parse command every time after I reboot.
I'd pay very close attention to messages reg. the overlayfs when shutting down and see what happens when you terminate the browser processes, explicitly sync the data and only then reboot.
I'll try to dig more into that.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline