Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKraQ-0004Tj-6D for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 16:53:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKraP-0002Z7-Bd for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 16:53:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKraO-0002Yt-9c for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 16:53:24 +0000 Received: from dub004-omc1s17.hotmail.com ([157.55.0.216]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKraK-0007k0-Cq for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 16:53:22 +0000 Received: from DUB127-W72 ([157.55.0.239]) by DUB004-OMC1S17.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 9 Feb 2015 08:53:18 -0800 X-TMN: [fz8HlaFX7ADtBlTdQx8vWwENOCrjIzHh] X-Originating-Email: [kierenscott@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_74685ea3-a406-4b85-aa2a-1f823a5da93e_" From: Kieren Scott To: "pgsql-admin@postgresql.org" Subject: Re: pg_createcluster failing on Trusty Date: Mon, 9 Feb 2015 16:53:18 +0000 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 09 Feb 2015 16:53:18.0615 (UTC) FILETIME=[E7A22A70:01D04488] X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org --_74685ea3-a406-4b85-aa2a-1f823a5da93e_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks for your reply. There are no logs that I can see created at this poi= nt. I've tried specifying the data directory and also checked all sorts of = permissions=2C but I still get the initdb error. If I run initdb manually a= s the postgres user=2C it runs ok. But when I run pg_createcluster (run as = root) if says initdb failed. Date: Mon=2C 9 Feb 2015 08:59:34 -0200 Subject: Re: [ADMIN] pg_createcluster failing on Trusty From: luisjunior.sa@gmail.com To: kierenscott@hotmail.com CC: pgsql-admin@postgresql.org Hi=2C Any log in file logs? Try use -d /path/to/data=2C maybe permssion problem..= . 2015-02-09 7:11 GMT-02:00 Kieren Scott : =0A= =0A= =0A= Hi all I've tried reinstalling the packages but am still continuing to hit the "in= itdb failed" even when the packages are installed. If anyone has any ideas = as to what might be causing this (or what to try next) it would be much app= reciated=2C as im keen to get started with pg 9.3 for a migration project. Many thanks. root@xxxxx:/var/lib# apt-get install postgresql-9.3 postgresql-contrib-9.3R= eading package lists... DoneBuilding dependency treeReading state informati= on... DoneThe following extra packages will be installed: postgresql-clien= t-9.3 postgresql-client-common postgresql-commonSuggested packages: oident= d ident-server locales-all postgresql-doc-9.3 libdbd-pg-perlThe following N= EW packages will be installed: postgresql-9.3 postgresql-client-9.3 postgr= esql-client-common postgresql-common postgresql-contrib-9.30 upgraded=2C 5= newly installed=2C 0 to remove and 0 not upgraded.Need to get 0 B/3980 kB = of archives.After this operation=2C 16.9 MB of additional disk space will b= e used.Do you want to continue? [Y/n] yPreconfiguring packages ...Selecting= previously unselected package postgresql-client-common.(Reading database .= .. 32267 files and directories currently installed.)Preparing to unpack ...= /postgresql-client-common_154_all.deb ...Unpacking postgresql-client-common= (154) ...Selecting previously unselected package postgresql-client-9.3.Pre= paring to unpack .../postgresql-client-9.3_9.3.5-0ubuntu0.14.04.1_amd64.deb= ...Unpacking postgresql-client-9.3 (9.3.5-0ubuntu0.14.04.1) ...Selecting p= reviously unselected package postgresql-common.Preparing to unpack .../post= gresql-common_154_all.deb ...Adding 'diversion of /usr/bin/pg_config to /us= r/bin/pg_config.libpq-dev by postgresql-common'Unpacking postgresql-common = (154) ...Selecting previously unselected package postgresql-9.3.Preparing t= o unpack .../postgresql-9.3_9.3.5-0ubuntu0.14.04.1_amd64.deb ...Unpacking p= ostgresql-9.3 (9.3.5-0ubuntu0.14.04.1) ...Selecting previously unselected p= ackage postgresql-contrib-9.3.Preparing to unpack .../postgresql-contrib-9.= 3_9.3.5-0ubuntu0.14.04.1_amd64.deb ...Unpacking postgresql-contrib-9.3 (9.3= .5-0ubuntu0.14.04.1) ...Processing triggers for man-db (2.6.7.1-1) ...Proce= ssing triggers for ureadahead (0.100.0-16) ...Setting up postgresql-client-= common (154) ...Setting up postgresql-client-9.3 (9.3.5-0ubuntu0.14.04.1) .= ..update-alternatives: using /usr/share/postgresql/9.3/man/man1/psql.1.gz t= o provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto modeSetting up = postgresql-common (154) ... Creating config file /etc/logrotate.d/postgresql-common with new versionBui= lding PostgreSQL dictionaries from installed myspell/hunspell packages...Re= moving obsolete dictionary files: * No PostgreSQL clusters exist=3B see "ma= n pg_createcluster"Processing triggers for ureadahead (0.100.0-16) ...Setti= ng up postgresql-9.3 (9.3.5-0ubuntu0.14.04.1) ...Creating new cluster 9.3/m= ain ... config /etc/postgresql/9.3/main data /var/lib/postgresql/9.3/ma= in locale CError: initdb failedError: could not create default cluster. Pl= ease create it manually with pg_createcluster 9.3 main --start or a similar command (see 'man pg_createcluster').update-alternatives: usin= g /usr/share/postgresql/9.3/man/man1/postmaster.1.gz to provide /usr/share/= man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode * No PostgreSQL clu= sters exist=3B see "man pg_createcluster"Setting up postgresql-contrib-9.3 = (9.3.5-0ubuntu0.14.04.1) ... From: kierenscott@hotmail.com To: pgsql-admin@postgresql.org Subject: [ADMIN] pg_createcluster failing on Trusty Date: Fri=2C 6 Feb 2015 14:08:11 +0000 =0A= =0A= =0A= Hi I'm trying to run pg_createcluster on Ubuntu Trusty 14.04 LTS=2C but initdb= is failing. I've installed the below packages and then run the "pg_createc= luster 9.3 main" command as root. $ dpkg --get-selections | grep -v deinstall|grep postgpostgresql = installpostgresql-9.3 = installpostgresql-client installpostgr= esql-client-9.3 installpostgresql-client-common = installpostgresql-common = installpostgresql-contrib installpostgresql-= contrib-9.3 install root@xxxxxx:# pg_createcluster 9.3 mainCreating new cluster 9.3/main ... c= onfig /etc/postgresql/9.3/main data /var/lib/postgresql/9.3/main locale= CError: initdb failed $ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescript= ion: Ubuntu 14.04.1 LTSRelease: 14.04Codename: trusty Has anyone else hit this problem or know what might be causing this? Many thanks. =0A= --=20 Luis Antonio Dias de S=E1 Junior=0A= = --_74685ea3-a406-4b85-aa2a-1f823a5da93e_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Thanks for your reply. There are= no logs that I can see created at this point. I've tried specifying the da= ta directory and also checked all sorts of permissions=2C but I still get t= he initdb error. If I run initdb manually as the postgres user=2C it runs o= k. But when I run pg_createcluster (run as root) if says initdb failed.
=

Date: Mon=2C 9 Feb 2015 08:59:34 -0200
= Subject: Re: [ADMIN] pg_createcluster failing on Trusty
From: luisjunior= .sa@gmail.com
To: kierenscott@hotmail.com
CC: pgsql-admin@postgresql.= org

Hi=2C

Any log in file logs?&= nbsp=3B
Try use -d /path/to/data=2C maybe permssion problem...

20= 15-02-09 7:11 GMT-02:00 Kieren Scott <=3Bkierenscott@hotmail.com&= gt=3B:
=0A= =0A= =0A=
Hi all

I've tried reins= talling the packages but am still continuing to hit the "initdb failed" eve= n when the packages are installed. If anyone has any ideas as to what might= be causing this (or what to try next) it would be much appreciated=2C as i= m keen to get started with pg 9.3 for a migration project.

Many thanks.

root@xxxxx:/var/lib# apt-get= install postgresql-9.3 postgresql-contrib-9.3
Reading package li= sts... Done
Building dependency tree
Reading state info= rmation... Done
The following extra packages will be installed:
 =3B postgresql-client-9.3 postgresql-client-common postgresql= -common
Suggested packages:
 =3B oidentd ident-serv= er locales-all postgresql-doc-9.3 libdbd-pg-perl
The following NE= W packages will be installed:
 =3B postgresql-9.3 postgresql-= client-9.3 postgresql-client-common
 =3B postgresql-common po= stgresql-contrib-9.3
0 upgraded=2C 5 newly installed=2C 0 to remo= ve and 0 not upgraded.
Need to get 0 B/3980 kB of archives.
=
After this operation=2C 16.9 MB of additional disk space will be used.=
Do you want to continue? [Y/n] y
Preconfiguring packag= es ...
Selecting previously unselected package postgresql-client-= common.
(Reading database ... 32267 files and directories current= ly installed.)
Preparing to unpack .../postgresql-client-common_1= 54_all.deb ...
Unpacking postgresql-client-common (154) ...
=
Selecting previously unselected package postgresql-client-9.3.
Preparing to unpack .../postgresql-client-9.3_9.3.5-0ubuntu0.14.04.1_amd= 64.deb ...
Unpacking postgresql-client-9.3 (9.3.5-0ubuntu0.14.04.= 1) ...
Selecting previously unselected package postgresql-common.=
Preparing to unpack .../postgresql-common_154_all.deb ...
<= div>Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev= by postgresql-common'
Unpacking postgresql-common (154) ...
Selecting previously unselected package postgresql-9.3.
Pre= paring to unpack .../postgresql-9.3_9.3.5-0ubuntu0.14.04.1_amd64.deb ...
Unpacking postgresql-9.3 (9.3.5-0ubuntu0.14.04.1) ...
Sel= ecting previously unselected package postgresql-contrib-9.3.
Prep= aring to unpack .../postgresql-contrib-9.3_9.3.5-0ubuntu0.14.04.1_amd64.deb= ...
Unpacking postgresql-contrib-9.3 (9.3.5-0ubuntu0.14.04.1) ..= .
Processing triggers for man-db (2.6.7.1-1) ...
Proces= sing triggers for ureadahead (0.100.0-16) ...
Setting up postgres= ql-client-common (154) ...
Setting up postgresql-client-9.3 (9.3.= 5-0ubuntu0.14.04.1) ...
update-alternatives: using /usr/share/pos= tgresql/9.3/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (ps= ql.1.gz) in auto mode
Setting up postgresql-common (154) ...

Creating config file /etc/logrotate.d/postgresql-commo= n with new version
Building PostgreSQL dictionaries from installe= d myspell/hunspell packages...
Removing obsolete dictionary files= :
 =3B* No PostgreSQL clusters exist=3B see "man pg_createclu= ster"
Processing triggers for ureadahead (0.100.0-16) ...
Setting up postgresql-9.3 (9.3.5-0ubuntu0.14.04.1) ...
C= reating new cluster 9.3/main ...
 =3B config /etc/postgresql/= 9.3/main
 =3B data  =3B /var/lib/postgresql/9.3/main
 =3B locale C
Error: initdb failed
<= div>Error: could not create default cluster. Please create it manually w= ith

 =3B pg_createcluster 9.3 main --start=

or a similar command (see 'man pg_createcluster')= .
update-alternatives: using /usr/share/postgresql/9.3/man/man1/p= ostmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1= .gz) in auto mode
 =3B* No PostgreSQL clusters exist=3B see "= man pg_createcluster"
Setting up postgresql-contrib-9.3 (9.3.5-0u= buntu0.14.04.1) ...


=

From: kierenscott@hotmail.com
To: pgsql-admin@p= ostgresql.org
Subject: [ADMIN] pg_createcluster failing on TrustyDate: Fri=2C 6 Feb 2015 14:08:11 +0000

=0A= =0A= =0A=
Hi

I'm trying to run pg_createcluster o= n Ubuntu Trusty 14.04 LTS=2C but initdb is failing. I've installed the belo= w packages and then run the "pg_createcluster 9.3 main" command as root.

$ dpkg --get-selections | grep -v deinstall|gre= p postg
postgresql  =3B  =3B  =3B  =3B  =3B &= nbsp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &nbs= p=3B  =3B  =3B  =3B  =3B  =3Binstall
postgres= ql-9.3  =3B  =3B  =3B  =3B  =3B  =3B  =3B  = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3Binstall
postgresql-client  =3B  =3B  =3B &nb= sp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  = =3B  =3B  =3B  =3B install
postgresql-client-9.3 &nbs= p=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  = =3B  =3B  =3B  =3B  =3B install
postgresql-client= -common  =3B  =3B  =3B  =3B  =3B  =3B  =3B &nbs= p=3B  =3B  =3B  =3B  =3Binstall
postgresql-common=  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &n= bsp=3B  =3B  =3B  =3B  =3B  =3B  =3B install
<= div>postgresql-contrib  =3B  =3B  =3B  =3B  =3B  = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3Binstall
postgresql-contrib-9.3  =3B  =3B  = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B  =3Binstall

root@xxx= xxx:# pg_createcluster 9.3 main
Creating new cluster 9.3/main ...=
 =3B config /etc/postgresql/9.3/main
 =3B data=  =3B /var/lib/postgresql/9.3/main
 =3B locale C
Error: initdb failed

$ lsb_release = -a
No LSB modules are available.
Distributor ID: Ubuntu=
Description:  =3B  =3BUbuntu 14.04.1 LTS
Relea= se:  =3B  =3B  =3B  =3B14.04
Codename:  =3B &= nbsp=3B  =3B trusty


Has a= nyone else hit this problem or know what might be causing this?
<= br>
Many thanks.

=0A=



--
Luis Antonio Dias de S=E1 Junior
=0A=
= --_74685ea3-a406-4b85-aa2a-1f823a5da93e_--