Slack 拒绝启动

Slack 拒绝启动

从 30 分钟前开始,slack 就拒绝在我的 20.04 机器上启动。在它停止工作之前,我做的最后一件事是将 Firefox 更新到 102.0,但我不确定这是否与它有关。

我从他们的网站下载了最新的 slack 4.27.154 deb 包并通过安装了它apt install,但是它仍然拒绝启动。

这是控制台输出:

> slack 
Initializing local storage instance
[winston] Attempt to write logs with no transports {"error":{},"level":"error","message":"Unable to create logs directory"}
[winston] Attempt to write logs with no transports {"level":"info","message":"\n╔════════════════════════════════════════════════════════════╗\n║      Slack 4.27.154, linux 5.15.0-10033-tuxedo on x64      ║\n╚════════════════════════════════════════════════════════════╝"}
[winston] Attempt to write logs with no transports {"meta":{"shouldUseNewBackend":false,"loggerInstanceCount":1},"level":"info","message":"Configured logger via"}
[winston] Attempt to write logs with no transports {"meta":{"NODE_ENV":"production","platform":"linux","type":"browser","timeZone":"Europe/Berlin","PACKAGE_MANIFEST.productName":"Slack","PACKAGE_MANIFEST.version":"4.27.154","PACKAGE_MANIFEST.commit":"8956995","PACKAGE_MANIFEST.branch":"HEAD"},"level":"info","message":"Predefined values for process"}
[winston] Attempt to write logs with no transports {"level":"debug","message":"getLogger: Winston backend does not support child logger"}

在尝试获取帮助信息时,我还注意到一个奇怪的错误:

❯ slack --help
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: b is not a function
    at y (/usr/lib/slack/resources/app.asar/dist/boot.bundle.js:1:32588)
    at Pt (/usr/lib/slack/resources/app.asar/dist/boot.bundle.js:1:7238)
    at Object.<anonymous> (/usr/lib/slack/resources/app.asar/dist/boot.bundle.js:1:5038)
    at Object.D (/usr/lib/slack/resources/app.asar/dist/boot.bundle.js:1:4765)
    at /usr/lib/slack/resources/app.asar/dist/boot.bundle.js:32:16305
    at /usr/lib/slack/resources/app.asar/dist/boot.bundle.js:32:16414
    at /usr/lib/slack/resources/app.asar/dist/boot.bundle.js:32:16418
    at Object.<anonymous> (/usr/lib/slack/resources/app.asar/dist/boot.bundle.js:32:16440)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)

有人知道问题是什么吗?我在网上找不到任何关于此内容的信息。

答案1

**更新:7 月 8 日**

现在 slack 上可用的工作版本是:4.27.156

https://downloads.slack-edge.com/releases/linux/4.27.156/prod/x64/slack-desktop-4.27.156-amd64.deb


过时的提议: 我也确认这个版本的 Slack 似乎存在问题。

正如@Iam Strad 所解释的,您可以从 snapcraft 安装 Slack,不幸的是,这可能还不够,因为它为您带来了相同的版本 4.27.154 2022-06-27。

但是使用 snap 你可以找到一个旧版本的 slack,它在更好的版本发布之前仍然可以使用。

sudo apt update
sudo apt install snapd
sudo snap install slack --channel=insider/edge

或者

sudo snap refresh slack --channel=insider/edge

它应该会给你带来 4.25.1 版本,这可能是一个临时的解决办法。

> snap info slack

name:      slack
summary:   Team communication for the 21st century.
publisher: Slack✓
store-url: https://snapcraft.io/slack
(...)
channels:
  latest/stable:     4.27.154 2022-06-27 (63) 110MB -
  latest/candidate:  ↑                              
  latest/beta:       ↑                              
  latest/edge:       ↑                              
  insider/stable:    –                              
  insider/candidate: –                              
  insider/beta:      –                              
  insider/edge:      4.25.1   2022-04-01 (61) 108MB -
installed:           4.25.1              (61) 108MB -

答案2

降级似乎可行,目前是一种解决方法;

sudo apt install slack-desktop=4.26.1

答案3

作为一种解决方法,您可以将 slack 与 chromium 结合使用。在终端中,您可以执行: chromium --app=https://yourslackworkspace.slack.com

如果可行,请在 /home/user/.local/shares/applications 中创建您自己的桌面文件以方便访问:

[Desktop Entry]
Version=1.0
Type=Application
Name=Chromium Slack chat
Comment= Slack chat app
Exec=chromium --app=https://yourslackworkspace.slack.com
Icon=/home/user/.local/share/applications/slack.png
Path=
Terminal=false
StartupNotify=true
StartupWMClass=yourslackworkspace.slack.com

我正在用这个配置运行 slack,calls、huddle 等功能开箱即用

答案4

我发现这些问题,我的 slack 是通过 *.deb 安装的,昨天我更新到了 4.27 版本。我通过更新 nvidia 显卡驱动程序解决了这个问题,使用 nvidia-driver 包中的驱动程序。

相关内容