GeezerVison is showing github.com — [GremlinServer] Can't start without an error · Issue #1265 · ArcadeData/arcadedb
[GremlinServer] Can't start without an error #1265DescriptionArcadeDB Version:
v23.9.1
OS and JDK Version:
Running on Windows 10 10.0 - OpenJDK 64-Bit Server VM 17.0.8.1 (Microsoft-8297089)
Expected behavior
Start ArcadeDB Server with GremlinServer Plugin
Actual behavior
Failing with the following error message on the first start:

After Closing the script with Ctrl+C and restart:


Steps to reproduce
Unzip newest Version
Execute in Powershell:
$env:JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata -Darcadedb.server.plugins=GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin"
./bin/server.bat Activitylvca commented on Oct 6, 2023 Have you tried to use docker? If it works with docker it must be something in how the script handles the paths in Windows. Just a first guess. JoJ123 commented on Oct 6, 2023 Yes, it's working fine in docker. But for my usecase I have to use Windows. lvca commented on Oct 6, 2023 So I guess there is something that causes the issue in the Gremlin server cfg in one of the following files under the config directory:
- gremlin-server.groovy
- gremlin-server.properties
- gremlin-server.yaml
Unfortunately, I don't have a Windows PC to test it out. Any chance you can lookup in those files if there is anything about paths? lvca commented on Oct 7, 2023 Try to run the script from the ArcadeDB home directory with: bin\server.bat JoJ123 commented on Oct 7, 2023 Seems to be still the same issue. I've taken the latest version from the release page.
 lvca commented on Oct 7, 2023 The issue is still about locking. (1) Could you please run jps on the shell and see if there is another instance of the server running?
(2) Another attempt could be moving the arcadedb distro under a path without spaces to see if that's the issue. JoJ123 commented on Oct 8, 2023 (2) No change in folder without spaces.
(1) When I start like above I just see one entry in the list

One thought about the locking.
With other databases for gremlin server the start was not with a .bat file from the database itself. For example for Bitsy you start the gremlin-server.bat with a YAML Config file for Bitsy.
So my idea is, that the process from ArcadeDB "Core" is already locking the DB. So that GremlinServer cannot start and use it. Is there a way to start the GremlinServer via the gremlin-server.bat? lvca commented on Oct 8, 2023 Thanks for testing it. I agree that the server must "confuse" the graph database with 2 different paths, for some reason, so it tries to open the database the 2nd time but it's locked.
Or, perhaps, the open database is not registered correctly, but why does it work on Linux and Mac?
From your logs:

I can see the graph database was registered by using a relative path, since it looks like it's a Windows-only issue, there must be something with the way the paths are managed.
About the server, it's designed in that way, so ArcadeDB & Gremlin share the same JVM. This means there is no TCP/IP between the servers, no marshalling and unmarshalling of data, and that's why ArcadeDB should be the fastest Gremlin implementation out there :-)
Could you please turn on the FULL logs? Edit the file config/arcadedb-log.properties and change the level to FINE everywhere you see INFO and restart the server. JoJ123 commented on Oct 9, 2023 I did some more tests.
First:
Even if the issue is displayed in the logs the Admin Console on localhost:2480 is reachable.
I was able to perform gremlin lang operations (add & fetch):

Is this linked to the Gremlin Server, or are you in the UI transforming the queries internally?
Second:
I went further based on your hints regarding the paths. I have changed two things:
gremlin.arcadedb.directory=C:\ArcadeDB\databases\graph (gremlin-server.properties)
-Darcadedb.server.databaseDirectory=C:\ArcadeDB\databases

And tada :D It's working!
So you're right regarding the paths. With absolute paths, it's working fine now. Anyway, it would be probably better to continue the investigation to find a solution with relative paths as well. lvca commented on Oct 12, 2023 I see you changed the path to C:\ArcadeDB\databases\graph. So it could also be the space in the directory name you had before that is not correctly quoted from the script.
About your 1st question, the ArcadeDB server executes internally gremlin queries (and sql, cypher, etc) and returns the result in HTTP/JSON for Studio web tool. lvca commented on Nov 21, 2023 Closing this for now, please comment on this issue if this happens again, so I can reopen it.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|