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

Documentation: add docker troubleshooting when unable to connect to solr #8951

Conversation

scottbarnes
Copy link
Collaborator

Recently a few people have experienced an error similar to:

/openlibrary/openlibrary/templates/home/index.html: error in processing
 template: ConnectionError: HTTPConnectionPool(host='solr', port=8983):
Max retries exceeded with url: /solr/openlibrary/select (Caused by
NameResolutionError("<urllib3.connection.HTTPConnection object at
0x77a95c4e7f90>: Failed to resolve 'solr' ([Errno -2] Name or service
not known)")) (falling back to default template)

This commit details one way to address this, as well as providing some context.

Stakeholders

@RayBB
@benbdeitch

Recently a few people have experienced an error similar to:
```
/openlibrary/openlibrary/templates/home/index.html: error in processing
 template: ConnectionError: HTTPConnectionPool(host='solr', port=8983):
Max retries exceeded with url: /solr/openlibrary/select (Caused by
NameResolutionError("<urllib3.connection.HTTPConnection object at
0x77a95c4e7f90>: Failed to resolve 'solr' ([Errno -2] Name or service
not known)")) (falling back to default template)
```

This commit details one way to address this, as well as providing some
context.
Copy link
Collaborator

@RayBB RayBB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting this. Hopefully not too many people hit this error.

docker/README.md Outdated Show resolved Hide resolved
@scottbarnes scottbarnes force-pushed the feature/add-docker-documentation-re-cant-find-solr branch from 1139cb8 to fd909a8 Compare March 25, 2024 03:57
docker/README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Thanks Scott!

@cdrini cdrini merged commit 5a68153 into internetarchive:master Apr 1, 2024
3 checks passed
@scottbarnes scottbarnes deleted the feature/add-docker-documentation-re-cant-find-solr branch April 1, 2024 21:30
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

Successfully merging this pull request may close these issues.

None yet

3 participants