This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[ASG320 7.302] postgres PANIC

Hi all,

I have a big problem with my ASG320 and it's postgresql server. My logs contain the following information :

System :
2008:09:30-09:56:01 (none) postgres[5223]: [1-1] LOG: could not create IPv6 socket: Address family not supported by protocol 
2008:09:30-09:56:01 (none) postgres[5228]: [2-1] LOG: database system was interrupted while in recovery at 2008-09-30 09:51:46 CEST 
2008:09:30-09:56:01 (none) postgres[5228]: [2-2] HINT: This probably means that some data is corrupted and you will have to use the last backup for recovery. 
2008:09:30-09:56:01 (none) postgres[5228]: [3-1] LOG: database system was not properly shut down; automatic recovery in progress 
2008:09:30-09:56:01 (none) postgres[5228]: [4-1] PANIC: record with zero length at 0/C3E56990 
2008:09:30-09:56:01 (none) postgres[5223]: [2-1] LOG: startup process (PID 5228) was terminated by signal 6: Aborted 
2008:09:30-09:56:01 (none) postgres[5223]: [3-1] LOG: aborting startup due to startup process failure 
2008:09:30-09:56:03 (none) ulogd[2640]: pg1: unable to connect: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? 

Selfmonitoring :
2008:09:30-09:51:46 (none) selfmonng[3163]: W triggerAction: 'cmd' 
2008:09:30-09:51:46 (none) selfmonng[3163]: W actionCmd(+): '/etc/init.d/postgresql restart' 
2008:09:30-09:55:46 (none) selfmonng[3163]: W child returned status: exit='1' signal='0' 
2008:09:30-09:55:46 (none) selfmonng[3163]: I check Failed increment smtp_running counter 4 - 15 
2008:09:30-09:55:51 (none) selfmonng[3163]: I check Failed increment postgresql_running counter 1 - 3 
2008:09:30-09:55:56 (none) selfmonng[3163]: I check Failed increment postgresql_running counter 2 - 3 
2008:09:30-09:56:01 (none) selfmonng[3163]: W check Failed increment postgresql_running counter 3 - 3 

This puts my smtp proxy offline, which is a big problem. Does anyone have any idea on how to solve this. We are on a Gold contract and cannot reach our reseller.

Pintero


This thread was automatically locked due to age.
Parents Reply Children
  • Thanks for your input. We managed to get potgresql running again by doing the following :

    ssh to the box
    become root
    then su - postgres
    pg_resetxlog -f /var/storage/pgsql/data

    Doing this eneabled us to start the postgres service again. It launched SMTP database and no problems reported. Accounting database failed. Log contained lots of errors with not able to update accounting.We had our Astaro partner login to fix the accounting problem. We did think about dropping the database and use the script (/var/storage/pgsql/init) to recreate.

    I would say this is a dirty fix. I have no idea if this deleted emails in spool or quarantine.  And what happens down the line. Reinstall might be an option, when we got some time.

    Anyone have any comments?