Unix Technical Forum

BUG #3750: Invalid frontend message type 112

This is a discussion on BUG #3750: Invalid frontend message type 112 within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3750 Logged by: Christian Ullrich Email address: chris@chrullrich.net PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:11 PM
Christian Ullrich
 
Posts: n/a
Default BUG #3750: Invalid frontend message type 112


The following bug has been logged online:

Bug reference: 3750
Logged by: Christian Ullrich
Email address: chris@chrullrich.net
PostgreSQL version: 8.3-beta2
Operating system: Windows Server 2003
Description: Invalid frontend message type 112
Details:

I'm running 8.3-beta2 (on WS2003, the client is XP Prof.) to experiment with
SSPI auth against AD. There is a persistent problem when using SSPI:
Authentication appears to work, but the connection fails at the first
query.

psql tells me about an "invalid frontend message type 112". Most of the
time, that error comes as the first line of output from psql (above the
"Welcome to" line), sometimes it is displayed later:

Welcome to psql 8.3beta2, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

test=>
test=> select 1;
server closed the connection unexpectedly
This probably means the server terminated abnormally before or while
processing the request.
The connection to the server was lost. Attempting reset: FATAL: invalid
frontend message type 112
Succeeded.

When I use another authentication method, all is well.

I can provide a network trace of the connection on request.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:11 PM
Magnus Hagander
 
Posts: n/a
Default Re: BUG #3750: Invalid frontend message type 112

Christian Ullrich wrote:
> The following bug has been logged online:
>
> Bug reference: 3750
> Logged by: Christian Ullrich
> Email address: chris@chrullrich.net
> PostgreSQL version: 8.3-beta2
> Operating system: Windows Server 2003
> Description: Invalid frontend message type 112
> Details:
>
> I'm running 8.3-beta2 (on WS2003, the client is XP Prof.) to experiment with
> SSPI auth against AD. There is a persistent problem when using SSPI:
> Authentication appears to work, but the connection fails at the first
> query.
>
> psql tells me about an "invalid frontend message type 112". Most of the
> time, that error comes as the first line of output from psql (above the
> "Welcome to" line), sometimes it is displayed later:
>
> Welcome to psql 8.3beta2, the PostgreSQL interactive terminal.
>
> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help with psql commands
> \g or terminate with semicolon to execute query
> \q to quit
>
> test=>
> test=> select 1;
> server closed the connection unexpectedly
> This probably means the server terminated abnormally before or while
> processing the request.
> The connection to the server was lost. Attempting reset: FATAL: invalid
> frontend message type 112
> Succeeded.
>
> When I use another authentication method, all is well.
>
> I can provide a network trace of the connection on request.


Strange, it's been running fine for me :-( Couple of questions:

Does it work if you run the client on the same machine as the server?

How's your AD set up - single domain, or multiple?

Do you get anything in the server logs (please check both eventlog and
the pg_log directory)

And yes, please send me a network trace off-list. (send the rest of the
responses on-list in case someone else has a good idea :-P)

//Magnus


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 12:11 PM
Blanco, Jose
 
Posts: n/a
Default Strange problem with an index.

I have the following table

Table "public.authorsort"
Column | Type | Modifiers
----------+-----------------------+-----------
ordernum | integer |
handle | character varying(30) |
Indexes: author_handle_idx btree (handle)

As you can tell I have an index on handle.

In my perl script I loop trough series of select statements that look
like this:

Select ordernum from authorsort where handle = 'somvevalue';

Well, this was running very slowly, so I droped the index and recreated
it, and then it ran quickly. I'm running versin 7.3 and I noticed that
in versin 8, the following has been done:

Prevent index corruption when a transaction inserts rows and then aborts
close to the end of a concurrent VACUUM on the same table (Tom)

And we recently added vacumm --full to our system. Could this be the
reason?

Thanks!
Jose

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 12:11 PM
Tom Lane
 
Posts: n/a
Default Re: Strange problem with an index.

"Blanco, Jose" <blancoj@umich.edu> writes:
> Well, this was running very slowly, so I droped the index and recreated
> it, and then it ran quickly.


Sounds like you had a bloated index.

> I'm running versin 7.3


Consider switching to something more modern --- 7.3 is vastly slower
than current releases.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 12:11 PM
Christian Ullrich
 
Posts: n/a
Default Re: BUG #3750: Invalid frontend message type 112

* Magnus Hagander wrote:

> Christian Ullrich wrote:


>> psql tells me about an "invalid frontend message type 112". Most of the
>> time, that error comes as the first line of output from psql (above the
>> "Welcome to" line), sometimes it is displayed later:


> Does it work if you run the client on the same machine as the server?


Yes.

> How's your AD set up - single domain, or multiple?


Single domain, AD native mode, DC is Windows 2000.

> Do you get anything in the server logs (please check both eventlog and
> the pg_log directory)


Nothing relevant in eventlog, and pg_log only has the "invalid frontend
message type 112" lines. Interspersed with "loaded library
$libdir/plugin_debugger.dll", but I guess that's not important here.

> And yes, please send me a network trace off-list. (send the rest of the
> responses on-list in case someone else has a good idea :-P)


(Done.)

--
Christian Ullrich


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-10-2008, 12:12 PM
Magnus Hagander
 
Posts: n/a
Default Re: BUG #3750: Invalid frontend message type 112


On Fri, 2007-11-16 at 06:34 +0100, Christian Ullrich wrote:
> * Magnus Hagander wrote:
>
> > Christian Ullrich wrote:

>
> >> psql tells me about an "invalid frontend message type 112". Most of the
> >> time, that error comes as the first line of output from psql (above the
> >> "Welcome to" line), sometimes it is displayed later:

>
> > Does it work if you run the client on the same machine as the server?

>
> Yes.
>
> > How's your AD set up - single domain, or multiple?

>
> Single domain, AD native mode, DC is Windows 2000.
>
> > Do you get anything in the server logs (please check both eventlog and
> > the pg_log directory)

>
> Nothing relevant in eventlog, and pg_log only has the "invalid frontend
> message type 112" lines. Interspersed with "loaded library
> $libdir/plugin_debugger.dll", but I guess that's not important here.
>
> > And yes, please send me a network trace off-list. (send the rest of the
> > responses on-list in case someone else has a good idea :-P)

>
> (Done.)
>

Thanks for sending this. I'll be offline most of next week, so I won't
have time to look into this. If someone else wants to pick it up, please
do (and ask Christian for a copy of the trace). If not, I'll look at it
when I'm back firmly connected to the internet.

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-10-2008, 12:12 PM
Magnus Hagander
 
Posts: n/a
Default Re: BUG #3750: Invalid frontend message type 112

On Fri, Nov 16, 2007 at 06:31:43AM +0100, Christian Ullrich wrote:
> * Magnus Hagander wrote:
>
> >Christian Ullrich wrote:

>
> >>psql tells me about an "invalid frontend message type 112". Most of the
> >>time, that error comes as the first line of output from psql (above the
> >>"Welcome to" line), sometimes it is displayed later:

>
> >Does it work if you run the client on the same machine as the server?

>
> Yes.
>
> >How's your AD set up - single domain, or multiple?

>
> Single domain, AD native mode, DC is Windows 2000.
>
> >Do you get anything in the server logs (please check both eventlog and
> >the pg_log directory)

>
> Nothing relevant in eventlog, and pg_log only has the "invalid frontend
> message type 112" lines. Interspersed with "loaded library
> $libdir/plugin_debugger.dll", but I guess that's not important here.
>
> >And yes, please send me a network trace off-list. (send the rest of the
> >responses on-list in case someone else has a good idea :-P)

>
> Attached. Starting with frame 15 I ran "\d".


I have applied a patch for this to HEAD that fixes the problem (confirmed
off-list with Christian).

Before someone asks, there's a similar codepath in the GSSAPI code, but it
already contains the check ;-)

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com