Thread

  1. Error: shmget failed

    Roberto João Lopes Garcia <roberto@mha.com.br> — 1999-10-26T14:25:15Z

    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