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

相关推荐
欧阳秦穆8 小时前
Neo4j desktop 2.0.1版本如何安装apoc、gds等插件
neo4j
路溪非溪9 小时前
Tensorflow的安装记录
人工智能·tensorflow·neo4j
一屉大大大花卷15 小时前
初识Neo4j之图数据库(二)
数据库·neo4j
一屉大大大花卷3 天前
初识Neo4j之入门介绍(一)
数据库·neo4j
AustinCyy5 天前
【环境配置】Neo4j Community Windows 安装教程
windows·neo4j
萧鼎5 天前
深度探索 Py2neo:用 Python 玩转图数据库 Neo4j
数据库·python·neo4j
背太阳的牧羊人5 天前
Cypher 是 Neo4j 专用的查询语言
neo4j
lishaoan775 天前
使用tensorflow的线性回归的例子(九)
tensorflow·线性回归·neo4j
背太阳的牧羊人5 天前
Neo4j 的向量搜索(Neo4jVector)和常见的向量数据库(比如 Milvus、Qdrant)之间的区别与联系
数据库·neo4j·milvus
隆里卡那唔5 天前
在dify中通过http请求neo4j时为什么需要将localhost变为host.docker.internal
http·docker·neo4j