SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Maximum supported encryptted value length

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Maximum supported encryptted value length
Author Message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Maximum supported encryptted value length Reply with quote
I have installed 24x7 on a windows 2003 server as master and windows XP as agent. Both are evaluation versions. I created a job (JAL script). I tried to run the job on the agent running on windows XP. The job failed. The reason shown on agent log is as follows:

"Create process error. Extended error: RunAs error: Maximum supported encryptted value length is 260; you got 276"

The job runs fine if we run it on the master installed on the same windows xp machine.

Please suggest a solution at the earliest.
Thu Oct 21, 2010 7:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
This sounds like the command line for the job is very long. Please change the job type from Program Type to Script, choose Batch/shell script type and in the job script paste the same command. That method should allow you to run commands of any length supported by the operation system.
Thu Oct 21, 2010 9:15 am View user's profile Send private message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Reply with quote
The job type was already Script. I chose Batch/Shell script and then pasted JAL scripts writtent. Tried to run the job on the agent giving the local administrator login and password and I am getting the following error:

Create process error. Extended error: Error #1385: Logon failure: the user has not been granted the requested logon type at this computer.

Note: User account running RunAs must be assigned "Act as part of the operating system" rights and also have "Create a token object" and "Replace a process level token" rights. User account used to run the process must be assigned "Log on as a batch job" rights/ After correcting these permissions, don't forget to restart the affacted system.

Please suggest where these permissions can be given.
Fri Oct 22, 2010 1:17 am View user's profile Send private message
SysOpJ



Joined: 20 Aug 2010
Posts: 95

Post Reply with quote
These rights are managed either in active directory or as part of your local machine policies. Your sysadmin can tell you which you're using.

Here's an example of how to set up the "Act as part of the operating system" user right on Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2.

http://technet.microsoft.com/en-us/library/cc784323(WS.10).aspx

There are similar documents for other Windows operating systems.

You could also check these locations in our support forum:
http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=21778&highlight=act+part+operating+system
http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=22464&highlight=act+part+operating+system
http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=22870&highlight=act+part+operating+system
http://www.softtreetech.com/support/phpBB2/viewtopic.php?t=22879&highlight=act+part+operating+system
Fri Oct 22, 2010 8:48 am View user's profile Send private message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Reply with quote
Thank you. Now after changing the local machine policies I am able to run command likes cmd /C dir > dir.txt on the remote agent. However, my original job was written in JAL and it has about 30 lines and I was asked to change the job type to Script and then Batch/shell. How can I paste scripts written in JAL under Batch/shell. It doesn't work. Kindly note that this was suggested to resolve the problem of getting the error message "Create process error. Extended error: RunAs error: Maximum supported encryptted value length is 260; you got 276"
Fri Oct 22, 2010 10:45 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
I'm sorry, it wasn't clear from your message that you were attempting to run a JAL based script. I assumed you were referring to a regular command line job with a long list of parameters and that's why I suggested converting it to a batch/shell script. Please disregard the previous suggestion; it is not applicable to JAL.

Please provide more details about the agent setup and job script. How long is the path to the agent installation folder?
Fri Oct 22, 2010 7:28 pm View user's profile Send private message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Reply with quote
We are using 24x7 evaluation version 4.4. Our master is running on windows 2003 and agent is running on windows xp in guy mode by running agent.bat. The job is to check whether certain folders exist and to rename and move and copy certain files. The job also does ftping of certain files from a hp ux machine to local pc. Job is written in JAL.

Both agent and master are installed in the default folder, that is, c:\program files\24x7scheduler.
Sat Oct 23, 2010 1:59 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
Does the error occur during the script execution or on the job startup? If in the script, which specific code line is triggering that error?

Thanks
Sun Oct 24, 2010 11:04 am View user's profile Send private message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Reply with quote
It is during the start up of the script. I created a test job with just one line

Dim yesterday date

and I got the following error:


24-Oct-2010 10:25:24 PM 3 null 44 TEST-maximum supported Create process error. Extended error: RunAs error: Maximum supported encryptted value length is 260; you got 276.
Sun Oct 24, 2010 2:26 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
Please move the agent from C:\Program Files\24x7_Scheduler to c:\agent folder.
This will shorten all command lines and parameters and allow you to run JAL scripts remotely.
Tue Oct 26, 2010 9:12 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
Just in case, if you move the agent to a different folder and you setup the agent to run as a Windows service, you will need to reinstall the service from the new folder.
Tue Oct 26, 2010 9:15 am View user's profile Send private message
iqbal



Joined: 16 Sep 2010
Posts: 56

Post Reply with quote
Thank you.

It works fine after reinstalling and changing the folder to C:\24x7. I had to create a folder 'Queue' under C:\24x7
Tue Oct 26, 2010 1:53 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
Glad you were able to workaround this issue. Here is a tracking issue for an enhancement for supporting longer path values #24x7-11996 We expect this enhancement to be available in the next maintenance release
Tue Oct 26, 2010 11:59 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
Page 1 of 1

 
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.