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

initdb fails to run #17

Open
prafulfillment opened this issue Oct 22, 2013 · 0 comments
Open

initdb fails to run #17

prafulfillment opened this issue Oct 22, 2013 · 0 comments

Comments

@prafulfillment
Copy link

I keep getting the following error when running postgres with make supervisor

uname -a

Linux hostname 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.04
Release:        13.04
Codename:       raring

/tmp/postgres.log

++ pwd
+ exec sudo docker run -v /home/user/discourse-docker/data/postgres:/var/lib/postgresql srid/postgresql:9.1
2013/10/22 15:24:34 Error: Error starting container 44f138420e8d: iptables failed: iptables -t nat -A DOCKER -p tcp --dport 49153 ! -i docker0 -j DNAT --to-destination 172.17.0.3:5432
++ pwd
+ exec sudo docker run -v /home/user/discourse-docker/data/postgres:/var/lib/postgresql srid/postgresql:9.1
Creating Postgres data at /var/lib/postgresql/9.1/main
Initializing Postgres Database at /var/lib/postgresql/9.1/main
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".

fixing permissions on existing directory /var/lib/postgresql/9.1/main ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 24MB
creating configuration files ... ok
creating template1 database in /var/lib/postgresql/9.1/main/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... Illegal instruction
child process exited with exit code 132
initdb: removing contents of data directory "/var/lib/postgresql/9.1/main"
2013-10-22 19:24:38 UTC FATAL:  "/var/lib/postgresql/9.1/main" is not a valid data directory
2013-10-22 19:24:38 UTC DETAIL:  File "/var/lib/postgresql/9.1/main/PG_VERSION" is missing.
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

1 participant