New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test restd interface locally #96
Comments
Where did you give it its data? When I try to specify the data directory or give it one of the xml files, it still gives me a BaseX exception. I don't get this issue when using the basex backend directly. |
I did not specify a data directory at all. By default it whould point to some test data. |
With the data provided I get a imilar message as you reported before
Is it the math000000375000 file for you too? |
For me it gives the same error on the math000000000000.xml file, regardless of if that's the only file I give it or if I give it the path to the directory. When I don't provide any data directory, it works like yours does. I still think it's odd that when running the basex backend directly, I can provide a data directory and it works perfectly fine, but if I do the same thing when running through restd, it breaks. Doesn't it run the same Command.java startup function both ways? |
I guess it's a memory problem. |
@plato2000 can you figure out how to pass the xmx parameter to mvn exec. |
I used the MAVEN_OPTS to set the xmx parameter to 12 gigabytes, but that did not fix the issue. |
did you check in the task manager if the memory is really assigned. Can you add the -d parameter to the basex server to get a more detailed error message? (It's commented out in the code) |
In the task manager, it did not use the amount of ram that was assigned with the Xmx option. However, I checked multiple sources, and using the MAVEN_OPTS environment variable is the right way to give it more RAM. I think that this is not a RAM issue because of this.
|
Alright, when using the debug option, it says
and it works. When doing the same thing when running the restd interface, it gets to one dot for the creating database before crashing.
And then gives the same BaseX exception as before. |
Also, I checked the RAM thing, and I ran |
@plato2000 I talked to @ChristianGruen today. He proposed some suggestions to improve the server, client communcation. I merged his pull requst. Can you check if that also resolved the issue at hand? |
Ok, it seems to work now. Thanks! |
@plato2000 reported problems with the restd interface.
Running
mvn exec:java -Drestx.http.XForwardedSupport=all -Dpassword=mathosphere
works fine for me.
It looks like in the screenshot below:
@plato2000 please describe what problem you see.
The text was updated successfully, but these errors were encountered: