SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Error running local jobs as if remote agent
Goto page Previous  1, 2, 3  Next
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Error running local jobs as if remote agent
Author Message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Any luck?
Wed Jul 25, 2007 5:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
You mean finding the place where it could be changed? No I didn't find it, I can send it back to development. in mean time I suggest using the workaround described in the previous message.
Wed Jul 25, 2007 6:22 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
The workaround? You mean not using the web console to modify?
Wed Jul 25, 2007 6:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Hmm... I don't see one of the posting made yesterday.
Wed Jul 25, 2007 7:25 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Here is the workaround I was talking about.

1. in the console directory find file jobWizard/saveJob.jsp and open it in notepad
2. Search for text "// fix shared properties sensitive to schedule type". Insert the following text above this line
Code:
if ("LOCAL".equals(attrs.getHOST())
   attrs.setHOST("");


3. Save changes
Wed Jul 25, 2007 7:34 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Ok, so the area now reads


String ChangeFolderErrorStr = "";
String jobID = new String(attrs.getID());
try
{
if ("LOCAL".equals(attrs.getHOST())
attrs.setHOST("");
// fix shared properties sensitive to schedule type
String recursionType = new String();
String scheduleType = new String(attrs.getSCHEDULE_TYPE());
String valueList = new String();
if ("T".equals(scheduleType))
Wed Jul 25, 2007 7:38 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
When I try to save the offending job in the web console, i get the attached message, I can't resize the window or select the text so thats all I can see

Wed Jul 25, 2007 7:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Closing parenthesis is missing in the first line, there should 3 at the end of the line.

Code:
if ("LOCAL".equals(attrs.getHOST()))

Wed Jul 25, 2007 7:50 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Ok, adding the bracket makes it compile ok but that doesn't change the behaviour of the job. It still fails on run with
26/07/2007 12:13:56 2 222 0 Run log parser Failed to execute remote job. Agent LOCAL connection refused.

I've restarted the service, changed the job in the web console to least busy and back to local.
Wed Jul 25, 2007 8:16 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
Please try changing this line to

Code:
if ("LOCAL".equalsIgnoreCase(attrs.getHOST()))


This should always convert LOCAL to an empty string including cases when "local" is not yet in converted to upper case.

You don't need to restart any service after this change, just edit the job using web console and save changes. On every save it will now check for all versions of LOCAL value and substitute it with an empty string.
Wed Jul 25, 2007 10:09 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Ok, that gets past the host error. Now I get

26/07/2007 14:32:51 2 222 0 Run log parser Logon failed. Return code: 1326 - Logon failure: unknown user name or bad password.

Is this possibly related to the multiplatform version using only OS security (we're using the windows version)? The account I'm logged into the web console works fine, it's a 24x7 account that doesn't exist as a windows account.
Wed Jul 25, 2007 10:36 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
Works fine apart from this error should I say
Wed Jul 25, 2007 10:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
The console always sets the jobs to run under specific user account. For the account, by default it enters the logon name that you specify on the console's logon page. You can override this account using Run As button in the wizard.

To avoid changing the account properties manually, setup and use accounts in 24x7 whose names match your domain accounts or local accounts, for example MyDomain\MyName or .\MyName

Please make sure the used accounts have "Logon as a batch job" system privilege and the 24x7 service account has "run as part of operation system" privilege.
Wed Jul 25, 2007 10:55 pm View user's profile Send private message
LeeD



Joined: 17 May 2007
Posts: 311
Country: New Zealand

Post Reply with quote
What about script jobs? They don't have a runas button; what is the difference in what context they run in?
Wed Jul 25, 2007 11:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Reply with quote
In Windows version script jobs always run under the service account. To run them under another user account you can start them from command line or from another job using RunAsUser with a command line like 24x7 /JOB. You can also use RunAs.exe command line utility with 24x7 /JOB command.

In the Multi-platform version the scheduler can run job of any type using different user account, e.g. the Run AS button and functionality is available for all job types.
Wed Jul 25, 2007 11:26 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.