Author |
Message |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
Maximum supported encryptted value length |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
|
|
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 |
|
 |
SysOpJ
Joined: 20 Aug 2010 Posts: 95
|
|
|
Fri Oct 22, 2010 8:48 am |
|
 |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
iqbal
Joined: 16 Sep 2010 Posts: 56
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
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 |
|
 |
|