Thread: Terminal Server issues

Terminal Server issues

From
"Magnus Hagander"
Date:
I've done some more investigation on the issues with running initdb
(well, running the postgres backend actually, which initdb does in a
pipe of course). When I look at the actual error essage, it's "The
specified path is invalid"!

I don't see any reason why this should happen. I've also tried
experimenting with the Local\ and Global\ prefixes of the file mapping
object, but that makes no difference, the problem is still there.

Does anybody have any idea of why CreateFileMapping() would behave
differently on win2k terminal services (per report it works on win2k3 -
I haven't tried that myself, though)?


//Magnus


Re: Terminal Server issues

From
Andreas Pflug
Date:
Magnus Hagander wrote:
> I've done some more investigation on the issues with running initdb
> (well, running the postgres backend actually, which initdb does in a
> pipe of course). When I look at the actual error essage, it's "The
> specified path is invalid"!
>
> I don't see any reason why this should happen. I've also tried
> experimenting with the Local\ and Global\ prefixes of the file mapping
> object, but that makes no difference, the problem is still there.
>
> Does anybody have any idea of why CreateFileMapping() would behave
> differently on win2k terminal services

I don't, but you could try to use an explicit temp file, instead of
INVALID_FILE_HANDLE. Maybe the page file is accessible only in the
console session.

Regards,
Andreas



Re: Terminal Server issues

From
Mark Kirkwood
Date:
I have thought a little more about this... using rdesktop from Linux I
was using RDP protocol (as opposed to ICA) to talk to 2003 terminal
server. Now I cannot see how this would *actually* make a difference,
but it would be interesting to see if the someone can try out an RDP
session to a 2000 terminal server.

Unfortunately I am away sick from work and cannot retest with the latest
code on 2003 for you :-(

regards

Mark

Magnus Hagander wrote:

>Does anybody have any idea of why CreateFileMapping() would behave
>differently on win2k terminal services (per report it works on win2k3 -
>I haven't tried that myself, though)?
>
>
>

Re: Terminal Server issues

From
"Dave Page"
Date:

> -----Original Message-----
> From: pgsql-hackers-win32-owner@postgresql.org
> [mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf
> Of Magnus Hagander
> Sent: 22 August 2004 20:48
> To: pgsql-hackers-win32
> Subject: [pgsql-hackers-win32] Terminal Server issues
>
> I've done some more investigation on the issues with running
> initdb (well, running the postgres backend actually, which
> initdb does in a pipe of course). When I look at the actual
> error essage, it's "The specified path is invalid"!
>
> I don't see any reason why this should happen. I've also
> tried experimenting with the Local\ and Global\ prefixes of
> the file mapping object, but that makes no difference, the
> problem is still there.
>
> Does anybody have any idea of why CreateFileMapping() would
> behave differently on win2k terminal services (per report it
> works on win2k3 - I haven't tried that myself, though)?

Bear in mind also that it's not so much that it won't work with TS
enabled, just that it won't work from /within/ a TS session.

And no, I don't have the foggiest! :-(

Regards Dave.

Re: Terminal Server issues

From
"Magnus Hagander"
Date:
I have been testing only with RDP sessions to win2000, and that
definitly does not work.

Nope, not that easy :(

//Magnus

> -----Original Message-----
> From: Mark Kirkwood [mailto:markir@coretech.co.nz]
> Sent: Monday, August 23, 2004 6:07 AM
> To: Magnus Hagander
> Cc: pgsql-hackers-win32
> Subject: Re: [pgsql-hackers-win32] Terminal Server issues
>
> I have thought a little more about this... using rdesktop
> from Linux I was using RDP protocol (as opposed to ICA) to
> talk to 2003 terminal server. Now I cannot see how this would
> *actually* make a difference, but it would be interesting to
> see if the someone can try out an RDP session to a 2000
> terminal server.
>
> Unfortunately I am away sick from work and cannot retest with
> the latest code on 2003 for you :-(
>
> regards
>
> Mark
>
> Magnus Hagander wrote:
>
> >Does anybody have any idea of why CreateFileMapping() would behave
> >differently on win2k terminal services (per report it works
> on win2k3 -
> >I haven't tried that myself, though)?
> >
> >
> >
>
>