SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job completed with exit code 126.

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job completed with exit code 126.
Author Message
owensjim



Joined: 08 Aug 2011
Posts: 49

Post Job completed with exit code 126. Reply with quote
I am having issues trying to correct this error condition and would appreciate some help.

I have the exit code set to 0.

command line = export HOSTNAME=tol5.ipayxepay.net;/home/einvoiceb2b/cgi-php/ei_batb2b_pw_extract.php

validated the userid and password with our systems guys.

job scheduler log:
21-Feb-2012 02:49:36 PM 2 5ou5AYjUgNmragQXMn/7WhhcR5A= 749 TOL_5 PW_Extract_Mon_Fri Remote job started.
21-Feb-2012 02:49:36 PM 2 5ou5AYjUgNmragQXMn/7WhhcR5A= 749 TOL_5 PW_Extract_Mon_Fri Agent "Tol5" contacted.
21-Feb-2012 02:49:38 PM 3 5ou5AYjUgNmragQXMn/7WhhcR5A= 749 TOL_5 PW_Extract_Mon_Fri Remote job failed. Job completed with exit code 126. This exit code does not satisfy job exit code condition. Job failed.
21-Feb-2012 08:01:00 PM 1 5ou5AYjUgNmragQXMn/7WhhcR5A= 749 TOL_5 PW_Extract_Mon_Fri Job has been disabled!
21-Feb-2012 02:49:39 PM 2 5ou5AYjUgNmragQXMn/7WhhcR5A= 749 TOL_5 PW_Extract_Mon_Fri Error message sent.

copied from the debug log:

2012-02-21 14:49:36,180 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.log.SysLogAdaptor - Syslog: invoked
2012-02-21 14:49:36,883 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.log.SysLogAdaptor - Syslog: invoked
2012-02-21 14:49:37,408 [AWT-EventQueue-0] DEBUG com.softtreetech.jscheduler.business.event.JobSchedulerImpl - Number of pending jobs: 168
2012-02-21 14:49:38,044 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.runner.RemoteJobRunner - runJob
com.softtreetech.jscheduler.common.SchedException: Job completed with exit code 126. This exit code does not satisfy job exit code condition. Job failed.
at com.softtreetech.jscheduler.business.agent.remote.RemoteAgentImpl.executeJob(Unknown Source)
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at com.softtreetech.jscheduler.business.agent.remote.RemoteAgentImpl_Stub.executeJob(Unknown Source)
at com.softtreetech.jscheduler.business.runner.RemoteJobRunner.runJob(Unknown Source)
at com.softtreetech.jscheduler.business.runner.AbstractJobRunner.runJobIgnoringErrorsIfNeeded(Unknown Source)
at com.softtreetech.jscheduler.business.runner.AbstractJobRunner.startExecution(Unknown Source)
at com.softtreetech.jscheduler.business.runner.AbstractJobRunner.execute(Unknown Source)
at com.softtreetech.jscheduler.business.runner.JobExecutorImpl.execute(Unknown Source)
at com.softtreetech.jscheduler.business.runner.JobExecutorImpl$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
2012-02-21 14:49:38,045 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.log.SysLogAdaptor - Syslog: invoked
2012-02-21 14:49:38,685 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.db.JobDbImpl - updateJob(JobProperties) : start
2012-02-21 14:49:38,686 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - update(...) : start
2012-02-21 14:49:38,686 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.db.drivers.file.FileJobDbStorage - update(...) : end
2012-02-21 14:49:38,687 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.db.JobDbImpl - updateJob(JobProperties) : end
2012-02-21 14:49:38,687 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.log.SysLogAdaptor - Syslog: invoked
2012-02-21 14:49:39,382 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - mail.smtp.auth=true
2012-02-21 14:49:39,385 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): Date: Tue, 21 Feb 2012 14:49:39 -0500 (EST)
2012-02-21 14:49:39,385 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): From: job.scheduler@XXXXX
2012-02-21 14:49:39,385 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): To: operations@XXXXX, jim.owens@XXXXX
2012-02-21 14:49:39,385 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): Subject: Message from 24x7 Scheduler - job "TOL_5 PW_Extract_Mon_Fri" event
2012-02-21 14:49:39,385 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): X-Mailer: 24x7 Scheduler
2012-02-21 14:49:39,386 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl(): account & password information is specified
2012-02-21 14:49:39,621 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.Mailer - sendEmailImpl - mail sent
2012-02-21 14:49:39,622 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.log.SysLogAdaptor - Syslog: invoked
2012-02-21 14:49:40,251 [Job #749 - TOL_5 PW_Extract_Mon_Fri] DEBUG com.softtreetech.jscheduler.business.queue.JobQueue - QUEUE_UNLOCKED
2012-02-21 14:49:40,537 [Job #749 - TOL_5 PW_Extract_Mon_Fri] ERROR com.softtreetech.jscheduler.business.runner.JobExecutorImpl - Job errors: Remote job failed. Job completed with exit code 126. This exit code does not satisfy job exit code condition. Job failed.
2012-02-21 14:49:40,942 [AWT-EventQueue-0] DEBUG com.softtreetech.jscheduler.business.event.JobSchedulerImpl - Number of pending jobs: 168
2012-02-21 14:49:44,479 [AWT-EventQueue-0] DEBUG com.softtreetech.jscheduler.business.event.JobSchedulerImpl - Number of pending jobs: 168
2012-02-21 14:49:54,505 [AWT-EventQueue-0] DEBUG com.softtreetech.jscheduler.business.event.JobSchedulerImpl - Number of pending jobs: 168
2012-02-21 14:50:00,011 [Timer-3070804] DEBUG com.softtreetech.jscheduler.business.queue.JobQueue - QUEUE_UNLOCKED
Tue Feb 21, 2012 6:39 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
The job setup is ok and starting ok. The job has been setup to expect standard exit code 0 as a successive exit code. But the PHP script launched from the job export HOSTNAME=tol5.ipayxepay.net;/home/einvoiceb2b/cgi-php/ei_batb2b_pw_extract.php is returning exit code 126 making the job fail. If you think exit code 126 is expected, set the job to accept that code as a successful exit code.
Wed Feb 22, 2012 1:45 am View user's profile Send private message
owensjim



Joined: 08 Aug 2011
Posts: 49

Post Reply with quote
Our systems guru has traced the problem to supplemental group memberships. How does job scheduler handle the supplemental group memberships? How can I get the job to pick up that information?
Tue Mar 13, 2012 3:44 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Reply with quote
When the scheduler launches a process on behave of some user, it receives GUI of the primary user group and sets that GUI id to the launched process. It has no idea about user's supplemental group memberships. I'm not sure anything can be done about that. I suggest creating a new user account, adding it to a group having all required privilege,s and the assigning that account to the job. In that case 1 group would be sufficient to run the process. Alternatively, adding the required privileges to the primary group, in which case no user account would be required.
Tue Mar 13, 2012 4:25 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.