pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8160: 9.3 Beta 1 Initdb doesn't work
6+ messages / 4 participants
[nested] [flat]
* BUG #8160: 9.3 Beta 1 Initdb doesn't work
@ 2013-05-14 13:48 bnicholson@hp.com
2013-05-14 15:49 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Heikki Linnakangas <hlinnakangas@vmware.com>
2013-05-14 15:51 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Devrim GÜNDÜZ <devrim@gunduz.org>
2013-05-15 10:02 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Devrim GÜNDÜZ <devrim@gunduz.org>
0 siblings, 3 replies; 6+ messages in thread
From: bnicholson@hp.com @ 2013-05-14 13:48 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 8160
Logged by: Brad Nicholson
Email address: bnicholson@hp.com
PostgreSQL version: Unsupported/Unknown
Operating system: CentOS release 6.2 (Final)
Description:
Hi,
I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and when I
try to do an initdb it fails. /var/lib/pgsql/9.3/data has nothing in it when
I attempt the initdb :
#service postgresql-9.3 initdb
Initializing database:[FAILED]
# cat /var/lib/pgsql/9.3/pgstartup.log
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".
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/pgsql/9.3/data ... ok
creating directory /var/lib/pgsql/9.3/data/pg_xlog ... ok
initdb: could not create symbolic link "/var/lib/pgsql/9.3/data/pg_xlog":
File exists
initdb: removing contents of data directory "/var/lib/pgsql/9.3/data"
initdb: removing transaction log directory
"/var/lib/pgsql/9.3/data/pg_xlog"
could not open directory "/var/lib/pgsql/9.3/data/pg_xlog": No such file or
directory
initdb: failed to remove transaction log directory
Brad.
btw - on the bug reporting form, the popup version does not have 9.3 Beta as
an option for version
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
@ 2013-05-14 15:49 ` Heikki Linnakangas <hlinnakangas@vmware.com>
2013-05-14 16:00 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Devrim GÜNDÜZ <devrim@gunduz.org>
2 siblings, 1 reply; 6+ messages in thread
From: Heikki Linnakangas @ 2013-05-14 15:49 UTC (permalink / raw)
To: Devrim Gunduz <devrim.gunduz@enterprisedb.com>; +Cc: bnicholson@hp.com; pgsql-bugs
On 14.05.2013 16:48, bnicholson@hp.com wrote:
> I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and when I
> try to do an initdb it fails. /var/lib/pgsql/9.3/data has nothing in it when
> I attempt the initdb :
>
> #service postgresql-9.3 initdb
> Initializing database:[FAILED]
>
> # cat /var/lib/pgsql/9.3/pgstartup.log
> 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".
> Data page checksums are disabled.
>
> fixing permissions on existing directory /var/lib/pgsql/9.3/data ... ok
> creating directory /var/lib/pgsql/9.3/data/pg_xlog ... ok
> initdb: could not create symbolic link "/var/lib/pgsql/9.3/data/pg_xlog":
> File exists
There seems to be a bug in the init script. If you don't give a location
for pg_xlog on the command line, it uses $PGDATA/pg_xlog, which confuses
initdb:
> # If the xlog directory is specified just after the locale parameter, use it:
> if [ -z $INITDBXLOGDIR ]
> then
> INITDBXLOGSTRING=`echo $PGDATA/pg_xlog`
> else
> INITDBXLOGSTRING=`echo $INITDBXLOGDIR`
> fi
> ...
> # Initialize the database
> $SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --xlogdir=$INITDBXLOGSTRING --auth='ident' $LOCALESTRING" >> "$PGLOG" 2>&1 < /dev/null
Seems that if INITDBXLOGDIR is not given, it should just leave out
--xlogdir. Devrim?
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
2013-05-14 15:49 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Heikki Linnakangas <hlinnakangas@vmware.com>
@ 2013-05-14 16:00 ` Devrim GÜNDÜZ <devrim@gunduz.org>
0 siblings, 0 replies; 6+ messages in thread
From: Devrim GÜNDÜZ @ 2013-05-14 16:00 UTC (permalink / raw)
To: Heikki Linnakangas <hlinnakangas@vmware.com>; +Cc: bnicholson@hp.com; pgsql-bugs
Hi,
On Tue, 2013-05-14 at 18:49 +0300, Heikki Linnakangas wrote:
> There seems to be a bug in the init script. If you don't give a
> location
> for pg_xlog on the command line, it uses $PGDATA/pg_xlog, which
> confuses
> initdb:
>
> > # If the xlog directory is specified just after the locale
> parameter, use it:
> > if [ -z $INITDBXLOGDIR ]
> > then
> > INITDBXLOGSTRING=`echo $PGDATA/pg_xlog`
> > else
> > INITDBXLOGSTRING=`echo $INITDBXLOGDIR`
> > fi
> > ...
> > # Initialize the database
> > $SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --xlogdir=
> $INITDBXLOGSTRING --auth='ident' $LOCALESTRING" >> "$PGLOG" 2>&1
> < /dev/null
>
> Seems that if INITDBXLOGDIR is not given, it should just leave out
> --xlogdir. Devrim?
:( Good catch. Will fix.
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Attachments:
signature.asc (application/pgp-signature, 197B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
@ 2013-05-14 15:51 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2013-05-14 15:57 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Nicholson, Brad (Toronto, ON, CA) <bnicholson@hp.com>
2 siblings, 1 reply; 6+ messages in thread
From: Devrim GÜNDÜZ @ 2013-05-14 15:51 UTC (permalink / raw)
To: bnicholson@hp.com; +Cc: pgsql-bugs
Hi Brad,
On Tue, 2013-05-14 at 13:48 +0000, bnicholson@hp.com wrote:
>
> I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and
> when I try to do an initdb it fails. /var/lib/pgsql/9.3/data has
> nothing in it when I attempt the initdb :
We have released updated packages last night. Which version are you
using? beta1-3PGDG are the latest ones, and *should be* error free.
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Attachments:
signature.asc (application/pgp-signature, 197B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
2013-05-14 15:51 ` Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work Devrim GÜNDÜZ <devrim@gunduz.org>
@ 2013-05-14 15:57 ` Nicholson, Brad (Toronto, ON, CA) <bnicholson@hp.com>
0 siblings, 0 replies; 6+ messages in thread
From: Nicholson, Brad (Toronto, ON, CA) @ 2013-05-14 15:57 UTC (permalink / raw)
To: Devrim GÜNDÜZ <devrim@gunduz.org>; +Cc: pgsql-bugs
> -----Original Message-----
> From: Devrim GÜNDÜZ [mailto:devrim@gunduz.org]
> Sent: Tuesday, May 14, 2013 11:51 AM
> To: Nicholson, Brad (Toronto, ON, CA)
> Cc: pgsql-bugs@postgresql.org
> Subject: Re: [BUGS] BUG #8160: 9.3 Beta 1 Initdb doesn't work
>
>
> Hi Brad,
>
> On Tue, 2013-05-14 at 13:48 +0000, bnicholson@hp.com wrote:
> >
> > I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and
> > when I try to do an initdb it fails. /var/lib/pgsql/9.3/data has
> > nothing in it when I attempt the initdb :
>
> We have released updated packages last night. Which version are you using?
> beta1-3PGDG are the latest ones, and *should be* error free.
I grabbed them this morning - I grabbed:
http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-1.noarch.rpm
Yum info is showing
Name : postgresql93-server
Arch : x86_64
Version : 9.3beta1
Release : 3PGDG.rhel6
Size : 16 M
Repo : installed
From repo : pgdg93
Brad.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
@ 2013-05-15 10:02 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2 siblings, 0 replies; 6+ messages in thread
From: Devrim GÜNDÜZ @ 2013-05-15 10:02 UTC (permalink / raw)
To: bnicholson@hp.com; +Cc: pgsql-bugs; Heikki Linnakangas <hlinnakangas@vmware.com>
Hi again,
On Tue, 2013-05-14 at 13:48 +0000, bnicholson@hp.com wrote:
> I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and when I
> try to do an initdb it fails. /var/lib/pgsql/9.3/data has nothing in it when
> I attempt the initdb :
>
> #service postgresql-9.3 initdb
> Initializing database:[FAILED]
<snip>
Fixed this issue with 9.3beta1-4 RPMS. Thanks for the report (and thanks
Heikki for finding the real issue)
Regards,
--
Devrim GÜNDÜZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
Attachments:
signature.asc (application/pgp-signature, 197B) download
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2013-05-15 10:02 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-05-14 13:48 BUG #8160: 9.3 Beta 1 Initdb doesn't work bnicholson@hp.com
2013-05-14 15:49 ` Heikki Linnakangas <hlinnakangas@vmware.com>
2013-05-14 16:00 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2013-05-14 15:51 ` Devrim GÜNDÜZ <devrim@gunduz.org>
2013-05-14 15:57 ` Nicholson, Brad (Toronto, ON, CA) <bnicholson@hp.com>
2013-05-15 10:02 ` Devrim GÜNDÜZ <devrim@gunduz.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox