Guest User!

You are not Sophos Staff.

[8.280][DUPLICATE][FIXED] No mails since upgrade to 8.280

Hi,

I made the update to 8.80 yesterday evening, since then there is no mail flow in ASG. Mail Manager stays empty, logs stay empty.

system.log:

2011:11:18-08:14:58 fw postgres[10345]: [1-1] FATAL: could not create shared memory segment: Invalid argument
2011:11:18-08:14:58 fw postgres[10345]: [1-2] DETAIL: Failed system call was shmget(key=5432001, size=74784768, 03600).
2011:11:18-08:14:58 fw postgres[10345]: [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-08:14:58 fw postgres[10345]: [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-08:14:58 fw postgres[10345]: [1-5] The PostgreSQL documentation contains more information about shared memory configuration.
2011:11:18-08:15:01 fw /usr/sbin/cron[10349]: (root) CMD ( /usr/local/bin/reporter/system-reporter.pl)
2011:11:18-08:15:01 fw /usr/sbin/cron[10350]: (root) CMD (nice -n19 /usr/local/bin/create_rrd_graphs.plx)
2011:11:18-08:15:02 fw ulogd[9061]: pg1: connect: could not connect to server: No such file or directory 


I think all this is related to the problem reported here:
https://community.sophos.com/products/unified-threat-management/astaroorg/f/112/t/71288

May it be possible to get a quick fix for this? Otherwise I would have to reload 8.202 on the device and this would kill my AP50 testing.

Thanks, Mario
Parents
  • i just restarted my firewall after doing the changes to the postgres file and get this messages in the system.log


     and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:15 firewall-2 postgres[18369]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:15 firewall-2 postgres[18369]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:15 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:17 firewall-1 postgres[13574]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13574]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:17 firewall-1 postgres[13575]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13575]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:17 firewall-1 postgres[13576]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13576]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:21 firewall-3 syslog-ng[7819]: Syslog connection failed; fd='140', server='AF_INET(127.0.0.1:10100)', error='Connection refused (111)', time_reopen='60'
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:22 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:27 firewall-1 postgres[13578]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13578]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:27 firewall-1 postgres[13579]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13579]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:27 firewall-1 postgres[13580]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13580]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:28 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_NetDnsFirewalldu :: firewall.ducktales.net
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_ViCgDXCyxJ :: heise online - IT-News, c't, iX, Technology Review, Telepolis
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_uyYlglabGL :: anny.lostinspace.de
    2011:11:18-14:01:30 firewall-2 dns-resolver[12436]: No change to REF_XBOyBlmztb :: anny.lostinspace.de
    2011:11:18-14:01:32 firewall-2 postgres[18324]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:32 firewall-2 postgres[18323]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:34 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:37 firewall-1 postgres[13586]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13586]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:37 firewall-1 postgres[13587]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13587]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:37 firewall-1 postgres[13589]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13589]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:40 firewall-2 postgres[18367]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:40 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [1-1] FATAL:  could not create shared memory segment: Invalid argument
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [1-2] DETAIL:  Failed system call was shmget(key=5432001, size=74784768, 03600).
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [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:01:41 firewall-3 postgres[6991]: [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:01:41 firewall-3 postgres[6991]: [1-5]    The PostgreSQL documentation contains more information about shared memory configuration.
Reply
  • i just restarted my firewall after doing the changes to the postgres file and get this messages in the system.log


     and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:15 firewall-2 postgres[18369]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:15 firewall-2 postgres[18369]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:15 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:17 firewall-1 postgres[13574]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13574]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:17 firewall-1 postgres[13575]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13575]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:17 firewall-1 postgres[13576]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:17 firewall-1 postgres[13576]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:21 firewall-3 syslog-ng[7819]: Syslog connection failed; fd='140', server='AF_INET(127.0.0.1:10100)', error='Connection refused (111)', time_reopen='60'
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:22 firewall-2 postgres[18376]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:22 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:27 firewall-1 postgres[13578]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13578]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:27 firewall-1 postgres[13579]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13579]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:27 firewall-1 postgres[13580]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:27 firewall-1 postgres[13580]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:28 firewall-2 postgres[18400]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:28 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_NetDnsFirewalldu :: firewall.ducktales.net
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_ViCgDXCyxJ :: heise online - IT-News, c't, iX, Technology Review, Telepolis
    2011:11:18-14:01:29 firewall-2 dns-resolver[12436]: No change to REF_uyYlglabGL :: anny.lostinspace.de
    2011:11:18-14:01:30 firewall-2 dns-resolver[12436]: No change to REF_XBOyBlmztb :: anny.lostinspace.de
    2011:11:18-14:01:32 firewall-2 postgres[18324]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:32 firewall-2 postgres[18323]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:34 firewall-2 postgres[18407]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:34 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:37 firewall-1 postgres[13586]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13586]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:37 firewall-1 postgres[13587]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13587]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:37 firewall-1 postgres[13589]: [2-1] ERROR:  schema "_asg_cluster" does not exist
    2011:11:18-14:01:37 firewall-1 postgres[13589]: [2-2] STATEMENT:  select "_asg_cluster".registerNodeConnection(2);
    2011:11:18-14:01:40 firewall-2 postgres[18367]: [2-1] LOG:  unexpected EOF on client connection
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-1] ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-2] CONTEXT:  SQL statement "update accounting set raw_in_pktlen = raw_in_pktlen +  $1 , raw_in_pktcount = raw_in_pktcount +  $2 , raw_out_pktlen = raw_out_pktlen +  $3 , raw_out_pktcount = raw_out_pktcount +  $4 , flow_count = flow_count + 1 where logday =  $5  and srcip =  $6  and dstip =  $7  and l4_dport =  $8  and ip_protocol =  $9  and (srcid =  $10  or (srcid IS NULL and  $10  IS NULL)) and (dstid =  $11  or (dstid IS NULL and  $11  IS NULL)) and afc_proto =  $12 "
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-3]   PL/pgSQL function "ins_accounting" line 20 at SQL statement
    2011:11:18-14:01:40 firewall-2 postgres[18419]: [2-4] STATEMENT:  select ins_accounting($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
    2011:11:18-14:01:40 firewall-2 ulogd[18321]: pg1: ERROR:  Slony-I: Table accounting is replicated and cannot be modified on a subscriber node - role=0
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [1-1] FATAL:  could not create shared memory segment: Invalid argument
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [1-2] DETAIL:  Failed system call was shmget(key=5432001, size=74784768, 03600).
    2011:11:18-14:01:41 firewall-3 postgres[6991]: [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:01:41 firewall-3 postgres[6991]: [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:01:41 firewall-3 postgres[6991]: [1-5]    The PostgreSQL documentation contains more information about shared memory configuration.
Children
No Data