SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running other applications from 24X7

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running other applications from 24X7
Author Message
MJ Thompson



Joined: 19 Apr 2004
Posts: 6

Post Running other applications from 24X7 Reply with quote

We've installed 24X7 on a new server and are having
problems with jobs that run other applications
(using RunAsUser).

The error message is as follows:
"The application failed to initialize properly
(0xc0000142). Click on OK to terminate the
application."

These jobs are currently being run on another server
with no problems. The user permissions are the
same on both servers. Any thoughts on what else
we should check? Thanks.

Mon Apr 19, 2004 11:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

Please check you if you have the same system search PATH and also compare values of other environment variables.

Also, try running something simple like Notepad to see if is a common problem or a problem specific to your applications.

: We've installed 24X7 on a new server and are having
: problems with jobs that run other applications
: (using RunAsUser).

: The error message is as follows: "The application failed to initialize
: properly
: (0xc0000142). Click on OK to terminate the
: application."

: These jobs are currently being run on another server
: with no problems. The user permissions are the
: same on both servers. Any thoughts on what else
: we should check? Thanks.

Mon Apr 19, 2004 12:50 pm View user's profile Send private message
MJ Thompson



Joined: 19 Apr 2004
Posts: 6

Post Re: Running other applications from 24X7 Reply with quote

: Please check you if you have the same system search PATH and also compare
: values of other environment variables.

: Also, try running something simple like Notepad to see if is a common problem
: or a problem specific to your applications.

We already tried the Notepad test and received the same
error. It appears to occur with any .exe file. I'll look
at the environment variables.

Mon Apr 19, 2004 1:09 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

Are there any related errors in the Windows NT system and application event logs?

: We already tried the Notepad test and received the same
: error. It appears to occur with any .exe file. I'll look
: at the environment variables.

Mon Apr 19, 2004 1:40 pm View user's profile Send private message
MJ Thompson



Joined: 19 Apr 2004
Posts: 6

Post Re: Running other applications from 24X7 Reply with quote

: Are there any related errors in the Windows NT system and application event
: logs?

Yes, the log reads "A required privilege is not held by the client."
We have the following set:
Log on as a batch job
Log on as a service
Log on locally

What's missing??

Mon Apr 19, 2004 2:12 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

Are you giving these privileges to the right user? Are you using local user or domain user to run jobs? Are you using admin user account to run the scheduler?

: Yes, the log reads "A required privilege is not held by the
: client."
: We have the following set: Log on as a batch job
: Log on as a service
: Log on locally

: What's missing??

Mon Apr 19, 2004 4:04 pm View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: Running other applications from 24X7 Reply with quote

: Are you giving these privileges to the right user? Are you using local user
: or domain user to run jobs? Are you using admin user account to run the
: scheduler?

Hi, i am currently experiencing the same problem.
I am running 24x7 on a server. My 24x7 script executes runs 2 external programs throughout its execution. One a Cognos Macro script and the other an emailing client.
When i run the job a few times i get the following error:
"Application popup: 24x7.exe - Application Error : The application failed to initialize properly (0xc0000142). Click on OK to terminate the application."

Another error that appears in the event log is:
"The server {785CB4D1-4675-11D6-8F22-0} did not register with DCOM within the required timeout."
This error might be related to the macro exporting a report into Excel.

I usualyt get a few of these DCOM errors without much of an effect on 24x7. However, once i get those application errors, the service stops running, and even though it still says 'started' in the services panel, it only starts working again after i restart the service.

Thanks.
Tim.

Tue Jun 22, 2004 9:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

Are you running JAL or VBScript?

Also
1. In the registry look under "HKEY_CLASSES_ROOT\CLSID\{785CB4D1-4675-11D6-8F22-0}\InprocServer32" key which program is registered as {785CB4D1-4675-11D6-8F22-0}
2. Try running this job manually and then after completion check in the Windows Task Manager (Processes tab) if it shows any traces of Cognos, Excel or other program that were not there before you ran the job.

: Hi, i am currently experiencing the same problem.
: I am running 24x7 on a server. My 24x7 script executes runs 2 external
: programs throughout its execution. One a Cognos Macro script and the other
: an emailing client.
: When i run the job a few times i get the following error: "Application
: popup: 24x7.exe - Application Error : The application failed to initialize
: properly (0xc0000142). Click on OK to terminate the application."

: Another error that appears in the event log is: "The server
: {785CB4D1-4675-11D6-8F22-0} did not register with DCOM within the required
: timeout."
: This error might be related to the macro exporting a report into Excel.

: I usualyt get a few of these DCOM errors without much of an effect on 24x7.
: However, once i get those application errors, the service stops running,
: and even though it still says 'started' in the services panel, it only
: starts working again after i restart the service.

: Thanks.
: Tim.

Tue Jun 22, 2004 10:45 pm View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: Running other applications from 24X7 Reply with quote

: Are you running JAL or VBScript?

: Also
: 1. In the registry look under
: "HKEY_CLASSES_ROOT\CLSID\{785CB4D1-4675-11D6-8F22-0}\InprocServer32"
: key which program is registered as {785CB4D1-4675-11D6-8F22-0}
: 2. Try running this job manually and then after completion check in the
: Windows Task Manager (Processes tab) if it shows any traces of Cognos,
: Excel or other program that were not there before you ran the job.

Im using JAL

Tue Jun 22, 2004 10:55 pm View user's profile Send private message
Tim



Joined: 09 Oct 2001
Posts: 36

Post Re: Running other applications from 24X7 Reply with quote

I have just been testing this out. It seems that everything works fine when 24x7 is not running as a service.
The 24x7job executes the macro script which exports to excel perfectly, and emails the notification wihtout any problems.

It is when i turn the service back on. THat whenever the 24x7 job runs, i get that DCOM error, and the excel export runs, but fails to change update the file.
the 24x7 Application error then comes up after running the reports a few times.

any ideas?

Wed Jun 23, 2004 12:50 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

It probaly fails because of some networking issues (no permission or access).
Don't run the service using LocalSystem account. Use domain admin or other administrative account for that purpose.

: I have just been testing this out. It seems that everything works fine when
: 24x7 is not running as a service.
: The 24x7job executes the macro script which exports to excel perfectly, and
: emails the notification wihtout any problems.

: It is when i turn the service back on. THat whenever the 24x7 job runs, i get
: that DCOM error, and the excel export runs, but fails to change update the
: file.
: the 24x7 Application error then comes up after running the reports a few
: times.

: any ideas?

Wed Jun 23, 2004 8:12 am View user's profile Send private message
Anand



Joined: 29 Jul 2004
Posts: 1

Post Re: Running other applications from 24X7 Reply with quote

: It probaly fails because of some networking issues (no permission or access).
: Don't run the service using LocalSystem account. Use domain admin or other
: administrative account for that purpose.
It's the desktop heap problem..
See for more details:
http://www.ss64.com/orasyntax/desktopheap.html
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q126962

In the registry
HKLM\System\CurrentControlSet\Control\Session Manager\SubSystems
"Windows" Key
Change the value from "...SharedSection=1024,3072,512..."
to
"...SharedSection=1024,3072,1024..." and reboot the machine
Read the above sites as it has a pretty descent explanation.

regards
Anand

Thu Jul 29, 2004 12:34 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Running other applications from 24X7 Reply with quote

Thanks for this info. It might be helpfull to other users.

: It's the desktop heap problem..
: See for more details: http://www.ss64.com/orasyntax/desktopheap.html
: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q126962

: In the registry
: HKLM\System\CurrentControlSet\Control\Session Manager\SubSystems
: "Windows" Key
: Change the value from "...SharedSection=1024,3072,512..."
: to
: "...SharedSection=1024,3072,1024..." and reboot the machine
: Read the above sites as it has a pretty descent explanation.

: regards
: Anand

Thu Jul 29, 2004 9:10 am 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.