Guest User!

You are not Sophos Staff.

[8.280][BUG][FIXED] PostgreSQL error after upgrade

Going through system logs I got this
2011:11:17-17:03:45 gatekeeper postgres[6474]: [1-2] DETAIL:  Failed system call was shmget(key=5432001, size=74784768, 03600).
2011:11:17-17:03:45 gatekeeper postgres[6474]: [1-3] HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 74784768 bytes), reduce PostgreSQL's shared_buffers parameter (currently 8192) and/or its max_connections parameter (currently 303).
 and then I am getting this constantly
2011:11:17-18:50:01 gatekeeper /usr/sbin/cron[12610]: (root) CMD (   /usr/local/bin/reporter/system-reporter.pl)
2011:11:17-18:50:02 gatekeeper ulogd[8269]: pg1: connect: could not connect to server: No such file or directory
2011:11:17-18:50:06 gatekeeper postgres[12623]: [1-1] FATAL:  could not create shared memory segment: Invalid argument
2011:11:17-18:50:06 gatekeeper postgres[12623]: [1-2] DETAIL:  Failed system call was shmget(key=5432001, size=74784768, 03600).
2011:11:17-18:50:06 gatekeeper postgres[12623]: [1-3] HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 74784768 bytes), reduce PostgreSQL's shared_buffers parameter (currently 8192) and/or its max_connections parameter (currently 303).
2011:11:17-18:50:06 gatekeeper postgres[12623]: [1-4]   If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
2011:11:17-18:50:06 gatekeeper postgres[12623]: [1-5]   The PostgreSQL documentation contains more information about shared memory configuration.
2011:11:17-18:50:07 gatekeeper ulogd[8269]: pg1: connect: could not connect to server: No such file or directory
2011:11:17-18:50:12 gatekeeper ulogd[8269]: pg1: connect: could not connect to server: No such file or directory


I assume my reporting is broke[:(] Will do a reboot tomorrow if nobody else has the same problem. Running esxi4.1 64bit with 2gb allocated to astaro.

Regards
Bill
  • Astaro Beta Report
    --------------------------------
    Version: 8.280
    Type: BUG
    State: TESTED/FIXED
    Reporter: Billybob+
    Contributor: 
    MantisID: 19547
    Target version: 8.281
    Fixed in version: 8.281
    --------------------------------

  • hi ,

    i am also running esxi 4.1 with 2 guest (astaro,ubuntu)

    i am not good at esxi .this time i am staying away from full -flege beta test  (usally test beta on plain box with 2 gb ram and 3 nics )

    i also got such error 2011:11:18-14:22:04 acenn /usr/sbin/cron[5654]: (CRON) STARTUP (V5.0)
    2011:11:18-14:22:04 acenn count_active_ip[5621]: Unlimited License - no counting needed
    2011:11:18-14:22:06 acenn postgres[5779]: [1-1] FATAL:  could not create shared memory segment: Invalid argument
    2011:11:18-14:22:06 acenn postgres[5779]: [1-2] DETAIL:  Failed system call was shmget(key=5432001, size=74784768, 03600).
    2011:11:18-14:22:06 acenn postgres[5779]: [1-3] HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 74784768 bytes), reduce PostgreSQL's shared_buffers parameter (currently 8192) and/or its max_connections parameter (currently 303).
    2011:11:18-14:22:06 acenn postgres[5779]: [1-4]  If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
    2011:11:18-14:22:06 acenn postgres[5779]: [1-5]  The PostgreSQL documentation contains more information about shared memory configuration.
    2011:11:18-14:24:06 acenn syslog-ng[4955]: POLLERR occurred while idle; fd='38'
    2011:11:18-14:24:06 acenn ulogd[5820]: pg1: connect: could not connect to server: No such file or directory
    2011:11:18-14:24:06 acenn ulogd[5820]: pg1: connect: could not connect to server: No such file or directory
    2011:11:18-14:24:06 acenn daemon-watcher[5883]: This is daemon-watcher v1.1.16.1 2009/08/31 11:37:40 flichtenheld  starting...
    2011:11:18-14:24:06 acenn daemon-watcher[5883]: Watching selfmonng.plx...
    2011:11:18-14:24:11 acenn ulogd[5836]: pg1: connect: could not connect to server: No such file or directory


    and thousands of this line 

    2011:11:18-09:18:23 acenn ulogd[12827]: pg1: connect: could not connect to server: No such file or directory
  • Hi everybody,
    the issue is already known and we are fixing it. 

    Thanks for your feedback,
    Masoumeh
  • Hi Masoumeh,
    Thank you for the prompt update.
    Does that mean a 8.281 overnight or tomorrow or do we have to wait until the next scheduled beta release?

    I currently have the pop3 proxy disabled.

    Ian M[:)]
  • Hi Ian,
    today afternoon ASG8.281 could be expected.

    Have fun,
    Masoumeh
  • Here you'll find a quick hack for solving this problem:
    http://www.astaro.org/astaro-beta-versions/asg-8-300-public-beta/40095-8-280-bug-open-no-mails-since-upgrade-8-280-a.html

    Thanks, 
    if [ $SHMMAX -lt 63554432 ] ; then
    #  SHMMAX="63554432"
      SHMMAX="74784768"
     worked
    gatekeeper:/var/log # service postgresql start
    :: Starting PostgreSQL                                                                                                   done
    no schema upgrades found


    Hi Ian,
    today afternoon ASG8.281 could be expected.

    Have fun,
    Masoumeh

    Thank you guys for a prompt fix even for a beta product, you are the best.

    Regards
    Bill
  • Hi folks,
    8.281 applied successfully.
    Thank you for the late night fix.

    Also the CVS fix was applied.

    Ian M[[[[:)]]]][[[[:)]]]][[[[:)]]]][[[[:)]]]]