-
Notifications
You must be signed in to change notification settings - Fork 477
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
ERROR: could not open extension control file "/usr/share/postgresql/9.4/extension/postgis.control": No such file or directory #5
Comments
How did you run the |
I am using fig (http://fig.sh) for running a ruby on rails app which uses postgis. When I am running |
I just tested this successfully:
|
Can you post your |
my fig.yml is db:
image: mdillon/postgis:9.4
ports:
- "5432"
environment:
- POSTGRES_PASSWORD=yoloswag
app:
build: .
links:
- db
environment:
- RAILS_ENV=production
- DEVISE_SECRET_KEY=swaghettiYolonaise
- SECRET_KEY_BASE=swaghettiYolonaise
- OAUTH_FACEBOOK_KEY=swaghettiYolonaise
- OAUTH_FACEBOOK_SECRET=swaghettiYolonaise
- OAUTH_TWITTER_KEY=swaghettiYolonaise
- OAUTH_TWITTER_SECRET=swaghettiYolonaise
- OAUTH_GOOGLE_KEY=swaghettiYolonaise
- OAUTH_GOOGLE_SECRET=swaghettiYolonaise
- HOSTNAME=localhost:3000
- SMTP_HOST=smtp.mandrillapp.com
- SMTP_PORT=25
- SMTP_USER=SOMEUSER
- SMTP_PASSWORD=SOMEPASS
- EMAIL_FROM=some-email@provider.com
- SENTRY_DSN=http://localhost the dockerfile for the |
I can't see anything there that would affect whether or not the extension control file would be found or readable by the Postgres process. Any chance you could post the exact error you get back when you run |
the error rails produces:
and
|
And you said you were able to confirm that |
BTW, you probably don't want that |
It seems fig doesn't recognize changes in the fig yml. Earlier I had Sorry I've bothered you :( This is a flaw in fig. |
Glad you figured it out. Since we took the time to debug it, it may be worth seeing if the issue has been reported at https://github.com/docker/fig |
Hi,
I tried to run
CREATE EXTENSION postgis;
on the imagemdillon/postgis:9.4
from the docker hub. It complained that it couldn't find the file/usr/share/postgresql/9.4/extension/postgis.control
running bash inside the container reveals that in fact this file exists!
I already tried the following things:
/usr/share/postgresql/9.4/extension/
to thepostgres
user (RUN chown -R postgres:postgres /usr/share/postgresql/9.4/extension/
)Could you please look into this?
Cheers
The text was updated successfully, but these errors were encountered: