snapcrafters / signal-desktop

Unofficial Signal Desktop installer for Linux
https://snapcraft.io/signal-desktop
GNU Affero General Public License v3.0
34 stars 14 forks source link

[Bug]: v6.39.1 can't load the QR code on Fedora 38 #214

Open dandv opened 9 months ago

dandv commented 9 months ago

What happened?

When I launch the snap, I get this screen:

image

I installed accidentally both the flatpak and the snap installed, then I deleted the flatpak. Is it possible that this caused the issue?

What should have happened?

I do have Internet access, and "Retry" doesn't work. Here are the permissions of the snap:

image

Output of snap info $snap_name

$ snap info signal-desktop
name:      signal-desktop
summary:   Speak Freely - Private Messenger
publisher: Snapcrafters✪
store-url: https://snapcraft.io/signal-desktop
contact:   https://github.com//snapcrafters/signal-desktop/issues
license:   AGPL-3.0-only
description: |
  **Note: To use the Signal desktop app, you must first install Signal on your phone.**

  Millions of people use Signal every day  [...]
commands:
  - signal-desktop
snap-id:      r4LxMVp7zWramXsJQAKdamxy6TAWlaDD
tracking:     latest/stable
refresh-date: today at 17:22 EST
channels:
  latest/stable:    6.39.1 2023-11-25 (562) 181MB -
  latest/candidate: 6.39.1 2023-11-25 (562) 181MB -
  latest/beta:      ↑                             
  latest/edge:      ↑                             
installed:          6.39.1            (562) 181MB -

Output of snap connections $snap_name

Interface               Plug                                   Slot                            Notes
audio-playback          signal-desktop:audio-playback          :audio-playback                 -
audio-record            signal-desktop:audio-record            :audio-record                   -
browser-support         signal-desktop:browser-support         :browser-support                -
camera                  signal-desktop:camera                  :camera                         -
content[gnome-42-2204]  signal-desktop:gnome-42-2204           gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]   signal-desktop:gtk-3-themes            gtk-common-themes:gtk-3-themes  -
content[icon-themes]    signal-desktop:icon-themes             gtk-common-themes:icon-themes   -
content[sound-themes]   signal-desktop:sound-themes            gtk-common-themes:sound-themes  -
desktop                 signal-desktop:desktop                 :desktop                        -
desktop-legacy          signal-desktop:desktop-legacy          :desktop-legacy                 -
gsettings               signal-desktop:gsettings               :gsettings                      -
home                    signal-desktop:home                    :home                           -
network                 signal-desktop:network                 :network                        -
opengl                  signal-desktop:opengl                  :opengl                         -
removable-media         signal-desktop:removable-media         -                               -
screen-inhibit-control  signal-desktop:screen-inhibit-control  :screen-inhibit-control         -
unity7                  signal-desktop:unity7                  :unity7                         -
wayland                 signal-desktop:wayland                 :wayland                        -
x11                     signal-desktop:x11                     :x11                            -

Output of snap version

snap    2.58.3-1.fc38
snapd   2.58.3-1.fc38
series  16
fedora  38
kernel  6.5.6-200.fc38.x86_64

Relevant log output

$ dmesg | grep denied
[131186.736444] wlo1: 84:b2:61:c8:39:8e denied association (code=17)
[131201.321376] wlo1: 84:b2:61:c8:39:8e denied association (code=17)
[131293.264847] wlo1: 84:b2:61:c8:39:8e denied association (code=17)

Teminal output of app

Set Windows Application User Model ID (AUMID) { AUMID: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /snap/signal-desktop/562/opt/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME undefined
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/dandv/snap/signal-desktop/562/.config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance
Error org.freedesktop.DBus.Error.Failed: cannot find desktop file "/var/lib/snapd/desktop/applications/signal-desktop_signal.desktop"
Error org.freedesktop.DBus.Error.Failed: cannot find desktop file "/var/lib/snapd/desktop/applications/signal-desktop_signal.desktop"

(signal-desktop:202392): Gtk-WARNING **: 17:34:45.786: Theme parsing error: gtk.css:1:21: Failed to import: Error opening file /home/dandv/snap/signal-desktop/562/.config/gtk-3.0/colors.css: No such file or directory
Gtk-Message: 17:34:45.817: Failed to load module "colorreload-gtk-module"
Gtk-Message: 17:34:45.817: Failed to load module "window-decorations-gtk-module"
{"level":30,"time":"2023-11-25T22:34:45.898Z","msg":"got fast localeOverride setting null"}
{"level":30,"time":"2023-11-25T22:34:45.899Z","msg":"app.ready: hour cycle preference: UnknownPreference"}
{"level":30,"time":"2023-11-25T22:34:45.899Z","msg":"app.ready: preferred system locales: en-US, en"}
{"level":30,"time":"2023-11-25T22:34:45.900Z","msg":"locale: Supported locales: af-ZA, ar, az-AZ, bg-BG, bn-BD, bs-BA, ca, cs, da, de, el, en, es, et-EE, eu, fa-IR, fi, fr, ga-IE, gl-ES, gu-IN, he, hi-IN, hr-HR, hu, id, it, ja, ka-GE, kk-KZ, km-KH, kn-IN, ko, ky-KG, lt-LT, lv-LV, mk-MK, ml-IN, mr-IN, ms, my, nb, nl, pa-IN, pl, pt-BR, pt-PT, ro-RO, ru, sk-SK, sl-SI, sq-AL, sr, sv, sw, ta-IN, te-IN, th, tl-PH, tr, ug, uk-UA, ur, vi, yue, zh-CN, zh-HK, zh-Hant"}
{"level":30,"time":"2023-11-25T22:34:45.900Z","msg":"locale: Preferred locales: en-US, en"}
{"level":30,"time":"2023-11-25T22:34:45.900Z","msg":"locale: Locale Override: null"}
{"level":30,"time":"2023-11-25T22:34:45.903Z","msg":"locale: Matched locale: en"}
{"level":40,"time":"2023-11-25T22:34:45.960Z","msg":"intl.onWarn [@formatjs/intl] \"defaultRichTextElements\" was specified but \"message\" was not pre-compiled. \nPlease consider using \"@formatjs/cli\" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution"}
{"level":30,"time":"2023-11-25T22:34:45.960Z","msg":"locale: Text info direction for en: ltr"}
WARNING: Kernel has no file descriptor comparison support: Operation not permitted
{"level":30,"time":"2023-11-25T22:34:45.963Z","msg":"app ready"}
{"level":30,"time":"2023-11-25T22:34:45.964Z","msg":"starting version 6.39.1"}
{"level":30,"time":"2023-11-25T22:34:45.964Z","msg":"media access status [object Undefined] [object Undefined]"}
{"level":30,"time":"2023-11-25T22:34:45.968Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2023-11-25T22:34:45.971Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2023-11-25T22:34:45.972Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2023-11-25T22:34:45.973Z","msg":"getSystemTraySetting had no flags and did no DB lookups. Returning DoNotUseSystemTray"}
{"level":30,"time":"2023-11-25T22:34:45.974Z","msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":800,\"height\":610,\"minWidth\":300,\"minHeight\":200,\"autoHideMenuBar\":false,\"titleBarStyle\":\"default\",\"titleBarOverlay\":false,\"backgroundColor\":\"#3a76f0\",\"webPreferences\":{\"devTools\":false,\"spellcheck\":true,\"enableBlinkFeatures\":\"CSSPseudoDir,CSSLogical\",\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"sandbox\":false,\"contextIsolation\":true,\"preload\":\"[REDACTED]/preload.bundle.js\",\"backgroundThrottling\":true,\"enablePreferredSizeMode\":true,\"disableBlinkFeatures\":\"Accelerated2dCanvas,AcceleratedSmallCanvases\"},\"icon\":\"[REDACTED]/images/signal-logo-desktop-linux.png\",\"x\":4238,\"y\":386}"}
{"level":30,"time":"2023-11-25T22:34:46.006Z","msg":"spellcheck: user locales: [\"en-US\",\"en\"]"}
{"level":30,"time":"2023-11-25T22:34:46.007Z","msg":"spellcheck: available spellchecker languages: [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"de-DE\",\"el\",\"en\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-GB-oxendict\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"fr-FR\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"it-IT\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]"}
{"level":30,"time":"2023-11-25T22:34:46.007Z","msg":"spellcheck: setting languages to: [\"en-US\",\"en\"]"}
{"level":40,"time":"2023-11-25T22:34:46.036Z","msg":"MainSQL: Database log code=283: recovered 657 frames from WAL file [REDACTED]/sql/db.sqlite-wal"}
{"level":30,"time":"2023-11-25T22:34:46.041Z","msg":"MainSQL: updateSchema:\n  Current user_version: 950;\n  Most recent db schema: 960;\n  SQLite version: 3.42.0;\n  SQLCipher version: 4.5.5 community;\n  (deprecated) schema_version: 437;\n"}
{"level":30,"time":"2023-11-25T22:34:46.047Z","msg":"MainSQL: updateToSchemaVersion960: Our ACI not found"}
{"level":30,"time":"2023-11-25T22:34:46.047Z","msg":"MainSQL: updateToSchemaVersion960: not running, pni is normalized"}
{"level":30,"time":"2023-11-25T22:34:46.047Z","msg":"MainSQL: updateToSchemaVersion960: success!"}
{"level":30,"time":"2023-11-25T22:34:46.047Z","msg":"MainSQL: updateSchema: optimize took 0ms"}
{"level":30,"time":"2023-11-25T22:34:46.426Z","msg":"got fast theme-setting value system"}
{"level":30,"time":"2023-11-25T22:34:47.180Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2023-11-25T22:34:47.188Z","msg":"System tray service: created"}
{"level":30,"time":"2023-11-25T22:34:47.188Z","msg":"System tray service: updating main window. Previously, there was not a window, and now there is"}
{"level":30,"time":"2023-11-25T22:34:47.188Z","msg":"System tray service: rendering no tray"}
{"level":30,"time":"2023-11-25T22:34:47.188Z","msg":"Begin ensuring permissions"}
{"level":30,"time":"2023-11-25T22:34:47.189Z","msg":"main window is ready-to-show"}
{"level":30,"time":"2023-11-25T22:34:47.189Z","msg":"showing main window"}
{"level":30,"time":"2023-11-25T22:34:47.190Z","msg":"System tray service: rendering no tray"}
{"level":30,"time":"2023-11-25T22:34:47.193Z","msg":"Ensuring file permissions for 4 files"}
{"level":30,"time":"2023-11-25T22:34:47.195Z","msg":"Finish ensuring permissions in 7ms"}
{"level":50,"time":"2023-11-25T22:34:47.245Z","msg":"Error occurred in handler for 'net.resolveHost': {}"}
{"level":30,"time":"2023-11-25T22:34:47.293Z","msg":"updater/start: Updates disabled - not starting new version checks"}
{"level":30,"time":"2023-11-25T22:34:47.300Z","msg":"Prevent display sleep service: allowing display sleep"}
{"level":30,"time":"2023-11-25T22:34:47.300Z","msg":"Background throttling enabled because no call is active"}
{"level":50,"time":"2023-11-25T22:34:47.393Z","msg":"Error occurred in handler for 'net.resolveHost': {}"}
{"level":30,"time":"2023-11-25T22:34:47.705Z","msg":"Updating BrowserWindow config: %s {\"maximized\":false,\"autoHideMenuBar\":false,\"fullscreen\":false,\"width\":800,\"height\":610,\"x\":4238,\"y\":422}"}
{"level":30,"time":"2023-11-25T22:34:47.706Z","msg":"config/set: Saving ephemeral config to disk"}
{"level":30,"time":"2023-11-25T22:34:47.707Z","msg":"config/set: Saved ephemeral config to disk"}
{"level":50,"time":"2023-11-25T22:34:48.250Z","msg":"Error occurred in handler for 'net.resolveHost': {}"}
{"level":50,"time":"2023-11-25T22:34:49.253Z","msg":"Error occurred in handler for 'net.resolveHost': {}"}
{"level":50,"time":"2023-11-25T22:35:00.183Z","msg":"Error occurred in handler for 'net.resolveHost': {}"}
{"level":30,"time":"2023-11-25T22:35:21.265Z","msg":"close event {\"readyForShutdown\":false,\"shouldQuit\":false}"}
{"level":30,"time":"2023-11-25T22:35:21.265Z","msg":"System tray service: rendering no tray"}
{"level":30,"time":"2023-11-25T22:35:21.266Z","msg":"requestShutdown: Requesting close of mainWindow..."}
{"level":30,"time":"2023-11-25T22:35:21.278Z","msg":"requestShutdown: Response received"}
{"level":30,"time":"2023-11-25T22:35:21.283Z","msg":"before-quit event {\"readyForShutdown\":true,\"shouldQuit\":false}"}
{"level":30,"time":"2023-11-25T22:35:21.284Z","msg":"System tray service: markShouldQuit"}
{"level":30,"time":"2023-11-25T22:35:21.284Z","msg":"close event {\"readyForShutdown\":true,\"shouldQuit\":true}"}
{"level":30,"time":"2023-11-25T22:35:21.286Z","msg":"System tray service: updating main window. Previously, there was a window, and now there is not"}
{"level":30,"time":"2023-11-25T22:35:21.286Z","msg":"System tray service: rendering no tray"}

Other info

The Discover reviews mention that the app can't connect:

image

At https://snapcraft.io/signal-desktop I don't see any way to install an older version.

merlijn-sebrechts commented 9 months ago

That's weird!

I'm quite sure it can't be a conflict with the Flatpak. Snap and flatpak shouldn't conflict at all.

The two reviews are due to an issue that's already fixed. We accidentally pushed an ancient version of signal to users, but everyone should have automatically updated to a later version.

popey commented 9 months ago

{"level":50,"time":"2023-11-25T22:34:48.250Z","msg":"Error occurred in handler for 'net.resolveHost': {}"} - looks like DNS?

One rather brutal way to test the network connectivity from inside the snap is to get a shell inside the snap, and use netcat, like this:

alan@earth:~$ snap run --shell signal-desktop
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

alan@earth:/home/alan$ nc google.com 80
GET / HTTP/1.0

If after typing the nc line you get a host resolution issue, then there's a DNS issue. If you can get to type the GET line, and press enter, you should get a screen full of javascript.

Exit with CTRL+D.

dandv commented 9 months ago

I get a slightly different prompt, but indeed, the DNS lookup fails:

image

How can I troubleshoot this?

merlijn-sebrechts commented 9 months ago

@dandv are you running any other snaps? This seems to be a snapd problem. It might be useful to create a post on forum.snapcraft.io explaining this issue so the snapd folks can help us out.