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

Docker and Docker-compose files incorrect + java.net.ConnectException #79

Closed
steppo83 opened this issue Sep 26, 2022 · 3 comments
Closed
Assignees

Comments

@steppo83
Copy link

steppo83 commented Sep 26, 2022

Hello,
Some points to help users that will user biblio-glutton in Windows env with Docker.

  • You need to clone the repo using this args --config core.autocrlf=input so the command will be git clone https://github.com/kermitt2/biblio-glutton.git --config core.autocrlf=input otherwise you'll have strange errors during docker-compose up phase
  • Docker file is not right, it needs the last command to be CMD java -jar lib/lookup-service-0.2-onejar.jar server /app/config/glutton.yml
  • Docker compose file is not right, needs to have volume for config otherwise the jar file says that it cannot find it, so

volumes:
- .\data:/app/data
- .\config:/app/config

Even with all those changes, the service starts but biblio-glutton has java.net.ConnectException of Connection refused.

WARN [2022-09-26 07:48:02,191] org.eclipse.jetty.server.HttpChannel: handleException /service/data java.net.ConnectException: Connection refused
WARN [2022-09-26 07:48:02,192] org.eclipse.jetty.server.HttpChannelState: unhandled due to prior sendError

Do I have to to a pull request for the changes above?
Can you help me about the error of connection refused?

Thanks

@steppo83
Copy link
Author

I found why: inside the glutton.yml config file, there was written
elastic:
host: localhost:9200 -> THIS IS WRONG, has to be elasticsearch:9200
index: crossrefdata
maxConnections: 20

@lfoppiano
Copy link
Collaborator

lfoppiano commented Sep 27, 2022

Dear @steppo83, thanks for the interest in biblio-glutton.
Ideally we don't want to modify the local config file with information used by docker.
I've created a PR some time ago to address some of the problems (e.g. configuration) you're facing, please check it out: #73 . It's on the branch feature/docker.

In addition I should have improved the documentation, please check the branch's documentation here: https://github.com/kermitt2/biblio-glutton/tree/feature/docker#running-with-docker

Regarding the information about windows, we can add them in the user guide which is, at the moment, in the README.MD file. At the moment you could branch out from feature/docker, add the information related to windows, and open a PR to that branch instead of master.

@lfoppiano lfoppiano self-assigned this Sep 27, 2022
@steppo83
Copy link
Author

Dear @lfoppiano, thanks a lot for your answer.
I created a PR starting from feature/docker branch.

Thanks!

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