Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » RSE Connect failure using Dstore daemon(RSEG1243 Failed to connect to the daemon on host using port 4075 with an unexpected error)
RSE Connect failure using Dstore daemon [message #930421] Tue, 02 October 2012 09:50 Go to next message
Damien Mulcahy is currently offline Damien MulcahyFriend
Messages: 3
Registered: October 2012
Junior Member
Folks,

I am running Eclipse C/C++ Indigo with RSE 8.0 on a Windows XP Pro SP3 PC.
I am trying to connect to remote projects on a Solaris 10 Unix server.
I installed and started the rserver version 3.4 Dstore daemon and confirmed it is listening on port 4075.

When I try to connect my connection in RSE I get the following error:
"RSEG1243 Failed to connect to the daemon on hostname using port 4075 with unexpected error".

When I check the daemon process on the Unix server it has spawned a sub-process to run auth.pl to verify my password but it is just hanging.

Any ideas what could be causing this?

Thanks,
Damien.
Re: RSE Connect failure using Dstore daemon [message #931746 is a reply to message #930421] Wed, 03 October 2012 13:36 Go to previous messageGo to next message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Hi Damien,

If you have root access on the server machine, can you try the following?

1) Open a shell and cd to the directory that contains the server scripts
(i.e. wherever auth.pl is)
2) Run the command ./auth.pl <user> / 5555 10000 10000
3) After the script starts, it will wait on stdin. Type your password and
press return.

Do you get the "success" message? Do you see any other messages in the
shell?

Thanks,
Dave

"Damien Mulcahy" <forums-noreply@xxxxxxxx> wrote in message
news:k4ede3$mmd$1@xxxxxxxxe.org...
> Folks,
>
> I am running Eclipse C/C++ Indigo with RSE 8.0 on a Windows XP Pro SP3 PC.
> I am trying to connect to remote projects on a Solaris 10 Unix server.
> I installed and started the rserver version 3.4 Dstore daemon and
> confirmed it is listening on port 4075.
>
> When I try to connect my connection in RSE I get the following error:
> "RSEG1243 Failed to connect to the daemon on hostname using port 4075 with
> unexpected error".
>
> When I check the daemon process on the Unix server it has spawned a
> sub-process to run auth.pl to verify my password but it is just hanging.
>
> Any ideas what could be causing this?
>
> Thanks,
> Damien.
>
Re: RSE Connect failure using Dstore daemon [message #940294 is a reply to message #931746] Thu, 11 October 2012 14:00 Go to previous messageGo to next message
Damien Mulcahy is currently offline Damien MulcahyFriend
Messages: 3
Registered: October 2012
Junior Member
Hi,

Sorry for the delay in replying, the email notification from this forum is obviously not getting through to me for some reason.

To resolve this issue I added the following to auth.pl after the call to getpwnam():

if ("$passwd" eq "x")
{
open (SHDW,"</etc/shadow") ;
while(<SHDW>)
{
if (/^$userIN:/)
{
/^[^:]+:([^:]+):/;
$passwd= $1;
last;
}
}
close(SHDW);
}

This is because Solaris does not store the encrypted password on the passwd object returned by getpwnam(), it instead stores it in the /etc/shadow file.

Regards,
Damien.
Re: RSE Connect failure using Dstore daemon [message #940306 is a reply to message #940294] Thu, 11 October 2012 14:09 Go to previous messageGo to next message
Damien Mulcahy is currently offline Damien MulcahyFriend
Messages: 3
Registered: October 2012
Junior Member

Apologies that last post was misleading, that code change was not in fact what corrected the hanging auth.pl.

I also set $suOptions=""; as using $suOptions="-"; forced the user's .profile to be executed and if it contained any prompts it caused the shell to hang in the background.

Regards,
Damien.
Re: RSE Connect failure using Dstore daemon [message #947893 is a reply to message #940306] Wed, 17 October 2012 14:53 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Interesting that the prompts in the .profile cause a hang. We want to run
the profile so that the proper user environment is set up although I'm not
sure how or whether we should automatically handle prompts in the profile.


"Damien Mulcahy" <forums-noreply@xxxxxxxx> wrote in message
news:k56jvg$85n$1@xxxxxxxxe.org...
>
> Apologies that last post was misleading, that code change was not in fact
> what corrected the hanging auth.pl.
>
> I also set $suOptions=""; as using $suOptions="-"; forced the user's
> .profile to be executed and if it contained any prompts it caused the
> shell to hang in the background.
>
> Regards,
> Damien.
Previous Topic:RSE cannot list FTP directory
Next Topic:Launching gdbserver or Launching Manual Remote hangs at 84%
Goto Forum:
  


Current Time: Mon Dec 22 10:37:28 GMT 2014

Powered by FUDForum. Page generated in 0.02451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software