草庐IT

neo4j community与neo4j desktop冲突

思想在拧紧 2023-04-29 原文

前言:博主在安装 neo4j community4.4.8 后,考虑到 community 版功能较少,于是安装 desktop1.4.15。安装完成后,遇到下文记录的问题,报错三始终未能解决。

首次进入 neo4j desktop 后,因为7474端口被 community 版本占用,所以会自动提示是否更换端口号,博主确认更换了端口号(blot->11003),但有文章提出只需要关闭 community 服务即可,具体课参考:Neo4j 同时安装neo4j community和desktop导致端口占用

博主的解决方法是卸载两个版本,重新安装 desktop。目前使用正常。* 卸载软件可能存在卸载残留,我的卸载流程如下,可供参考:

  1. 卸载 neo4j 的服务(neo4j uninstall-service
  2. 删除 neo4j community 解压缩文件
  3. 在环境变量中清除为 neo4j community 配置的环境变量
  4. 通过 控制面板 卸载 neo4j desktop
  5. 删除 C:\Users\LENOVO\AppDatalocalLocalLowRoaming 三个文件夹下关于 neo4j 的所有文件
  6. 删除 .Neo4j Desktop 数据文件,默认在 C:\Users\LENOVO文件夹下
  7. Everything 以 neo4j 为关键词搜索文件,删除相关文件
  8. 使用清理工具,清理相关文件、注册表
  9. 重启电脑(若不放心,重启后可再用清理工具清理一次)

报错记录

报错一:日志文件重复出现 neo4j-etl-ui-1.5.1.tgz

问题描述:日志文件 /.Neo4jDesktop/log.txt 重复出现以下内容,并且 Graph Apps 模块的 Neo4j ETL Tool 一直时暗色
推测是否 https://neo.jfrog.io/neo/api/npm/npm/neo4j-etl-ui/-/neo4j-etl-ui-1.5.1.tgz 未正确安装

解决方法:通过链接下载 neo4j-etl-ui-1.5.1.tgz 文件并放至 .\Neo4j Desktop\resources\offline\graphApps 目录下

操作结果Graph Apps 模块的 Neo4j ETL Tool 显示为亮色,日志文件不再重复出现 neo4j-etl-ui-1.5.1.tgz

[2022-06-25 23:01:19.940] [info]  GraphApp[9ba1222b-e09c-466e-a669-4949b16a95d9] Downloading https://neo.jfrog.io/neo/api/npm/npm/neo4j-etl-ui/-/neo4j-etl-ui-1.5.1.tgz {
  percent: 0.9828912162431994,
  size: { total: 17353133, transferred: 17056242 },
  speed: 550201.3548387097,
  time: { elapsed: 30, remaining: 1 }
}
[2022-06-25 23:01:20.200] [info]  GraphApp[9ba1222b-e09c-466e-a669-4949b16a95d9] Downloading https://neo.jfrog.io/neo/api/npm/npm/neo4j-etl-ui/-/neo4j-etl-ui-1.5.1.tgz {
  percent: 0.9913885867180295,
  size: { total: 17353133, transferred: 17203698 },
  speed: 550518.336,
  time: { elapsed: 31, remaining: 0 }
}
[2022-06-25 23:01:20.398] [info]  GraphApp[9ba1222b-e09c-466e-a669-4949b16a95d9] Downloading https://neo.jfrog.io/neo/api/npm/npm/neo4j-etl-ui/-/neo4j-etl-ui-1.5.1.tgz {
  percent: 1,
  size: { total: 17353133, transferred: 17353133 },
  speed: 550893.1111111111,
  time: { elapsed: 31, remaining: 0 }
}
[2022-06-25 23:01:20.402] [info]  Download file stream closed
[2022-06-25 23:01:20.490] [info]  Shasum match OK

报错二:DBMS 无法启动

DBMS failed to start: Startup timed out, see logs..
The following logs and troubleshooting guide may help you diagnose the issue:
Desktop logs
Neo4j DBMS logs
Troubleshooting guide

解决方法:浏览器登录 http://localhost:7474/browser/ 输入命令 :server disconnect;或在启动DBMS前,在cmd中执行 neo4j stop命令(前提是安装了 neo4j 服务,cmd中运行 neo4j install-service),activate DBMS 尝试重新启动 DBMS。

操作结果:经试验,有时会正常启动,但启动后始终处于 fetching database 阶段,具体原因未知

报错三:neo4j 连接失败

问题描述:在 neo4j browser 中连接 neo4j,报错如下

 ServiceUnavailable: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: 3

在日志文件中显示一下内容

[2022-06-26 08:03:05.579] [info]  Check if neo4j is available on { host: '127.0.0.1', path: '/', port: 11003 }
[2022-06-26 08:03:05.581] [info]  Check if neo4j is available on { host: '127.0.0.1', path: '/', port: 11004 }
[2022-06-26 08:03:05.583] [info]  Neo4j @ 11003 is down. connect ECONNREFUSED 127.0.0.1:11003
[2022-06-26 08:03:05.585] [info]  Neo4j @ 11004 is down. connect ECONNREFUSED 127.0.0.1:11004
[2022-06-26 08:03:06.599] [info]  Retrieved status for DBMS[database-4ede501c-126a-4183-b79e-a69b75eae23b]: false

解决方法:暂无


收获:

  1. 为问题设定时间,若超出预计时间,使用最基本的方法,如:卸载
  2. 学会看日志文件

有关neo4j community与neo4j desktop冲突的更多相关文章

  1. git使用常见问题(提交代码,合并冲突) - 2

    文章目录git常用命令(简介,详细参数往下看)Git提交代码步骤gitpullgitstatusgitaddgitcommitgitpushgit代码冲突合并问题方法一:放弃本地代码方法二:合并代码常用命令以及详细参数gitadd将文件添加到仓库:gitdiff比较文件异同gitlog查看历史记录gitreset代码回滚版本库相关操作远程仓库相关操作分支相关操作创建分支查看分支:gitbranch合并分支:gitmerge删除分支:gitbranch-ddev查看分支合并图:gitlog–graph–pretty=oneline–abbrev-commit撤消某次提交git用户名密码相关配置g

  2. ruby - mixin方法名冲突时如何选择调用方法? - 2

    当你在类中包含方法名冲突的模块时,它会使用类定义的方法。有没有办法选择我想运行的?moduleBdefself.hello"helloB"endendclassAincludeBdefself.hello"helloA"endendA.hello#=>thisprints"helloA",whatifIwant"helloB"? 最佳答案 Ben,当你在Ruby中调用一个方法(比如hello)时,会发生以下情况:如果接收者的特征类有一个名为hello的方法,它将被调用。如果不是:如果接收者的类有一个名为hello的实例方法,它将被调

  3. ruby - 无法激活 susy-2.1.1,因为 sass-3.2.17 与 sass 冲突 (~> 3.3.0) - 2

    我已经安装了最新版本的compass、sass和susy。但我仍然收到此错误:Unabletoactivatesusy-2.1.1,becausesass-3.2.17conflictswithsass(~>3.3.0)有人知道这个Ruby是如何工作的吗?这是我安装的gem的列表:***LOCALGEMS***CFPropertyList(2.2.0)chunky_png(1.3.0)compass(0.12.4)compass-core(1.0.0.alpha.19)compass-import-once(1.0.4)compass-rails(1.1.3)fssm(0.2.10)l

  4. ruby-on-rails - rb_gc() 上的跨线程冲突 - 2

    我正在处理的代码库最近从Ruby1.9.2升级到Ruby1.9.3,从Rails3.1升级到Rails3.2.2。因为我使用的是RVM,所以我只是简单地执行了rvminstall1.9.3,我原以为这是所有必要的。当我运行时railss我得到了错误[BUG]cross-threadviolationonrb_gc()我找到了许多与此问题相关的链接。有oneonStackOverflow,但它并没有真正给出答案。最有希望的答案是ontheRVMsite:IneverycaseofthisIhaveseenthusfarithasalwaysendedupbeingthatarubygem

  5. ruby - 我们如何访问/操作与 byebug 保留关键字冲突的变量名? - 2

    我们如何访问那些与byebug保留名称冲突的变量名称?(byebug)varlocalh={"hierarchyId"=>"59f0b029e4b037ef11a055f7","level"=>2,...self=(byebug)我想访问变量“h”但键入h会显示“byebug的帮助对话框”(byebug)hbreak--Setsbreakpointsinthesourcecodecatch--Handlesexceptioncatchpointscondition--Setsconditionsonbreakpointscontinue--Runsuntilprogramends,hi

  6. ruby - Ruby 线程不能在写入时发生冲突吗? - 2

    在过去的C#和Java工作中,我习惯于这样的声明不是线程安全的:x+=y;但是,在与Ruby并行运行上述代码时,我未能观察到任何线程间的冲突。我读过Rubyautomaticallypreventsmultiplethreadsfromwritingtothesamedataconcurrently.这是真的?因此+=运算符在Ruby中是线程安全的吗? 最佳答案 好吧,这取决于您的实现和很多事情。在MRI中,有一个GVL(GiantVMLock)这样的东西,它控制哪个线程一次实际执行代码。你看,在MRI中,一次只有一个线程可以执行R

  7. ruby-on-rails - 解决 Rails 应用程序中的类名冲突 - 2

    我一直在构建一个执行会计功能的Rails应用程序。作为其中的一部分,我有一个类名为Transaction的模型。到目前为止一切顺利,我构建此功能已有一个月左右的时间,一切都按预期进行。到目前为止...我刚刚发现几个月前使用Ruport库开发的一些旧报告功能已停止工作。看起来Ruport在生成PDF时需要一个库,该库也有一个名为Transaction的类/模块。TypeErrorinAdmin/teamreportsController#generateTransactionisnotamodule...Thiserroroccurredwhileloadingthefollowingf

  8. ruby-on-rails - 如何解决 Rails 模型 namespace 冲突 - 2

    到目前为止的故事:我有一个Rails应用程序,其模型名为“Term”。在尝试安装Cucumber之前一切都很好。运行时rakecucumber我明白了Termisnotaclass(TypeError)发生这种情况是因为Cucumber包含另一个gem,'term-ansicolor'(在控制台中执行漂亮的彩色文本输出),并且term-ansicolor定义了一个名为“Term”的模块。Cucumber在包含Rails模型之前包含term-ansicolor,因此在加载“Term”模型时“Term”已经被定义为一个模块。顶级模块和类在Ruby中不能有相同的名称,因此会发生冲突。不想重命

  9. ruby-on-rails - Railties 的可执行文件 "rails"与/usr/bin/rails 冲突 - 2

    我正在尝试使用命令sudogeminstallrails安装rails但是,当我这样做时,我收到以下错误消息:railties'sexecutable"rails"conflictswith/usr/bin/railsOverwritetheexecutable?[yN]我目前没有安装rails,我也不打算安装RVM或rbenv,尽管我可能会在以后安装。注意当前未安装Rails有人可以建议我应该做什么吗?谢谢 最佳答案 我刚刚在我的MacBook上安装Rails时遇到了这个问题。我打开/usr/bin/目录并在文本编辑器中打开“ra

  10. ruby - Gitlab 配置问题::NGINX Unicorn 端口冲突 - 2

    我已经成功地部分设置了Gitlab在带有Apache、Git、PHP、PostGreSQL和MySQL的LinuxCentOS服务器上。我正在运行ChefCookbookversion.我从here得到了rpm.我想用它来更好、更直观地管理我的Git存储库,这似乎是一个不错的选择。但现在我遇到了让它工作的问题。为了让它真正工作并更新所有文件,我决定使用gitlab-ctlreconfigure重新运行配置。第二次运行确实有效:ChefClientfinished,4resourcesupdatedgitlabReconfigured!参见fulllog托管商已经将NGINX安装在808

随机推荐