Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKkNi-0005G8-GF for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 09:11:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKkNh-0000Vu-Vf for pgsql-admin@arkaria.postgresql.org; Mon, 09 Feb 2015 09:11:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKkNh-0000Vf-1i for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 09:11:49 +0000 Received: from dub004-omc1s27.hotmail.com ([157.55.0.226]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKkNc-0006qI-Hm for pgsql-admin@postgresql.org; Mon, 09 Feb 2015 09:11:48 +0000 Received: from DUB127-W93 ([157.55.0.238]) by DUB004-OMC1S27.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Mon, 9 Feb 2015 01:11:43 -0800 X-TMN: [mBFBzmiewNxbolcVzRwSiEm6Jlnqt1dG] X-Originating-Email: [kierenscott@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_7bcf3040-b6fe-4f02-ac43-dc7452c383af_" From: Kieren Scott To: "pgsql-admin@postgresql.org" Subject: Re: pg_createcluster failing on Trusty Date: Mon, 9 Feb 2015 09:11:42 +0000 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 09 Feb 2015 09:11:43.0163 (UTC) FILETIME=[6BDB90B0:01D04448] 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 --_7bcf3040-b6fe-4f02-ac43-dc7452c383af_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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. = --_7bcf3040-b6fe-4f02-ac43-dc7452c383af_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all

=
I've tried reinstalling the packages but am still continuing to hit th= e "initdb failed" even when the packages are installed. If anyone has any i= deas as to what might be causing this (or what to try next) it would be muc= h appreciated=2C as im keen to get started with pg 9.3 for a migration proj= ect.

Many thanks.

root@xx= xxx:/var/lib# apt-get install postgresql-9.3 postgresql-contrib-9.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages= will be installed:
 =3B postgresql-client-9.3 postgresql-cli= ent-common postgresql-common
Suggested packages:
 = =3B oidentd ident-server locales-all postgresql-doc-9.3 libdbd-pg-perl
The following NEW packages will be installed:
 =3B post= gresql-9.3 postgresql-client-9.3 postgresql-client-common
 = =3B postgresql-common postgresql-contrib-9.3
0 upgraded=2C 5 newl= y installed=2C 0 to remove and 0 not upgraded.
Need to get 0 B/39= 80 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 packages ...
Selecting previously unselected pa= ckage postgresql-client-common.
(Reading database ... 32267 files= and directories currently installed.)
Preparing to unpack .../po= stgresql-client-common_154_all.deb ...
Unpacking postgresql-clien= t-common (154) ...
Selecting previously unselected package postgr= esql-client-9.3.
Preparing 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 previously unselected pa= ckage postgresql-common.
Preparing to unpack .../postgresql-commo= n_154_all.deb ...
Adding 'diversion of /usr/bin/pg_config to /usr= /bin/pg_config.libpq-dev by postgresql-common'
Unpacking postgres= ql-common (154) ...
Selecting previously unselected package postg= resql-9.3.
Preparing 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) ...
Selecting previously unselected package postgresql-con= trib-9.3.
Preparing to unpack .../postgresql-contrib-9.3_9.3.5-0u= buntu0.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) ...
Processing triggers for ureadahead (0.100.0-16) ...
=
Setting up postgresql-client-common (154) ...
Setting up pos= tgresql-client-9.3 (9.3.5-0ubuntu0.14.04.1) ...
update-alternativ= es: using /usr/share/postgresql/9.3/man/man1/psql.1.gz to provide /usr/shar= e/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up postgres= ql-common (154) ...

Creating config file /etc/logr= otate.d/postgresql-common with new version
Building PostgreSQL di= ctionaries from installed myspell/hunspell packages...
Removing o= bsolete dictionary files:
 =3B* No PostgreSQL clusters exist= =3B see "man pg_createcluster"
Processing triggers for ureadahead= (0.100.0-16) ...
Setting up postgresql-9.3 (9.3.5-0ubuntu0.14.04= .1) ...
Creating new cluster 9.3/main ...
 =3B conf= ig /etc/postgresql/9.3/main
 =3B data  =3B /var/lib/postg= resql/9.3/main
 =3B locale C
Error: initdb faile= d
Error: could not create default cluster. Please create i= t manually with

 =3B pg_createcluster 9.3 = main --start

or a similar command (see 'man pg_cre= atecluster').
update-alternatives: using /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
 =3B* No PostgreSQL clusters ex= ist=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.orgSubject: [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 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.

= = --_7bcf3040-b6fe-4f02-ac43-dc7452c383af_--