Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1245895/#msg_1245895
I can successfully connect using a SSH Connection. But when I use RSE Daemon or server directly it just can't connect and keeps on giving error I have been trying to connect to it since a week but no luck.
I've tried Daemon, REXEC, Running Launch properties but still no luck.
I start the Daemon from root account with command perl ./daemon.pl 4075.
I have echoed out the command that is being executed in daemon.pl
After this nothing happens.
I have tried the same procedures first rseserver-3.4-unix.tar on then rseserver-unix-3.6-M4.tar
On eclipse now I try to connect to this Daemon on 4075
Daemon failed to launch server on <IP> using port 4075
Connection Refused.
Make sure that the DataStore daemon is running on <IP>.
I also got RSEG1242 error with some other launcher property
I am using Eclipse IDE for C/C++ Developers
Version: Kepler Service Release 1
Build id: 20130919-0819
on windows XP Professional Version 2002 Service Pack 3
Trying to connect to SunOS 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
Please help me
Thanks and regards.]]>Riyaz Parve2014-02-14T12:20:49-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1249737/#msg_1249737
In the case of the RSE daemon (running on 4075) in your case, the server that gets launched will be on a different port (i.e. not 4075). One thing you may want to try to help diagnose this is to run the server manually (i.e. ./server.pl <port>) and use the "Connect to running server" option in the Server Launcher Settings. Make sure that when running the server manually, you set the port to be the server port in the SubSystem property page before connecting.
Riyaz Parve wrote on Fri, 14 February 2014 07:20
I've tried so many times with different settings(launcher properties, ports, plugins) did a lot of google on this but no luck I am not able connect to RSE DStore server manually or through daemon.
I can successfully connect using a SSH Connection. But when I use RSE Daemon or server directly it just can't connect and keeps on giving error I have been trying to connect to it since a week but no luck.
I've tried Daemon, REXEC, Running Launch properties but still no luck.
I start the Daemon from root account with command perl ./daemon.pl 4075.
I have echoed out the command that is being executed in daemon.pl
After this nothing happens.
I have tried the same procedures first rseserver-3.4-unix.tar on then rseserver-unix-3.6-M4.tar
On eclipse now I try to connect to this Daemon on 4075
Daemon failed to launch server on <IP> using port 4075
Connection Refused.
Make sure that the DataStore daemon is running on <IP>.
I also got RSEG1242 error with some other launcher property
I am using Eclipse IDE for C/C++ Developers
Version: Kepler Service Release 1
Build id: 20130919-0819
on windows XP Professional Version 2002 Service Pack 3
Trying to connect to SunOS 5.10 Generic_141444-09 sun4v sparc SUNW,Sun-Blade-T6320
Please help me
Thanks and regards.
]]>David McKnight2014-02-18T15:20:05-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1252505/#msg_1252505
Yes firewall is running. I did some research before posting my question here and found firewall might be a problem so I requested admin to open that port for communication and port 4075 was successfully opened. But still its giving me the same error.
Here is the steps I did to manually connect to the server
[riyaz@TEST123 rseserver]$ ./server.sh 4075
DStore Server Starting...
Server Started Successfully
4075
Server running on: TEST123
Connection error
Server: error initializing socket: java.net.SocketTimeoutException: Accept timed out
I saw how to use ssh in help and I tried it from cmd
C:\>ssh -l riyaz <IP> -L27127:<IP>:27127 "sh -c 'cd /u19/cltyapps/riyaz/opt/rseserver; pwd; ./server.sh 4075 &'"
Password:
/u19/cltyapps/riyaz/opt/rseserver
DStore Server Starting...
Server Started Successfully
4075
Server running on: TEST123
same thing done in REXEC doesn't work
Below are some screen shots that might help
NOTE: FILES, SHELL AND TERMINAL GETS CONNECTED USING SSH SO I DON'T THERE THINK SO THERE IS A PROBLEM IN CONNECTIVITY.]]>Riyaz Parve2014-02-21T09:34:00-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1256732/#msg_1256732
The SocketTimeoutException is occurring because the server was not connected to within a period of time (I think the default is a minute for a manually run server). That is expected if a connection isn't established within that period. For your test, did you attempt to connect to the server before the timeout message showed up?
Note that the daemon runs on port 4075 by default but servers that get launched run on different ports. By allowing only port 4075 through a firewall will still leave the server ports blocked. If you're trying to run a server on this same port at the same time, you should run into a bind problem on startup. That said, I don't see any message indicating a bind failure with your manually run server test so I assume you're not running both at the same time in this instance. Could you request that a second port (in addition to 4075) be opened? If you do that, then you can specify the second port as the subsystem port.
Riyaz Parve wrote on Fri, 21 February 2014 04:34
Sorry for late reply..
Yes firewall is running. I did some research before posting my question here and found firewall might be a problem so I requested admin to open that port for communication and port 4075 was successfully opened. But still its giving me the same error.
Here is the steps I did to manually connect to the server
[riyaz@TEST123 rseserver]$ ./server.sh 4075
DStore Server Starting...
Server Started Successfully
4075
Server running on: TEST123
Connection error
Server: error initializing socket: java.net.SocketTimeoutException: Accept timed out
I saw how to use ssh in help and I tried it from cmd
C:\>ssh -l riyaz <IP> -L27127:<IP>:27127 "sh -c 'cd /u19/cltyapps/riyaz/opt/rseserver; pwd; ./server.sh 4075 &'"
Password:
/u19/cltyapps/riyaz/opt/rseserver
DStore Server Starting...
Server Started Successfully
4075
Server running on: TEST123
]]>David McKnight2014-02-25T18:47:33-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1258632/#msg_1258632
Thanks for the reply..
Quote:
The SocketTimeoutException is occurring because the server was not connected to within a period of time (I think the default is a minute for a manually run server). That is expected if a connection isn't established within that period. For your test, did you attempt to connect to the server before the timeout message showed up?
Yes I started the server and tried to connect to it from eclipse after 5 to 10 seconds eclipse says Connection Refused.
I even tried increasing the timeout value to 10 mins just added a zero to the timeout value. But still eclipse says Connection Refused.
Quote:
Note that the daemon runs on port 4075 by default but servers that get launched run on different ports. By allowing only port 4075 through a firewall will still leave the server ports blocked. If you're trying to run a server on this same port at the same time, you should run into a bind problem on startup. That said, I don't see any message indicating a bind failure with your manually run server test so I assume you're not running both at the same time in this instance. Could you request that a second port (in addition to 4075) be opened? If you do that, then you can specify the second port as the subsystem port.
Yes I know if daemon is running on 4075 so the server will run on some other port I understood this when port was already opened.
Now that 4075 port is open I want to try manual server connection on this port before opening other ports.
I did netstat to see if 4075 is being used by server and it says 4075 is in LISTEN mode before the server timeouts.
I found this from the help docs
If your daemon runs behind a firewall, you may want to specify the optional serverPortRange argument to restrict selected server ports to the range given:
perl ./daemon.pl 4075 10000-10010
Server requires more than one port for connection? Do I need to open each and every port from 10000 to 10010?
]]>Riyaz Parve2014-02-27T15:34:34-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1259724/#msg_1259724
Is it possible the client firewall is getting in the way too? It's strange that you can't even connect to the manually run server on 4075. The console output suggests that no socket connect got through to the server. Could you see what happens when you specify the IP address for the hostname in the connection properties?
Riyaz Parve wrote on Thu, 27 February 2014 10:34
Hi David McKnight,
I found this from the help docs
If your daemon runs behind a firewall, you may want to specify the optional serverPortRange argument to restrict selected server ports to the range given:
perl ./daemon.pl 4075 10000-10010
Server requires more than one port for connection? Do I need to open each and every port from 10000 to 10010?
You can specify any port range for the servers. For example, you could do this:
perl ./daemon.pl 4075 10000-10001
There's no requirement that you have 10 ports reserved for servers. By using the port range argument, any server that gets launched via the daemon will be within that range. I'd suggest opening one or two ports on the firewall for the server.
]]>David McKnight2014-02-28T18:32:57-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1262134/#msg_1262134
Quote:
Is it possible the client firewall is getting in the way too?
I don't think so firewall is an issue as I can run TCP Socket programs in Java / C / C++ and I am able to run them successfully on any port never had any issue.
So I created server program to run on 4075 port of unix and client to run on my windows box but it didn't worked. So I tired port 10000 and it worked.
Then I started the eclipse server on 10000 and used my client program to connect from windows to the eclipse server on unix, it worked the server returned some data.
So now I can manually start the server and connect to it from eclipse, so now I tried connecting it using daemon.
I deleted the old remote connection from eclipse and created a new one using daemon on 10000
From root
perl ./daemon.pl 10000 10001-10010
java -DA_PLUGIN_PATH=/u19/cltyapps/riyaz/opt/rseserver/ -DDSTORE_TRACING_ON=true org.eclipse.dstore.core.server.ServerLauncher 10000 10001-10010
Daemon running on: <SERVER>, port: 10000
Now on eclipse it gave me Error:
RSEG1243
Failed to connect to the daemon on 97.253.46.89 using port 10000 with an unexpected exception
java.lang.Exception: no status returned
java.lang.Exception: no status returned
at org.eclipse.dstore.core.client.ClientConnection.launchServer(ClientConnection.java:736)
at org.eclipse.rse.connectorservice.dstore.DStoreConnectorService.launchServer(DStoreConnectorService.java:1472)
at org.eclipse.rse.connectorservice.dstore.DStoreConnectorService.connectWithDaemon(DStoreConnectorService.java:674)
at org.eclipse.rse.connectorservice.dstore.DStoreConnectorService.internalConnect(DStoreConnectorService.java:1351)
at org.eclipse.rse.core.subsystems.AbstractConnectorService$1.run(AbstractConnectorService.java:500)
at org.eclipse.rse.core.subsystems.AbstractConnectorService$SafeRunner.run(AbstractConnectorService.java:444)
at org.eclipse.rse.core.subsystems.AbstractConnectorService.connect(AbstractConnectorService.java:506)
at org.eclipse.rse.core.subsystems.SubSystem.connect(SubSystem.java:2545)
at org.eclipse.rse.internal.ui.actions.SystemConnectAllSubSystemsAction$ConnectAllJob.run(SystemConnectAllSubSystemsAction.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
What is worng now? Also when I manually connected to the dstore server I couldn't see any process, files were visible but my proccesses and all processes said empty list.
I am assuming the problem is version miss match?
I'm using rseserver-unix-3.6-M4.tar on unix and RSE DStore Services Version: 3.4.100.201309112143 on eclipse
Thanks ]]>Riyaz Parve2014-03-03T09:45:58-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1262191/#msg_1262191
Riyaz Parve2014-03-03T11:02:41-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1262365/#msg_1262365
1) Your user id not having read/execute access to the auth.pl script in the server directory.
2) Your user id not having Java in your path.
3) The default socket io timeout value may be too small (if this is a slow connection). That can be configured under Preferences->Remote Systems->DataStore.
Do you see any messages in the console where you started the daemon?
Regarding the processes, you should probably make sure to update the client to 3.6 level.
Regarding the Remote C/C++ Project stuff, I believe this is a separate feature built on top of CDT and TM so that needs to be installed separately.]]>David McKnight2014-03-03T15:00:53-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1274459/#msg_1274459
Sorry for the late reply I have been busy..
Quote:
1) Your user id not having read/execute access to the auth.pl script in the server directory.
I use root to run the daemon and I use my user in eclipse to connect to the daemon, so only user with root permission can use daemon ?
Quote:
2) Your user id not having Java in your path.
Both root and my user id have java in path and can run java as soon as logged in.
Quote:
3) The default socket io timeout value may be too small (if this is a slow connection). That can be configured under Preferences->Remote Systems->DataStore.
I have tried that also...
]]>Riyaz Parve2014-03-21T13:53:30-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1274563/#msg_1274563
Riyaz Parve wrote on Fri, 21 March 2014 09:53
Quote:
1) Your user id not having read/execute access to the auth.pl script in the server directory.
I use root to run the daemon and I use my user in eclipse to connect to the daemon, so only user with root permission can use daemon ?
Only root can run the daemon since the auth.pl script that authenticates the user will only work with root permissions.
]]>David McKnight2014-03-21T16:43:03-00:00Re: RSE Daemon not working
https://www.eclipse.org/forums/index.php/mv/msg/649426/1714053/#msg_1714053
]]>Michael Peoples2015-11-09T15:18:27-00:00