cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4j Desktop Issue

I recently used Neo4j Desktop version 1.2.5 with Window 10. It worked well with some data analytics. But, now, the Neo4j desktop application can't open so that I can't do anything. I see the Neo4j desktop.exe (Admin) is running in the background process in my task manager. However, I can't see the Neo4j desktop screen. Any help would be appreciated. Thanks in advance! I need it seriously for work.

79 REPLIES 79

Hey, can you confirm for me the version of Neo4j Desktop you are using, it will be a version 1.x.x number. 1.4.7 is the most recent version. Thanks!

Yes. Mine is Neo4j Desktop 1.2.5.

I'd definitely recommend backing up important Databases and then installing / upgrading to the most recent version of Desktop as that version is now quite old. Let me know how you get on.

I just download and installed the new one version 1.4.7. But, I can't open the screen yet. How can I open it,? Thanks! The installed location is E:\GraphDatabase\Neo4j Desktop.

I found the same issue with new version. It can't open yet. Any solution? Thanks! I need it for my school assignments. Please help me...My old databases are located in " E:// Neo4jdatabases". They are not the same location now. How can I resolve them to use those existing databases with new one?

Hi there. Have you tried restarting your computer & trying again to open the desktop application? If there are any lingering processes running that will clear them out.

Sure! Already restart my computer. But, it still can't launch the neo4j desktop screen like before.

Hi @laelaeshwe89 ,

a long time ago i had a similar trouble , could you try to see on error log ? in my case the start up process was looking for a .json file , ive been resolved looking the file in the backup folder and "copy & paste" at the new path and ready !!

Saludos

Yeah, I agree, I think it'd be useful to look at your log file

@laelaeshwe89 we're looking into the issue and think it could be to do with an issue with a cache relating to plugins becoming corrupted (might be similar to experience @ponceortiz is referring to).

Can you try deleting the file at:

C:\Users\[USERNAME]\AppData\Local\Neo4j\Relate\Cache\plugin-sources\default-sources.json

and report back.

Do I need to find this error log file, default-source.json file in my databases that I populated with Neo4j before? I'm looking up this json file . @ponceortiz @gregory.king @emma.nash. I will report it back here. Thanks for your kindly suggestions and possible solutions as I need it urgent.

You should be able to find it at C:\Users\[USERNAME]\.Neo4jDesktop\log.log (or E drive if that's what you're using)

When I find it that error file in my drive where my databases are located, I see those log files....

E:\Neo4JDatabase\neo4jDatabases\database-084b461b-72c3-4d5b-b85f-74ce2844ea5b\installation-4.0.1\logs

It's the desktop-app log file we're looking for, not the database log files.


if you run into issues with Desktop 1.4.7 on Windows could you try this and report back?

try asking them to delete the C:\Users[USERNAME]\AppData\Local\Neo4j\Relate\Cache\plugin-sources\default-sources.json file and see if that helps? We think that the reason for desktop not starting for some users might be that the cached plugin sources has become corrupt

I unfortunately don't think the plugin sources file is the issue here anymore. But it would be really helpful to get the log file from either your new or old installation. It should be located in the root of the folder you chose as the storage location when you first started the app and it should be named log.log.

When I look for the desktop-app log file, I see those files
C:\Users\Admin.Neo4jDesktop
3X_7_3_73aeaa1b505475e300617dae145384dd7078f3eb.png

[2021-07-10 17:49:40.767] [error] App initialization error SyntaxError: Malformed JSON in file: C:\Users\Admin.Neo4jDesktop\persist\userData.json
Unexpected token in JSON at position 0
at FileAsync.parse [as deserialize] ()
at E:\Neo4j Software\Neo4j Desktop\resources\app.asar\node_modules\lowdb\adapters\FileAsync.js:41:35
at async E:\Neo4j Software\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:179463
at async App. (E:\Neo4j Software\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226871)
The same error log file after installing the new version in different folder.....It still can't launch the app..

Before I installed the new version: The neo4j desktop app stopped working. I found this file in log: [2021-07-05 10:54:42.584] [error] App initialization error: SyntaxError: Malformed JSON in file: C:\Users\Admin.Neo4jDesktop\persist\userData.json
Unexpected token in JSON at position 0 {
constructor: 'SyntaxError',
stack: 'SyntaxError: Malformed JSON in file: C:\Users\Admin\.Neo4jDesktop\persist\userData.json\n' +
'Unexpected token \u0000 in JSON at position 0\n' +
' at FileAsync.parse [as deserialize] ()\n' +
' at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules\lowdb\adapters\FileAsync.js:41:35\n' +
' at async E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:169182\n' +
' at async $ (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:84153)'
}

Not sure why the file becomes corrupt. But if you delete C:\Users\Admin.Neo4jDesktop\persist\userData.json and try to start. Does it work?

Should I delete that one userData.json file?

Just one thing, could you post what’s inside the userData.json file? It would be interesting to know what has corrupted it.

Hello! I can't open and see anything in the userData.json file because it's either binary or unsupported text encoding .

. Here is the things inside the userData.json file. What should I do it? please...

3X_2_e_2e292c9c65ccecf897571fc463c265b10ab2ffeb.png
Should I delete userData.json file?

Yes, delete it and see if that helps. You might need to select the storage location again since that is saved into the userData file.

After deleted the userData json file and reinstall again. It's still can't launch the Neo4j Desktop Screen yet.

[2021-07-12 14:57:14.191] [error] App initialization error Error: EPERM: operation not permitted, mkdir 'C:\PROGRA~2\ADOPTO~1\JRE-80~1.08-\Neo4j'
[2021-07-12 14:58:08.155] [info] Starting Neo4j Desktop 1.4.7 @ Windows_NT 10.0.14393
[2021-07-12 14:58:08.201] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)
[2021-07-12 15:00:06.056] [info] Starting Neo4j Desktop 1.4.7 @ Windows_NT 10.0.14393
[2021-07-12 15:00:06.088] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)

When I install, I chose the location E:\GraphDatabase\Neo4j Desktop..instead of C: Program File/.....Is it problem? I'm still trying to solve it...Hope anyone can help me for my graph databases that I have already populated with Neo4j for my school assignment soon!! I am a very new with Neo4j graph database but I love to learn and work with it for my projects.

I see this before I deleted and install/reinstall new version 1. 4. 7 again.

[2021-07-12 10:13:35.585] [error] App initialization error SyntaxError: Malformed JSON in file: C:\Users\Admin.Neo4jDesktop\persist\userData.json
Unexpected token in JSON at position 0
at FileAsync.parse [as deserialize] ()
at E:\Neo4j Software\Neo4j Desktop\resources\app.asar\node_modules\lowdb\adapters\FileAsync.js:41:35
at async E:\Neo4j Software\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:179463
at async App. (E:\Neo4j Software\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226871)

I just deleted userData json file and uninstall/reinstall. But, it sill not working. I found this errors log again. It 's a bit different the previous error log.

[2021-07-12 14:50:39.706] [error] App initialization error Error: EPERM: operation not permitted, mkdir 'C:\PROGRA~2\ADOPTO~1\JRE-80~1.08-\Neo4j'

The operation not permitted, mkdir 'C:\PROGRA~2\ADOPTO~1\JRE-80~1.08-\Neo4j' error, what is located on that path? What happens if you just rename that Neo4j folder?

After uninstall AdoptOpenJDK, I still see this folder in the following path....

C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.242.08-hotspot

Wait, do you have Java 8 from oracle installed on your machine? We provide Java runtimes within Desktop and you don't need to have Java installed separately, to me it seems like there's some kind of dependency issue with the installed version of Java which Neo4j Desktop doesn't have enough privileges to run. I'm not a Windows user myself, so I can't really be sure what is happening. But my tip is to uninstall Java 8 (unless you need it for something else), and try again.

I have already uninstall AdoptOpenJDK JRE with Hotspot 8.0.242.08 (x86) from my computer. But, Neo4j Desktop still can't launch yet. Here are the things in the log file...

[2021-07-14 13:07:06.844] [error] App initialization error Error: EPERM: operation not permitted, mkdir 'C:\PROGRA~2\ADOPTO~1\JRE-80~1.08-\Neo4j'
[2021-07-14 13:10:50.288] [info] Starting Neo4j Desktop 1.4.7 @ Windows_NT 10.0.14393
[2021-07-14 13:10:50.338] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)
[2021-07-14 13:13:52.681] [info] Starting Neo4j Desktop 1.4.7 @ Windows_NT 10.0.14393
[2021-07-14 13:13:52.716] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)

You uninstalled 8.0.242.08, but since the version that Desktop picks up has JRE-80~1.08- as the folder it seems to be a lower version than you uninstalled. Maybe try and uninstall that version too? I'm going to investigate if I can replicate the issue... it's weird that Desktop picks that path up on start...

Or, I misunderstood. My guess is that there's something left behind in your env path. Can you check if you have any lingering JAVA_HOME variables or similar?

To create or modify environment variables on Windows :

1. Right-click the Computer icon and choose Properties, or in **Windows** Control Panel, choose System.
2. Choose Advanced system settings. ...
3. On the Advanced tab, click **Environment Variables** . ...
4. Click New to create a new **environment variable** .

Here is the things from the JAVA-HOME variables in my Window.

Two other environment variables that could be of interest are APPDATA and LOCALAPPDATA. If they have become overwritten with a path to Program files... Not sure why it would happen, but something to look into. The reason Desktop fails to start is because of permission issues when trying to create a folder (in a non standard location).

Hi @laelaeshwe89, could you remove the TEMP environment variable or change it to the same value as the TMP variable?

It looks like the path in the TEMP variable is the one that Desktop is trying to create, and it might explain the issue. Desktop is initializing some folders during startup, and one of these is a temporary folder, it seems like the user starting Desktop doesn't have the permissions to write in that folder, so you get that error during startup.

Hello! When I changed TEMP environment variable to the same value as TMP variable as following figures, I got another error like this:



3X_e_d_ed04f4c475be04ff64dcc7e868491b0287e20118.png

Sorry for the confusion, I meant that you should try to remove the TEMP variable or change the TEMP variable to the same value as TMP (so TEMP would become %USERPROFILE%\AppData\Local\Temp).

Could you try that and report back if it works or if you get some other error?

I have already changed the value of TEMP variable like this: But, the Neo4j desktop can't launch yet. And, I see different error in log file:

[2021-07-20 14:33:15.155] [error] App initialization error Error: EPERM: operation not permitted, mkdir 'C:\PROGRA~2\ADOPTO~1\JRE-80~1.08-\Neo4j'
[2021-07-20 14:35:53.439] [info] Starting Neo4j Desktop 1.4.7 @ Windows_NT 10.0.14393
[2021-07-20 14:35:53.472] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)

Ah okay, and what happens if you remove entirely the TEMP variable (while not modifying the TMP variable)?

Hello! Luckily, when I remove entirely the TEMP variable (while not modifying the TMP variable), OMG, my lovely Neo4j Desktop start running.....I Agree the NEO4J LICENSE AGREEMENT FOR NEO4J DESKTOP SOFTWARE . Then, I choose the new folder " for storing application data". Here is the screen and Neo4j software is working like that: why it take time to launch? something wrong?. Or I'm still waiting to see the Neo4j Desktop Screen..Hope it's almost done..It takes already 30 mins..from starting..


Great to hear that the application finally started running!

That step should be almost instantaneous, so it's strange that it keeps going after 30 mins. Could you share the Desktop log to see if there's any error there?

[2021-07-21 14:25:43.929] [error] Protocol Manager type error: url must be string. url = undefined

[2021-07-21 14:25:43.874] [warn] C:\Users\Admin.Neo4jDesktop\neo4jDatabases not found

Before I got this issues, Neo4j stop working, I have populated my own graph databases. Then, it's the new version. It's still loading...not finished yet...What should I do? Should I chose that old database folder or how? Thanks!
[2021-07-21 16:57:10.870] [info] Online check request: https://dist.neo4j.org/neo4j-desktop/win/latest.yml
[2021-07-21 16:57:11.752] [info] Online check response: 200 version: 1.4.7
files

I see the same error log today again. It still loading ...It still can't launch the Neo4j Desktop Screen for doing something yet! Hope it will work soon!

[2021-07-22 11:20:44.412] [error] Protocol Manager type error: url must be string. url = undefined

[2021-07-21 14:26:38.376] [info] Query execution successful, got result
[2021-07-21 14:26:40.388] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-ee3a49ee-8efa-4ef6-a013-198c0321ebb3 not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.389] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-fbc6cb80-2f80-4b14-be48-b55b4fbf02f8 not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.389] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-084b461b-72c3-4d5b-b85f-74ce2844ea5b not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.389] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-3c624cc0-70f0-41d9-a518-b4505e2da894 not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.389] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-5ab7b27b-8501-4135-bc85-01e35cf69baf not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.390] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-3654a90d-7c86-4f06-bbd5-501d7741821c not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.390] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-3f20d9c3-9c08-4135-81ad-d4373804c2e2 not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.390] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-40b77cb2-4a4a-4790-94df-e0e3398520d7 not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.391] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-1ffefbac-5d7f-4e41-8785-15ac6cb6bf2b not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.391] [warn] Failed to get DBMS path through Relate Error: Relate DBMS with tag neo4j-desktop-dbms-database-b27c1704-96fd-4605-bfd1-44a5149dd46c not found
at E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238380
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\monad.js:102:46)
at Maybe.getOrElse (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\node_modules@relate\types\dist\monads\primitive\maybe.monad.js:93:22)
at Object.P (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:238358)
at async Object.t.neo4jPath (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:168360)
at async Object.exists (E:\GraphDatabase\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:141563)
[2021-07-21 14:26:40.404] [info] Retrieving status for DBMS[database-f3d70591-2486-4eb4-9dfc-15f119bcb70f]

Could you post the entire log in one message please? It's hard to understand what's going on when it's not complete and it's split on multiple messages. Most of the warnings/errors shouldn't affect the application's functionality, but it's useful to see where each is occurring.

Yes, But, It has a lot of data in log file. Could you pls tell me how I can post this whole log file here?

There is a button when writing a post to upload a file, that should work.

Here is the whole log file: Thanks
log2.txt (604.8 KB)

Thank you.

Also, just to make sure I'm understanding the issue correctly. You selected a new data path (a path that doesn't contain anything from previous Desktop installations) when starting Desktop, and now it's stuck in this step:

Is that correct?

Yes Yes. I created new empty folder and chose that one. So, there is nothing in this path..

Okay. Looking at the logs it seems like Desktop is finding some of the old data when starting. Could you check if there is anything in this path C:\Users\Admin\.Neo4jDesktop?

And if there is could you rename that folder to something else and try restarting Desktop?

Okay, could you rename this folder to something else (for example .Neo4jDesktop-old) and restart Desktop?

Yeyyy! I can see the Screen now. Thank you very much!

I still need to use my old graph databases which are populated with Neo4j. How can I do such old graph databases with this new one? They are located in different location path...

Do you have a lot of them, or just a few? And what version of Neo4j are they using?

It's not possible to import them automatically, but there are a few ways that you can do that manually. How easy that will be depends on whether the Neo4j version they are running is still supported.

They are created with Neo4j 4.0.1. I have a lot. Three different graphs data. If there are few ways that I can do that manually, I will do. Thanks!

Okay, great that they are using 4.0.1, that will work fine with Desktop, and you won't need to manually upgrade them first.

Just to make sure I understood correctly, you have three Neo4j instances, which contain a lot of data, right? Does each instance contain multiple databases or only one each?

I think each instance contain only one database. Here are my old data that I tested ..

Alright, the safest solution in your case would be to create dump files from the old databases, move those files into Desktop and then create new DBMSs (Neo4j installations) from them.

To do this, you need to first find your old DBMSs in your file system:

  • Go in the old desktop data directory.

  • Open the neo4jDatabases folder.

  • Now you should see a list of folders with a name following this format database-<id>.

  • Inside each of these folders there can be one or more folders named installation-<version>. If there are multiple installation folders, open only the one with the most recent version.

The content of the installation folder will look similar to this:

Then create the dump files:

  • Once inside an installation-<version> folder, open PowerShell in that location (shift + right click in the file explorer and click on "Open PowerShell window here").

  • Run the dump command (more info about it here). You can use whatever name you want in the --to argument, just make sure that it ends in .dump.

.\bin\neo4j-admin.bat dump --database=neo4j --to=dbname.dump
  • If successful you'll see a message similar to this:
Done: 73 files, 1.116MiB processed.

Finally, load the dump files into desktop:

  • Drag the .dump file that was just created into the corresponding project in Desktop.

  • Select "Create new DBMS from dump" on the options menu.

  • Make sure to select the same version the DBMS was running before. The patch number doesn't have to match, but the rest needs to be the same. So for example if your DBMS was using version 4.0.1 any 4.0.x version would be fine.

  • Click on "Create" and you're done.

Let me know if any steps are unclear, or if you come across any other issues in the process.

Thank you! I'm trying now.. what wrong with that?

Thanks a million for your patient on my issues ! Now, I have already got my data back. It was successfully done as your kindly suggestions and commands with Neo4j Desktop new version. I'll continue and use neo4j a lot more.. Sometimes, I was misunderstood some solutions because of my worries...

Bodeman
Node Link

I am also getting:
[2021-07-22 15:56:08.212] [error] Protocol Manager error TypeError [ERR_INVALID_URL]: Invalid URL: --allow-file-access-from-files
at onParseError (internal/url.js:256:9)
at new URL (internal/url.js:332:5)
at Object.t.default (C:\Program Files\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:196083)
at App. (C:\Program Files\Neo4j Desktop\resources\app.asar\dist\main.prod.js:1:226684)
at App.emit (events.js:315:20)
at App.EventEmitter.emit (domain.js:483:12)
at App.emitter.emit (C:\Program Files\Neo4j Desktop\resources\app.asar\node_modules@sentry\electron\dist\main\integrations\electron.js:66:25)

When I startup desktop or try to add an app. I renamed the .neo4jdesktop folder as well, but doesn't seem to fix it. I cannot add any apps, like GraphQL which I would like to use.

Right, I forgot that neo4j-admin requires Java to run. You can run this command (before the dump command) to make the script use the same Java version that is bundled with Desktop:

$env:JAVA_HOME = "<desktop data path>\distributions\java\zulu11.41.23-ca-jdk11.0.8"

If you used this path

then the command would look like this for you:

$env:JAVA_HOME = "E:\Neo4jNewDatabase\distributions\java\zulu11.41.23-ca-jdk11.0.8"

Should I run this command in the previous path that I run the dump command? Or Can I change in Window's JAVA HOME variable?

Yes, right before running the dump command. That will set the JAVA_HOME environment variable for that PowerShell window.

Is that correct?
When I copied and run that command "The filename, directory name, or volume label syntax is incorrect."...

Hi @Bodeman, that sounds like a different issue, could you create a separate post for it?

That error is safe to ignore in most cases, but if you're having issues adding graph apps it could be relevant. Please also add the full log and explain how you're trying to install graph apps (as there are a few different ways to do that) to make it easier for people to help you.

Understood. Thanks. Created new post: Invalid URL when adding any graph app to desktop

It looks like you're running the command in the command prompt instead of PowerShell. Run powershell and then try again. Also the path needs to be surrounded by quotes.

Thanks!

Awesome! Happy that you got everything working!