Neo4j Desktop 无法打开

文章目录

一、Warn:DeskTop UI interface won't displayed

1、表现形式:进程运行,但是 Neo4j Desktop UI 界面无法显示

2、Debug info

location:

bash 复制代码
C:\Users\<username>\.Neo4jDesktop\log.log
bash 复制代码
[2024-12-20 21:22:36.002] [info]  ● ● ● Starting Neo4j Desktop 1.5.9 @ Windows_NT 10.0.22631, AMD Ryzen 7 5800H with Radeon Graphics         }
[2024-12-20 21:22:36.362] [info]  Initializing persistence
[2024-12-20 21:22:36.470] [info]  ● ● ● GraphQL server is running @ http://127.0.0.1:11001
[2024-12-20 21:22:36.533] [info]  Configuring crash reporting
[2024-12-20 21:22:36.535] [info]  Reading settings
[2024-12-20 21:22:36.536] [info]  PowerShell compatibility check
[2024-12-20 21:22:37.148] [info]  PowerShell version: 5. Required version: 5.
[2024-12-20 21:22:37.405] [info]  PowerShell language mode: FullLanguage
[2024-12-20 21:22:37.407] [info]  Reading bundled resources D:\Neo4j Desktop\workspace\resources
[2024-12-20 21:22:37.410] [info]  Distribution folder for java should exist
[2024-12-20 21:22:39.062] [info]  Will copy []
[2024-12-20 21:22:39.069] [info]  Distribution folder for neo4j should exist
[2024-12-20 21:22:40.741] [info]  Will copy []
[2024-12-20 21:22:40.743] [info]  Reading bundled resources D:\Neo4j Desktop\workspace\resources
[2024-12-20 21:22:40.768] [info]  Distribution folder for graphApps should exist
[2024-12-20 21:22:40.771] [warn]  Failed to read installed 'neo4j-bloom', will replace with bundled distribution Error: Graph-App[neo4j-bloom] does not contain package.json
    at getLocalMetadata (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:3897:15)
    at async newerGraphAppVersion (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:3263:22)
    at async D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5251:36
    at async Promise.all (index 0)
    at async loadResource (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5246:32)
    at async D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5312:21
    at async __webpack_modules__.9680.exports.default (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5327:5)
    at async App.<anonymous> (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:13083:9)
[2024-12-20 21:22:40.773] [warn]  Failed to read installed 'neo4j-browser', will replace with bundled distribution Error: Graph-App[neo4j-browser] does not contain package.json
    at getLocalMetadata (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:3897:15)
    at async newerGraphAppVersion (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:3263:22)
    at async D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5251:36
    at async Promise.all (index 1)
    at async loadResource (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5246:32)
    at async D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5312:21
    at async __webpack_modules__.9680.exports.default (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:5327:5)
    at async App.<anonymous> (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:13083:9)
[2024-12-20 21:22:40.773] [info]  Will copy [ 'neo4j-bloom-2.10.0.tar.gz', 'neo4j-browser-5.12.0.tar.gz' ]
[2024-12-20 21:22:40.830] [info]  Copying D:\Neo4j Desktop\workspace\resources\offline\plugins to C:\Users\kurosaki\AppData\Local\Neo4j\Relate\Cache\plugin
[2024-12-20 21:22:40.832] [info]  Copying D:\Neo4j Desktop\workspace\resources\offline\plugin-versions to D:\Neo4j Desktop\application-data\relate-data\plugin-versions
[2024-12-20 21:22:40.837] [warn]  Could not link DBMS to Relate. Installation path does not exist. {
  id: 'database-4d173c63-eeaf-41c8-95ed-97a8cf951297',
  version: '5.12.0',
  installationRoot: 'D:\\Neo4j Desktop\\application-data\\neo4jDatabases\\database-4d173c63-eeaf-41c8-95ed-97a8cf951297\\installation-5.12.0'
}
[2024-12-20 21:22:40.838] [warn]  Could not link DBMS to Relate. Installation path does not exist. {
  id: 'database-490546ef-9102-471a-9b0f-7844083e8097',
  version: '5.12.0',
  installationRoot: 'D:\\Neo4j Desktop\\application-data\\neo4jDatabases\\database-490546ef-9102-471a-9b0f-7844083e8097\\installation-5.12.0'
}
[2024-12-20 21:22:40.843] [info]  Starting Nest application... NestFactory
[2024-12-20 21:22:40.854] [info]  AuthModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.854] [info]  MetricsModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.855] [info]  ConfigHostModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.855] [info]  WebModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.856] [info]  ConfigModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.856] [info]  ConfigModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.857] [info]  SystemModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.858] [info]  SystemModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.859] [info]  GraphQLSchemaBuilderModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.860] [info]  DesktopModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.860] [info]  FilesModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.861] [info]  HealthModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.861] [info]  DBMSModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.862] [info]  DBMSPluginsModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.862] [info]  DBModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.862] [info]  ExtensionModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.863] [info]  ProjectModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.864] [info]  GraphQLModule dependencies initialized InstanceLoader
[2024-12-20 21:22:40.957] [info]  Mapped {/graphql, POST} route GraphQLModule
[2024-12-20 21:22:40.988] [info]  Nest application successfully started NestApplication
[2024-12-20 21:22:40.989] [info]  ● ● ● Relate management API is running @ http://127.0.0.1:12320
[2024-12-20 21:22:40.990] [info]  Configuring proxy: NO_PROXY
[2024-12-20 21:22:41.553] [warn]  ERROR: {"error":"Fetch status [403]","url":"https://dist.neo4j.org/neo4j-desktop/win/latest.yml"}
[2024-12-20 21:22:41.555] [error] App initialization error TypeError: Cannot read properties of undefined (reading 'name')
    at isReachable (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:6237:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async isOnline (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:6247:9)
    at async broadcastOnline (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:11850:20)
    at async configureProxy (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:11925:5)
    at async initProxy (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:11936:5)
    at async App.<anonymous> (D:\Neo4j Desktop\workspace\resources\app.asar\dist\main.prod.js:13088:9)

3、原因分析

neo4j desktop 应用程序在初始化请求的资源(https://dist.neo4j.org/neo4j-desktop/win/latest.yml)被墙了,导致403 Forbidden错误,请求被服务器拒绝。

4、解决方案

4.1、断网

断网就可以打开了,但是是下下策

4.2、手动设置代理

这里使用 export 全局变量指定似乎有些人不管用,手动设置有人成功了

bash 复制代码
export https_proxy=http://127.0.0.1:51641 http_proxy=http://127.0.0.1:51641 all_proxy=socks5://127.0.0.1:51641
环境变量设置成功案例

手动配置操作步骤:

  • 位置:

    bash 复制代码
    C:\User\{username}\.neo4jdesktop\persist\userData.json
  • 添加配置

    bash 复制代码
    "appSettings": {
        "proxyHost": "proxy_host",
        "proxyPort": "proxy_port",
        "proxyType": "HTTP_PROXY"
      },
  • proxyHost:一般是本地环回地址(127.0.0.1

  • proxyPort:代理服务器监听的端口

  • proxyType: 常见的有:"HTTP_PROXY""SOCKS5" 看你自己的代理类型

5、参考

Why can't the Neo4j Desktop version be opened? · Issue #13557 · neo4j/neo4j

相关推荐
Gabriel_liao12 小时前
Docker安装Neo4j
docker·容器·neo4j
Moshow郑锴3 天前
Neo4j Graph Data Science Certification exam! 题库1
neo4j·knowledge graph·考试认证·data science
新手小袁_J3 天前
实现Python将csv数据导入到Neo4j
数据库·python·neo4j·《我是刑警》·python连接neo4j·python导入csv·csv数据集导入neo4j
ZHOUPUYU3 天前
最新 neo4j 5.26版本下载安装配置步骤【附安装包】
java·后端·jdk·nosql·数据库开发·neo4j·图形数据库
シ風箏3 天前
Neo4j【环境部署 02】图形数据库Neo4j在Linux系统ARM架构下的安装使用
linux·数据库·arm·neo4j
清风ꦿ3 天前
neo4j 图表数据导入到 TuGraph
python·neo4j·knowledge graph
Nice night5 天前
Neo4j插入数据逐级提升速度4倍又4倍
neo4j
abments9 天前
neo4j删除所有数据
数据库·neo4j
入戏三分_s9 天前
Neo4j常用命令
java·前端·neo4j