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

Run path for gap/daily sync with Crossref #74

Open
kermitt2 opened this issue Apr 27, 2022 · 1 comment
Open

Run path for gap/daily sync with Crossref #74

kermitt2 opened this issue Apr 27, 2022 · 1 comment

Comments

@kermitt2
Copy link
Owner

from @Aazhar
Currently the service has to be launched from the biblio-glutton/lookup repertory to solve the path to the indexing for daily update, otherwise:

ERROR [2022-04-27 03:14:12,161] com.scienceminer.lookup.utils.crossrefclient.IncrementalLoaderTask: IO error when executing external command: [node, main, -dump, /opt/biblio-glutton/crossref_increments/2022-04-26/D1000310.json.gz, extend]
! java.io.IOException: error=2, No such file or directory
! at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
! at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
! at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
! at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
! ... 7 common frames omitted
! Causing: java.io.IOException: Cannot run program "node" (in directory "../indexing"): error=2, No such file or directory

We could improve the resolution of the path, probably with an optional install path parameter.

@karatekaneen
Copy link
Contributor

@kermitt2 Unfortunately I don't know enough Java to figure out how to load the path in a smarter way, but if interested I can open a PR changing it to "../../indexing" to allow it to work in the Docker image?

Also, do you know if the files already downloaded but not indexed will get indexed when this is fixed or are they already "processed"? If so, is it possible to reset somehow?

@lfoppiano lfoppiano added this to the 0.3 milestone Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants