Skip to content
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

MetFragREST reuqires hardcoded /tmp #115

Open
sneumann opened this issue Mar 20, 2023 · 1 comment
Open

MetFragREST reuqires hardcoded /tmp #115

sneumann opened this issue Mar 20, 2023 · 1 comment

Comments

@sneumann
Copy link
Member

Hi,

@jkuan1 submitted a PR to disable ChemSpider. He also fixed an issue with RESULTS_FOLDER = System.getProperty("java_io_tmpdir"); that didn't work, so he hardcoded /tmp and things worked smoothly
7aa46d7

I still haven't found why that is necessary when running in the embedded tomcat server.
I tried asking what the java process thinks its tmpdir would be: jinfo PROCESSID | grep "java.io.tmpdir"
and it says java.io.tmpdir=/tmp.

I also tried supplying java -Djava.io.tmpdir=/tmp -Dserver.port=8090 -jar MetFragRest-2.5.0.jar
to no avail. Running on openjdk 11.0.18 2023-01-17.

For now, I am using Justin's workaround.

Yours,
Steffen

@jkuan1
Copy link
Contributor

jkuan1 commented Mar 23, 2023

Hey Steffen,

Good to here that the workaround is still working after a whole year haha.
Apologies for forgetting to remove the debug print statements in the PR.

Hope you are doing well,

Justin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants