知识库

Linux 上 Neo4j Desktop 问题排查

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

错误:找到 SUID sandbox helper 二进制文件,但配置不正确。

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 给它打包了错误的权限,导致了您看到的权限错误。

此评论 详细说明了该问题。

解决方案

以普通用户运行 Neo4j Desktop 并添加 --no-sandbox 标志,或运行以下命令以启用 Electron 使用的内核功能

$ sysctl kernel.unprivileged_userns_clone=1

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

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。

© . This site is unofficial and not affiliated with Neo4j, Inc.