Обсуждение: IpcMemoryCreate: shmget failed (Permission denied)

Поиск
Список
Период
Сортировка

IpcMemoryCreate: shmget failed (Permission denied)

От
"Theuns"
Дата:
When trying to start the postmaster after installation, I get this
error :

$ postmaster -D /usr/local/pgsql/data
IpcMemoryCreate: shmget failed (Permission denied) key=5432001,
size=1104896, permission=600
This type of error is usually caused by an improper
shared memory or System V IPC semaphore configuration.
For more information, see the FAQ and platform-specific
FAQ's in the source directory pgsql/doc or on our
web site at http://www.postgresql.org.
FATAL 1:  ShmemCreate: cannot create region

Checking the share memory status:

$ ipcs -l

------ Shared Memory Limits --------
max number of segments = 1024
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 134217728
min seg size (bytes) = 1

Cgecking the shmmax configuration value :

$ vi /proc/sys/kernel/shmmax

33554432

Check hard disk space :

$ df -vk
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda6              4719972   4407656     72548  99% /
/dev/hda1                69973      2476     63884   4% /boot

I can not access the postrgresql mail list archives or subscribe to a
list due to the hard disk failures they had encountered recently.

I'm working on a Redhat Linux 7.0 (Guinness)
Kernel 2.2.16-22 on an i686

with the latest PostgreSQL version 7.3.3

The machine has 128mb ram with a 4gb hard drive

PS. I am not a Linux expert and have to get this working on my own so
any help would be appreciated.

Thanks
Theuns
_______________________________________________________________________
LOOK GOOD, FEEL GOOD - WWW.HEALTHIEST.CO.ZA

Cool Connection, Cool Price, Internet Access for R59 monthly @ WebMail
http://www.webmail.co.za/dialup/

Re: IpcMemoryCreate: shmget failed (Permission denied)

От
Jeff Eckermann
Дата:
Try running "ipcclean".  ISTR that working for me in a
similar situation.

--- Theuns <ftvo@webmail.co.za> wrote:
> When trying to start the postmaster after
> installation, I get this
> error :
>
> $ postmaster -D /usr/local/pgsql/data
> IpcMemoryCreate: shmget failed (Permission denied)
> key=5432001,
> size=1104896, permission=600
> This type of error is usually caused by an improper
> shared memory or System V IPC semaphore
> configuration.
> For more information, see the FAQ and
> platform-specific
> FAQ's in the source directory pgsql/doc or on our
> web site at http://www.postgresql.org.
> FATAL 1:  ShmemCreate: cannot create region
>
> Checking the share memory status:
>
> $ ipcs -l
>
> ------ Shared Memory Limits --------
> max number of segments = 1024
> max seg size (kbytes) = 32768
> max total shared memory (kbytes) = 134217728
> min seg size (bytes) = 1
>
> Cgecking the shmmax configuration value :
>
> $ vi /proc/sys/kernel/shmmax
>
> 33554432
>
> Check hard disk space :
>
> $ df -vk
> Filesystem           1k-blocks      Used Available
> Use% Mounted on
> /dev/hda6              4719972   4407656     72548
> 99% /
> /dev/hda1                69973      2476     63884
> 4% /boot
>
> I can not access the postrgresql mail list archives
> or subscribe to a
> list due to the hard disk failures they had
> encountered recently.
>
> I'm working on a Redhat Linux 7.0 (Guinness)
> Kernel 2.2.16-22 on an i686
>
> with the latest PostgreSQL version 7.3.3
>
> The machine has 128mb ram with a 4gb hard drive
>
> PS. I am not a Linux expert and have to get this
> working on my own so
> any help would be appreciated.
>
> Thanks
> Theuns
>
_______________________________________________________________________
> LOOK GOOD, FEEL GOOD - WWW.HEALTHIEST.CO.ZA
>
> Cool Connection, Cool Price, Internet Access for R59
> monthly @ WebMail
> http://www.webmail.co.za/dialup/
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Re: IpcMemoryCreate: shmget failed (Permission denied)

От
Jeff Eckermann
Дата:
--- Theuns <ftvo@webmail.co.za> wrote:
> Hi Jeff, thanks for the reply.
>
> I tried it and it said :
>
> ipcclean: You still have a postmaster running.
>
> Although I can not see any session files in /tmp
> directory usually
> associated with an actvie postmaster...

I don't know what you are expecting to find in /tmp.
My example RH PostgreSQL install has nothing there
either.  Were you thinking of the postmaster.pid file?
 On my system, that is in the $PGDATA directory, i.e.
/home/pgsql/data.

Assuming that "ps" shows no active postmaster process,
just delete the postmaster.pid file and try "ipcclean"
again.  Then try to start the postmaster again.

You may want to try using "pg_ctl" to start and stop
the postmaster, that is what it is designed for.  "man
pg_ctl" will tell you what you need to know.

>
> On Fri, 6 Jun 2003 16:34:31 -0700 (PDT) Jeff
> Eckermann
> (jeff_eckermann@yahoo.com) wrote:
>
> >Try running "ipcclean".  ISTR that working for me
> in a
> >similar situation.
> >
> >--- Theuns <ftvo@webmail.co.za> wrote:
> >> When trying to start the postmaster after
> >> installation, I get this
> >> error :
> >>
> >> $ postmaster -D /usr/local/pgsql/data
> >> IpcMemoryCreate: shmget failed (Permission
> denied)
> >> key=5432001,
> >> size=1104896, permission=600
> >> This type of error is usually caused by an
> improper
> >> shared memory or System V IPC semaphore
> >> configuration.
> >> For more information, see the FAQ and
> >> platform-specific
> >> FAQ's in the source directory pgsql/doc or on our
> >> web site at http://www.postgresql.org.
> >> FATAL 1:  ShmemCreate: cannot create region
> >>
> >> Checking the share memory status:
> >>
> >> $ ipcs -l
> >>
> >> ------ Shared Memory Limits --------
> >> max number of segments = 1024
> >> max seg size (kbytes) = 32768
> >> max total shared memory (kbytes) = 134217728
> >> min seg size (bytes) = 1
> >>
> >> Cgecking the shmmax configuration value :
> >>
> >> $ vi /proc/sys/kernel/shmmax
> >>
> >> 33554432
> >>
> >> Check hard disk space :
> >>
> >> $ df -vk
> >> Filesystem           1k-blocks      Used
> Available
> >> Use% Mounted on
> >> /dev/hda6              4719972   4407656
> 72548
> >> 99% /
> >> /dev/hda1                69973      2476
> 63884
> >> 4% /boot
> >>
> >> I can not access the postrgresql mail list
> archives
> >> or subscribe to a
> >> list due to the hard disk failures they had
> >> encountered recently.
> >>
> >> I'm working on a Redhat Linux 7.0 (Guinness)
> >> Kernel 2.2.16-22 on an i686
> >>
> >> with the latest PostgreSQL version 7.3.3
> >>
> >> The machine has 128mb ram with a 4gb hard drive
> >>
> >> PS. I am not a Linux expert and have to get this
> >> working on my own so
> >> any help would be appreciated.
> >>
> >> Thanks
> >> Theuns
> >>
>
>_____________________________________________________________________
> __
> >> LOOK GOOD, FEEL GOOD - WWW.HEALTHIEST.CO.ZA
> >>
> >> Cool Connection, Cool Price, Internet Access for
> R59
> >> monthly @ WebMail
> >> http://www.webmail.co.za/dialup/
> >>
> >> ---------------------------(end of
> >> broadcast)---------------------------
> >> TIP 4: Don't 'kill -9' the postmaster
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> >http://calendar.yahoo.com
>
> Theuns
>
_______________________________________________________________________
> LOOK GOOD, FEEL GOOD - WWW.HEALTHIEST.CO.ZA
>
> Cool Connection, Cool Price, Internet Access for R59
> monthly @ WebMail
> http://www.webmail.co.za/dialup/


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com