Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option notsupported by protocol - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option notsupported by protocol
Date
Msg-id 20170627191732.bqh677xgt5bbdo7t@alvherre.pgsql
Whole thread Raw
In response to [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported byprotocol  (lizenko79@gmail.com)
Responses Re: [BUGS] BUG #14720: getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
lizenko79@gmail.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      14720
> Logged by:          Andrey Lizenko
> Email address:      lizenko79@gmail.com
> PostgreSQL version: 9.6.3
> Operating system:   Solaris 11.3
> Description:        
> 
> I've got the following message running PostgreSQL 9.6.3 on Solaris 11.3
> (both latest stable).
> 
> > getsockopt(TCP_KEEPALIVE) failed: Option not supported by protocol
> 
> Unfortunately, I can not reproduce it with libpq c code examples, but at
> least I can see it while using pgAdmin 3 , pgAdmin 4 and zabbix monitoring
> extension libzbxpgsql.
> 
> In getsockopt manual only SO_KEEPALIVE mentioned.

It sounds like your system defines the TCP_KEEPALIVE symbol at compile
time but the kernel doesn't know it; maybe the package was compiled in a
system where the kernel does support that option, and you're running it
in one that doesn't?

Are you getting the message in the client side or server side?  If the
latter, you should just set tcp_keepalives_idle to 0 in postgresql.conf.
If the former, I think the only option is to fix the libpq compile.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Greg Stark
Date:
Subject: Re: [BUGS] Bus error in formatting.c NUM_numpart_to_char (9.4.12, 9.6.3, sparc)
Next
From: Martin Garton
Date:
Subject: Re: [BUGS] BUG #14719: Logical replication unexpected behaviour whentarget table has missing columns