 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Java web interface on linux |
|
I have sucessfully connected to an existing windows 24x7 install using the web interface, but when I try to connect to the java installation on a linux box, i get connection refused.. I have : Edited the xml file to allow remote connections edited the ports required to a port i know is open and available (there is a disconenct in the default port scheme where its either 1096 or 1097) used a valid username / pass for that box (root, and a specifically created user) Is there any place else i need to look / try ?
|
|
Thu Sep 28, 2006 8:29 am |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
: I have sucessfully connected to an existing windows 24x7 install using the : web interface, but when I try to connect to the java installation on a : linux box, i get connection refused.. I have : Edited the xml file to : allow remote connections : edited the ports required to a port i know is open and available (there is a : disconenct in the default port scheme where its either 1096 or 1097) : used a valid username / pass for that box (root, and a specifically created : user) : Is there any place else i need to look / try ? Sorry, this should read "Connection Denied" .. the server is active and running
|
|
Thu Sep 28, 2006 8:33 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
Can you ping the scheduler server from web server? Is there a firewall in between blocking port 1097? : Sorry, this should read "Connection Denied" .. the server is active : and running
|
|
Thu Sep 28, 2006 9:13 am |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
: Can you ping the scheduler server from web server? Is there a firewall in : between blocking port 1097? The firewall is disables, and iptables is allowing all connections while I troubleshoot these installs. I edited the user file to add: testuser administrator When I attempt to connect to the java linux install, i get connection denied. When I attempt to connect to the java windows version, i can see the authentication denies log messags. i did add domain\user to the user list via the gui, and log in as that user , and the tomcat process seems to hand, and never connect nor deny after 10+ minutes. This is consistant with my new tomcat install, and a test on an exisiting tomcat install on a different box serving other apps
|
|
Thu Sep 28, 2006 10:55 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
This is what I would do to troubleshoot it 1. On the scheduler side run "netstat -a" and verify the scheduler is listening on port 1096 (remote jobs) and 1097 (remove control + web interface) 2. On the web server, ping scheduler server and ensure ping is ok 3. On the scheduler, in Tools/Security define a user with Admin rights. The user must be a valid user known to the system (but not root) 4. On the scheduler, delete schedule.log and then on the web site attempt a connection using id of the defined user.. If it doesn't work check schedule.log for messageslike "user ... is connecting from ..." If the messages are not theree then web isstill not finding the right server. Try using IP address instead of the server name on the logon page. : The firewall is disables, and iptables is allowing all connections while I : troubleshoot these installs. : I edited the user file to add: testuser administrator : When I attempt to connect to the java linux install, i get connection denied. : When I attempt to connect to the java windows version, i can see the : authentication denies log messags. : i did add domain\user to the user list via the gui, and log in as that user , : and the tomcat process seems to hand, and never connect nor deny after 10+ : minutes. : This is consistant with my new tomcat install, and a test on an exisiting : tomcat install on a different box serving other apps
|
|
Thu Sep 28, 2006 11:12 am |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
: This is what I would do to troubleshoot it : 1. On the scheduler side run "netstat -a" and verify the scheduler : is listening on port 1096 (remote jobs) and 1097 (remove control + web : interface) : 2. On the web server, ping scheduler server and ensure ping is ok : 3. On the scheduler, in Tools/Security define a user with Admin rights. The : user must be a valid user known to the system (but not root) : 4. On the scheduler, delete schedule.log and then on the web site attempt a : connection using id of the defined user.. If it doesn't work check : schedule.log for messageslike "user ... is connecting from ..." : If the messages are not theree then web isstill not finding the right server. : Try using IP address instead of the server name on the logon page. user 24x7 specifially created & given a password. The user was also added to a group that has access to the entire 24x7 java folder install started up with ./master.sh nogui ... and i see the console message and cntl+c to quit. On the web app side, i enter in all information, along with 24x7 user and proper password. Get Connection denied. The scheduler.log shows the itgen user attempting to connect from the ip address of the tomcat server (they are one in the same, but using 'localhost has the same affect) I verified that the remote port is 1097 in both the preferences.xm and login_proceed.jsp files.. I have even chmod 777 * to all files in the 24x7 java install directory. Running user.pl 24x7 returns OK , so the authentication script to get the uid / gid is working fine ... what is the format of the user file ?
|
|
Thu Sep 28, 2006 11:28 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
I think I get it... You have missed one step - in the scheduler settings open up Tools/Users menu and add that "24x7" user as admin. : user 24x7 specifially created & given a password. The user was also added : to a group that has access to the entire 24x7 java folder install : started up with ./master.sh nogui ... and i see the console message and : cntl+c to quit. : On the web app side, i enter in all information, along with 24x7 user and : proper password. Get Connection denied. : The scheduler.log shows the itgen user attempting to connect from the ip : address of the tomcat server (they are one in the same, but using : 'localhost has the same affect) : I verified that the remote port is 1097 in both the preferences.xm and : login_proceed.jsp files.. I have even chmod 777 * to all files in the 24x7 : java install directory. : Running user.pl 24x7 returns OK , so the authentication script to get the uid : / gid is working fine ... what is the format of the user file ?
|
|
Thu Sep 28, 2006 1:56 pm |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
: I think I get it... You have missed one step - in the scheduler settings open : up Tools/Users menu and add that "24x7" user as admin. Sorry I did forget to mention that I added 24x7 as a user to the 'user' file. Since I am running in in 'nogui' mode, I manually edited the file... but I ended up creating one on the windows side and porting it over. It looks to just be "user role" nothing more ?
|
|
Thu Sep 28, 2006 2:24 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
Correct. this is just to make set user's role and therefore permissions Please post part of the schedule log where it says "user ...connecting ..." and the following 2 lines. : Sorry I did forget to mention that I added 24x7 as a user to the 'user' file. : Since I am running in in 'nogui' mode, I manually edited the file... but I : ended up creating one on the windows side and porting it over. : It looks to just be "user role" nothing more ?
|
|
Thu Sep 28, 2006 3:08 pm |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
: Correct. this is just to make set user's role and therefore permissions : Please post part of the schedule log where it says "user ...connecting : ..." and the following 2 lines. For unix : All schecduler.log shows is : 09/28/2006 03:16:00 PM 2 null null 24x7 Scheduler 24x7 Scheduler starting... 09/28/2006 03:16:09 PM 2 null null 24x7 Scheduler User itgen connected from 10.206.0.82 09/28/2006 03:16:09 PM 3 null null 24x7 Scheduler Authorization for user itgen has failed 09/28/2006 03:16:12 PM 2 null null 24x7 Scheduler 24x7 Scheduler terminating... debug.log shows: 2006-09-28 15:16:09,253 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 1 2006-09-28 15:16:09,277 [Thread-4] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Connect called itgen _JAVA_ ***** 2006-09-28 15:16:09,318 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 3 2006-09-28 15:16:09,398 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 6 2006-09-28 15:16:09,398 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - Method name opensession 2006-09-28 15:16:09,398 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - methodSignature LSSSS 2006-09-28 15:16:09,398 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - arguments 4 2006-09-28 15:16:09,399 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - method params [10.206.0.114, itgen, 34G555g!, *****] 2006-09-28 15:16:09,399 [Thread-3] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Open session called 10.206.0.114 itgen 34G555g! 2006-09-28 15:16:09,400 [Thread-3] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - hasRemoteControlAccess: /usr/local/24x7/rcontrol.pl 2006-09-28 15:16:09,466 [Thread-3] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - authNativeUser: ftp_connect_failed: null This is interesting, because the server it is connectiong to & from is 10.206.0.82 .. the WINDOWS server i am using java 24x7 on is .114, as seen in the debug log ... Is the ip address stored anywhere else ? When I try all this on windows... the login page just keeps trying to connect .. no error message ... no timeout ..
|
|
Thu Sep 28, 2006 3:21 pm |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
I did a grep for the ip address, and I can't see it hardcoded in any file under the webapp or 24x7 .. i have no idea why debug.log shows the connection coming from 10.206.0.114 while the scheduler.log shows the (correct) 10.206.0.82
|
|
Thu Sep 28, 2006 3:29 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
What else do you see in the debug.log? Is the tracing option enabled in preferences.xml? : I did a grep for the ip address, and I can't see it hardcoded in any file : under the webapp or 24x7 .. i have no idea why debug.log shows the : connection coming from 10.206.0.114 while the scheduler.log shows the : (correct) 10.206.0.82
|
|
Thu Sep 28, 2006 3:48 pm |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
This is a full debug.log from startup, connection attempt, and exit... with trace enabled : 2006-09-29 07:11:26,176 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - main(...) : start 2006-09-29 07:11:26,178 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : start 2006-09-29 07:11:26,185 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : creating business objects 2006-09-29 07:11:27,128 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : creating UI controller 2006-09-29 07:11:27,831 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : initializing business objects 2006-09-29 07:11:27,900 [main] DEBUG com.softtreetech.jscheduler.business.preferences.AbstractPrefDatabase - Creating backup for preferences file preferences.xml 2006-09-29 07:11:27,922 [main] DEBUG com.softtreetech.jscheduler.business.preferences.AbstractPrefDatabase - Preferences file has been copied to preferences.bak 2006-09-29 07:11:28,594 [main] DEBUG com.softtreetech.jscheduler.business.jobtemplates.JobTemplateSetImpl - loadDescription: path: Template/test_template.ini 2006-09-29 07:11:28,723 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : loading job db 2006-09-29 07:11:28,765 [main] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - buildIndex(): totalRecordsNumber: 7 2006-09-29 07:11:28,765 [main] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - buildIndex(): deletedRecordsNumber: 2 2006-09-29 07:11:28,931 [main] DEBUG com.softtreetech.jscheduler.JSchedulerStarter - startup() : ready to run jobs 2006-09-29 07:11:50,589 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 1 2006-09-29 07:11:50,607 [Thread-3] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Connect called itgen _JAVA_ ***** 2006-09-29 07:11:50,649 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 3 2006-09-29 07:11:50,729 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - requestId 6 2006-09-29 07:11:50,730 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - Method name opensession 2006-09-29 07:11:50,730 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - methodSignature LSSSS 2006-09-29 07:11:50,730 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - arguments 4 2006-09-29 07:11:50,730 [Thread-8] DEBUG com.softtreetech.jscheduler.business.remotecontrol.SocketConnection - method params [10.206.0.114, itgen, 34G555g!, *****] 2006-09-29 07:11:50,731 [Thread-4] DEBUG com.softtreetech.jscheduler.business.remotecontrol.RemoteOperationsImpl - Open session called 10.206.0.114 itgen 34G555g! 2006-09-29 07:11:50,731 [Thread-4] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - hasRemoteControlAccess: /usr/local/24x7/rcontrol.pl 2006-09-29 07:11:51,354 [Thread-4] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - authNativeUser: ftp_connect_failed: null 2006-09-29 07:11:54,908 [Thread-6] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - save() : start 2006-09-29 07:11:54,908 [Thread-6] DEBUG com.softtreetech.jscheduler.business.null - shutdown() start 2006-09-29 07:11:54,909 [Thread-6] DEBUG com.softtreetech.jscheduler.business.runner.JobExecutorImpl - killAll() start 2006-09-29 07:11:54,917 [Thread-6] DEBUG com.softtreetech.jscheduler.business.null - shutdown() end
|
|
Fri Sep 29, 2006 7:13 am |
|
 |
E Davis
Joined: 22 Sep 2006 Posts: 12
|
|
Re: Java web interface on linux |
|
I think I see what it is ... that ip address is also my local ip .. this is the openSession call, and its passing my ip address as the originator.
The only relevent thing out of the logs looks to be :
[Thread-4] DEBUG com.softtreetech.jscheduler.business.runner.security.SecurityService - authNativeUser: ftp_connect_failed: null
In tracing the source of the auth failure .. its during the userSession.openSession();
|
|
Fri Sep 29, 2006 7:21 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7968
|
|
Re: Java web interface on linux |
|
That's exactly where the problem is. You have "FTP" selected as the authentication method in the preferences. Yet ftpd daemon is not running or cannot be contacted and as a result the user/password cannot be validated. The connection gets refused as "unknown user." The solution: do either of the following: 1. Start ftpd on this machine or 2. Choose "PAM" authentication method and configure PAM as described in section 6 of readme.txt : I think I see what it is ... that ip address is also my local ip .. this is : the openSession call, and its passing my ip address as the originator. : The only relevent thing out of the logs looks to be : [Thread-4] DEBUG : com.softtreetech.jscheduler.business.runner.security.SecurityService - : authNativeUser: ftp_connect_failed: null : In tracing the source of the auth failure .. its during the : userSession.openSession();
|
|
Fri Sep 29, 2006 7:47 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|