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

Grobid server start halts at 88% #298

Closed
snw5208 opened this issue Mar 22, 2018 · 14 comments
Closed

Grobid server start halts at 88% #298

snw5208 opened this issue Mar 22, 2018 · 14 comments
Assignees
Labels
bug From Hemiptera and especially its suborder Heteroptera

Comments

@snw5208
Copy link

snw5208 commented Mar 22, 2018

I did a fresh install of Grobid and after successfully completing an install trying to run the server causes it to halt at 88% execution and hang here for upwards of ten minutes or more. The screen print is attached below

PUT     /api/processFulltextAssetDocument (org.grobid.service.GrobidRestService)
   POST    /api/processFulltextDocument (org.grobid.service.GrobidRestService)
   PUT     /api/processFulltextDocument (org.grobid.service.GrobidRestService)
   POST    /api/processHeaderDocument (org.grobid.service.GrobidRestService)
   PUT     /api/processHeaderDocument (org.grobid.service.GrobidRestService)
   POST    /api/processHeaderNames (org.grobid.service.GrobidRestService)
   PUT     /api/processHeaderNames (org.grobid.service.GrobidRestService)
   POST    /api/processReferences (org.grobid.service.GrobidRestService)
   PUT     /api/processReferences (org.grobid.service.GrobidRestService)
   POST    /api/referenceAnnotations (org.grobid.service.GrobidRestService)
   GET     /api/sha1 (org.grobid.service.GrobidRestService)
   POST    /api/sha1 (org.grobid.service.GrobidRestService)
   GET     /api/version (org.grobid.service.GrobidRestService)

INFO  [2018-03-22 14:41:27,488] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHand
ler@2513a118{/,null,AVAILABLE}
INFO  [2018-03-22 14:41:27,495] io.dropwizard.setup.AdminEnvironment: tasks =

   POST    /tasks/log-level (io.dropwizard.servlets.tasks.LogConfigurationTask)
   POST    /tasks/gc (io.dropwizard.servlets.tasks.GarbageCollectionTask)

INFO  [2018-03-22 14:41:27,501] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHand
ler@7be1ce6a{/,null,AVAILABLE}
INFO  [2018-03-22 14:41:27,513] org.eclipse.jetty.server.AbstractConnector: Started application@656d10a4{HTTP/1.1,[http/
1.1]}{0.0.0.0:8070}
INFO  [2018-03-22 14:41:27,514] org.eclipse.jetty.server.AbstractConnector: Started admin@63ec445c{HTTP/1.1,[http/1.1]}{
0.0.0.0:8071}
INFO  [2018-03-22 14:41:27,514] org.eclipse.jetty.server.Server: Started @7289ms
<===========--> 88% EXECUTING [5m 14s]
> :grobid-service:run
@lfoppiano
Copy link
Collaborator

hi @snw5208,
AFAIK this is a glitch in the gradle run task when you run the service, since it's shares the same JVM the gradle process stays appended.

You should be able to run it as a service without gradle (from the grobid directory):

./gradlew clean assemble 
./grobid-service/bin/grobid-service server grobid-service/config/config.yaml

Give it a try and let me know if it's working. If so I will add it to the documentation.

Regards
Luca

@snw5208
Copy link
Author

snw5208 commented Mar 22, 2018

The first command resulted in a successful build:

BUILD SUCCESSFUL in 1m 10s
24 actionable tasks: 24 executed

However the second command results in:
-bash: ./grobid-service/bin/grobid-service: No such file or directory

@lfoppiano
Copy link
Collaborator

@snw5208 thanks, I will have a look. I remember fixing this problem already 😅 actually

@lfoppiano lfoppiano self-assigned this Mar 22, 2018
@lfoppiano lfoppiano added the bug From Hemiptera and especially its suborder Heteroptera label Mar 22, 2018
@lfoppiano
Copy link
Collaborator

OK so there is no issue, I've just forgot some steps, after assembling it you need the grobid-service zip file and the grobid-home, they needs to be placed in a directory and afterwards they can be run successfully:

./gradlew clean assemble 
cd ..
mkdir grobid-instal
cd grobid-instal
unzip ../grobid/grobid-service/build/distributions/grobid-service-0.6.0-SNAPSHOT.zip -d grobid-service
unzip ../grobid/grobid-home/build/distributions/grobid-home-0.6.0-SNAPSHOT.zip 
./grobid-service/bin/grobid-service server grobid-service/config/config.yaml

From grobid-installation there should be a tree of this type:

.
├── grobid-home
└── grobid-service

It should work, let me know if works for you
Luca

@lfoppiano
Copy link
Collaborator

@snw5208 is it working?

@lfoppiano lfoppiano added this to the 0.6.0 milestone Mar 27, 2018
@alperozaydin
Copy link

I do have same problem and I followed your instruction but when I run the last command I get this error:

Exception in thread "main" java.io.FileNotFoundException: File grobid-service/config/config.yaml not found
	at io.dropwizard.configuration.FileConfigurationSourceProvider.open(FileConfigurationSourceProvider.java:18)
	at io.dropwizard.configuration.YamlConfigurationFactory.build(YamlConfigurationFactory.java:78)
	at io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:124)
	at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:72)
	at io.dropwizard.cli.Cli.run(Cli.java:75)
	at io.dropwizard.Application.run(Application.java:79)
	at org.grobid.service.main.GrobidServiceApplication.main(GrobidServiceApplication.java:90)

@alperozaydin
Copy link

I have solved it. For me, I had to move all files under grobid-service (the one we unzipped) to main grobid-service.

So these are the steps that I followed and it worked for me.

./gradlew clean assemble 
cd ..
mkdir grobid-instal
cd grobid-instal
unzip ../grobid/grobid-service/build/distributions/grobid-service-0.6.0-SNAPSHOT.zip -d grobid-service
unzip ../grobid/grobid-home/build/distributions/grobid-home-0.6.0-SNAPSHOT.zip 
cd grobid-service/grobid-service-0.5.1/
mv bin/ lib/ doc/ ../../../grobid-0.5.1/grobid-service/
cd ../../../grobid-0.5.1/
./grobid-service/bin/grobid-service server grobid-service/config/config.yaml

Repository owner deleted a comment from atlasian Apr 11, 2018
@Aazhar
Copy link
Collaborator

Aazhar commented Apr 11, 2018

Hello,
I confirm, following the steps indicated by @alperozaydin, this issue is solved, the grobid service is up.

@lfoppiano
Copy link
Collaborator

I've re-checked and updated the documentation with a slight change in the process. Thanks for the heads up.

@kandalavaishnavi
Copy link

kandalavaishnavi commented May 21, 2018

Hey.. I have tried the above steps and still get the error as "The system cannot find the path specified".

Can you please suggest?

@lfoppiano
Copy link
Collaborator

@kandalavaishnavi could you please share the log of the commands you've ran?

@kandalavaishnavi
Copy link

I am trying to install this in Windows environment:

step 1 - git clone https://github.com/kermitt2/grobid.git
step2 - ./gradlew clean install test
I also tried starting the server using gradle but it got stuck at 88% (as mentioned here)
step3 - /gradlew clean assemble
step4 -

cd ..
mkdir grobid-installation
cd grobid-installation
post this, I manually unzipped "grobid-service-0.6.0-SNAPSHOT.zip" and moved to grobid-service (Folder)
step 5 - similarly unzipped grobid-home
step6 - ./grobid-service/bin/grobid-service server grobid-service/config/config.yaml
when I tried to run this command, it doesn't work and says the system cannot find the path specified.

@lfoppiano
Copy link
Collaborator

lfoppiano commented May 22, 2018

@kandalavaishnavi first of all, the fact that "get stuck" at 88% is not a bug, it's jus that the application is in service mode and since we run it from gradle it "doesn't finish" until you kill the service. For running on your local system, is the preferred way (cause leads to less problems)

To be able to help you, I need to see the commands as they were ran from the command line (including responses) or the structure of the grobid-installation directory

@lfoppiano lfoppiano removed this from the 0.6.0 milestone Oct 17, 2019
de-code pushed a commit to elifesciences/grobid that referenced this issue Nov 29, 2019
@ajinkya2903
Copy link

image
Hey, even after following the steps you have shown in this issue it is not working. Is there any solution to this or I am doing any mistake here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug From Hemiptera and especially its suborder Heteroptera
Projects
None yet
Development

No branches or pull requests

6 participants