docker-ckan icon indicating copy to clipboard operation
docker-ckan copied to clipboard

[BUG] Unable to connect to Solr

Open tpgmartin opened this issue 2 years ago • 2 comments

Describe the bug Have tried to clone, build, and run the project following the instructions in the readme, however ckan container exits shortly after running. I'm trying the run this on an Azure VM running Linux (ubuntu 18.04).

Docker images affected CKAN 2.9 (I've only tried this version)

Expected behaviour Containers to run successfully on default ports

Logs

ckan        | [prerun] Start check_db_connection...
ckan        | could not connect to server: Connection refused
ckan        | 	Is the server running on host "db" (172.20.0.3) and accepting
ckan        | 	TCP/IP connections on port 5432?
ckan        |
ckan        | [prerun] Unable to connect to the database...try again in a while.
ckan        | [prerun] Start check_db_connection...
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Unable to connect to solr...try again in a while.
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Unable to connect to solr...try again in a while.
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Unable to connect to solr...try again in a while.
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Unable to connect to solr...try again in a while.
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Unable to connect to solr...try again in a while.
ckan        | [prerun] Start check_solr_connection...
ckan        | [prerun] Giving up after 5 tries...
ckan        | [CKAN prerun] FAILED. Exiting...

tpgmartin avatar Aug 30 '22 20:08 tpgmartin

I'm not part of the support team here, but just looking at the logs it doesn't look like there is a database running. Is there a database running anywhere?

lknite avatar Sep 20 '22 19:09 lknite

@tpgmartin how did you run the image? Did you use the docker-compose setup or just the image? Because it looks like you just ran the CKAN image.

@lknite although we are responsible for maintaining our repos, feel free to help anyone that asks for help or open up PRs with fixes that you have. This is an open source project after all and we would love to expand the CKAN community.

blazhovsky avatar Sep 27 '22 11:09 blazhovsky

Stale issue

Filip3mac avatar Feb 22 '23 11:02 Filip3mac