eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
947 stars 97 forks source link

App is not starting correctly and fails with error: logger: socket /dev/log: No such file or directory #288

Open cmonty14 opened 1 year ago

cmonty14 commented 1 year ago

This issue was already reported #211 .

Description I try to start the app with command $ flatpak run com.github.eneshecan.WhatsAppForLinux however the app crashes after a few second with error:

F: Not sharing "/dev/log" with sandbox: Path "/dev" is reserved by Flatpak

(whatsapp-for-linux:2): Gtk-WARNING **: 16:55:50.312: Theme parsing error: gtk.css:1649:16: '-gtk-icon-size' is not a valid property name

(whatsapp-for-linux:2): Gtk-WARNING **: 16:55:50.312: Theme parsing error: gtk.css:1652:16: '-gtk-icon-size' is not a valid property name
logger: socket /dev/log: No such file or directory

I'm running latest version:

$ flatpak info com.github.eneshecan.WhatsAppForLinux

WhatsApp for Linux - An unofficial WhatsApp desktop application for Linux

         Kennung: com.github.eneshecan.WhatsAppForLinux
             Ref: app/com.github.eneshecan.WhatsAppForLinux/x86_64/stable
     Architektur: x86_64
           Zweig: stable
         Version: 1.6.2
          Lizenz: GPL-3.0
        Ursprung: flathub
        Sammlung: org.flathub.Stable
    Installation: system
     Installiert: 12,7 MB
Laufzeitumgebung: org.gnome.Platform/x86_64/43
             Sdk: org.gnome.Sdk/x86_64/43

          Commit: 38d5814072193e2a0dfc1bcb2ee4d7140456916d8f8fc1529ee500b2ebdc9638
          Parent: 36ad461f8d4162414087b4ee80afa60450f0981923f540274af96313f2c3f2b1
         Betreff: Bump version to 1.6.2 (3c7c04c1)
           Datum: 2023-04-09 21:39:20 +0000

Environment

eneshecan commented 1 year ago

I cannot reproduce the issue with my Debian VM. Could you please try giving permission to /dev/log with flatseal?

cmonty14 commented 1 year ago

I cannot reproduce the issue with my Debian VM. Could you please try giving permission to /dev/log with flatseal?

I installed flatseal, and this shows that required permission for /dev/log already exists. 2023-05-18_09-56

I don't think this is a permission issue. On Debian, /dev/log is a softllink to /run/systemd/journal/dev-log:

$ ls -l /dev/log    
lrwxrwxrwx 1 root root 28 16. Mai 16:13 /dev/log -> /run/systemd/journal/dev-log

This is written to syslog when executing flatpak run com.github.eneshecan.WhatsAppForLinux:

Mai 18 10:30:03 eliza systemd[3618]: Started app-flatpak-com.github.eneshecan.WhatsAppForLinux-750619.scope.
Mai 18 10:30:04 eliza kded5[3905]: Registering ":1.150/org/ayatana/NotificationItem/com_github_eneshecan_WhatsAppForLinux_Tray" to system tray
Mai 18 10:30:04 eliza rtkit-daemon[1381]: Successfully made thread 750674 of process 750657 owned by '1001' RT at priority 5.
Mai 18 10:30:04 eliza rtkit-daemon[1381]: Supervising 5 threads of 3 processes of 1 users.
Mai 18 10:30:10 eliza kwin_wayland[3774]: pw.conf: can't load config client.conf: Datei oder Verzeichnis nicht gefunden
Mai 18 10:30:10 eliza kwin_wayland[3774]: pw.conf: can't load default config client.conf: Datei oder Verzeichnis nicht gefunden
Mai 18 10:30:10 eliza kwin_wayland_wrapper[3774]: kwin_screencast: Failed to create PipeWire context
Mai 18 10:30:10 eliza plasmashell[3930]: error creating screencast "Failed to create PipeWire context"
Mai 18 10:30:13 eliza kded5[3905]: Service  ":1.150" unregistered
Mai 18 10:30:13 eliza systemd[3618]: app-flatpak-com.github.eneshecan.WhatsAppForLinux-750619.scope: Consumed 9.082s CPU time.
Mai 18 10:30:16 eliza kwin_wayland[3774]: pw.conf: can't load config client.conf: Datei oder Verzeichnis nicht gefunden
Mai 18 10:30:16 eliza kwin_wayland[3774]: pw.conf: can't load default config client.conf: Datei oder Verzeichnis nicht gefunden
Mai 18 10:30:16 eliza kwin_wayland_wrapper[3774]: kwin_screencast: Failed to create PipeWire context
Mai 18 10:30:16 eliza plasmashell[3930]: error creating screencast "Failed to create PipeWire context"
petrisch commented 1 year ago

I am on 1.6.2 from flathub on debian bullseye. /run/systemd/journal/dev-log can be added as a path to flatseal, then this error goes away.

Now it still crashes with some gtk and opengl errors. I'm on mobile on the couch, so sorry for the short bugreport.

cmonty14 commented 1 year ago

After adding /run/systemd/journal/dev-log to Flatseal, the app still fails to start. To be precise, Whatsapp crashes when it tries to load QR code.

$  flatpak run com.github.eneshecan.WhatsAppForLinux
F: Not sharing "/dev/log" with sandbox: Path "/dev" is reserved by Flatpak
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “web”, returning default value: 1
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “web”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “general”, returning default value: 1
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “web”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “general”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “general”, returning default value: 1
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “general”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “general”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: SettingMap: Key file does not have group “appearance”, returning default value: 0
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: 
<13>Jun 16 21:18:25 whatsapp-for-linux[5]: ** (whatsapp-for-linux:2): WARNING **: 21:18:26.329: GDK is not able to create a GL context, falling back to glReadPixels (slow!): Unable to create a GL context