知识库

Linux 上 Neo4j Desktop 故障排除

此页面描述了用户在 Linux 上运行 Neo4j Desktop 时可能遇到的常见问题。

错误:找到 SUID 沙箱助手二进制文件,但配置不正确。

The SUID sandbox helper binary was found, but is not configured correctly.
Rather than run without sandboxing I'm aborting now.
You need to make sure that /tmp/.mount_neo4j-0qHCJ1/chrome-sandbox is owned by root and has mode 4755.

解释

Neo4j Desktop 是一个 Electron 应用程序。

Electron 使用了 Linux 内核中的一项功能,该功能在某些发行版(例如 Debian)中被禁用。

他们为此类情况提供了一个备用二进制文件,但 electron-builder 似乎以错误的权限对其进行了打包,因此出现了您收到的权限错误。

此评论更详细地解释了这个问题。

解决方案

以普通用户身份使用 --no-sandbox 标志执行 Neo4j Desktop,或运行此命令启用 Electron 使用的内核功能

$ sysctl kernel.unprivileged_userns_clone=1

错误:org.freedesktop.secrets 名称未由任何 .service 文件提供

App initialization error: Error: The name org.freedesktop.secrets was not provided by any .service files {
  constructor: 'Error',
  stack: 'Error: The name org.freedesktop.secrets was not provided by any .service files'
}

解释

Neo4j Desktop 使用系统密钥环存储凭据。在 Linux 上(无论发行版或桌面环境如何),这是 gnome-keyring。在之前的版本中,缺少 gnome-keyring 会导致应用程序启动失败。现在,如果找不到 gnome-keyring,它将切换到内置的 keyctl 工具。

解决方案

更新到最新的 Neo4j Desktop 或安装并启用 gnome-keyring

错误:spawn keyctl ENOENT

Error: spawn keyctl ENOENT

解释

keyctl 是一个密钥管理工具,当 gnome-keyring 作为系统密钥环不可用时,它被用作备用方案。

此工具包含在大多数发行版的核心软件包中,但如果您看到此错误,则表示您尚未安装它。

解决方案

安装 keyutilsgnome-keyring

错误:Neo4j Desktop 未显示在应用程序菜单中。

Neo4j Desktop 未显示在应用程序菜单中。

解释

Neo4j Desktop 以 AppImage 格式分发。

解决方案

安装 AppImageLauncher 并集成 Neo4j Desktop AppImage。

© . All rights reserved.