okfn / docker-ckan

Docker images and Docker Compose setup for CKAN [Not Maintained]
GNU Affero General Public License v3.0
81 stars 88 forks source link

"docker-compose up" fails on fresh build #71

Closed bonnland closed 3 years ago

bonnland commented 3 years ago

I am trying to switch from CKAN source installation to Docker installation, but using the default .env file I am unable to get past this error on startup:

db            | initdb: error: directory "/var/lib/postgresql/data" exists but is not empty
db            | If you want to create a new database system, either remove or empty
db            | the directory "/var/lib/postgresql/data" or run initdb
db            | with an argument other than "/var/lib/postgresql/data".

I am relatively new to Docker, and I am having difficulty seeing how to get past this issue. I did make sure to remove all images and volumes first, and I tried building with the command docker-compose build --no-cache. I used Docker version 3.3.2 that had just been restored to factory settings.

Is it related to the datapusher or datastore plugins trying to create a second database? Because ultimately I'm interested in getting a running instance of CKAN with spatial harvesting working. I won't need the datapusher or datastore plugins installed.

bonnland commented 3 years ago

This is probably related:

https://github.com/ckan/ckan/issues/6027