Error: shmget failed - Mailing list pgsql-hackers

From Roberto Joao Lopes Garcia
Subject Error: shmget failed
Date
Msg-id 3.0.5.32.19991026122515.007cf100@pop.hipernet.com.br
Whole thread Raw
Responses Re: [HACKERS] Error: shmget failed  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi

Sorry if it´s the wrong place to post this. Please let me know where is the
correct place.

I'm upgrading from PostgreSQL 6.4 to 6.5.2. I compiled 6.5.2 and installed
it in an machine (that was not running 6.4) for tests but Postmaster want
not run.

Os: Sun sparc solaris 2.5
compiled with GCC 2.8.1, FLEX 2.5.4

Compilation and install runs OK! 
Initidb could not tell what username to use (I was su postgres) so I tried
initdb -u postgres and works, see bellow:

$ LD_LIBRARY_PATH=/usr/local/pgsql/lib
$ export  LD_LIBRARY_PATH
$
initdb

Can't tell what username to use.  You don't have the
USER
environment variable set to your username and didn't specify the

--username option
$ initdb -u postgres

We are initializing the database
system with username postgres (uid=1156).
This user will own all the files
and must also own the server process.

Creating Postgres database system
directory /usr/local/pgsql/data

Creating Postgres database system
directory /usr/local/pgsql/data/base

Creating template database in
/usr/local/pgsql/data/base/template1

Creating global classes in
/usr/local/pgsql/data/base

Adding template1 database to
pg_database...

Vacuuming template1
Creating public pg_user view
Creating
view pg_rules
Creating view pg_views
Creating view pg_tables
Creating view
pg_indexes
Loading pg_description
$

I tried to start postmaster and it report an error, see bellow:

$ nohup  postmaster -i > pserver.log 2>&1 &
[1]    17192
$ ps -ef | grep
post
postgres  6006   529  0 10:22:05 pts/1    0:00 ksh
postgres 17225
6006  1 11:01:41 pts/1    0:00 grep post
[1] +  Done
nohup  postmaster -i > pserver.log 2>&1 &
$ cat
pserver.log
IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
size=1073152, permission=600
FATAL 1:  ShmemCreate: cannot create region
$  
I have tried 3 times this installation and the result is the same. I
installed 6.5.2 in my house linux machine and work well.

Thank you for your attention

Roberto



pgsql-hackers by date:

Previous
From: saad
Date:
Subject: what the hell telnet is
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Function-manager redesign: second draft (long)