Support > Forums > OpenBots Server > Job Status shows "Failed"

Job Status shows "Failed"

Lakshmi S

  • Reporter
  • Calender Icon February 04,2021 at 3:31 AM

Hi,

I have scheduled a published automation (ie. Open Firefox Browser) on OB Server but the Job status shows "Failed". When I viewed the Job on OB Server, the message is "Job is created through internal system logic." May I know what does that mean? Any other reasons why an Automation Job can fail?

This forum has 36 topics, 151 replies, and was last updated 3 years ago by Ehtesham Abad

  • Participant
  • Calender Icon July 27,2022 at 7:52 PM

TopicDetailModel.Answer.Content

Lakshmi S

  • Participant
  • Calender Icon May 28,2021 at 11:08 AM

Thank you very much Nataly, everything is working perfectly now.

Lakshmi S

  • Participant
  • Calender Icon May 27,2021 at 9:11 PM

Hello Jonas!

If you are in version 1.5, then the error is caused because of OpenBots Server new requirements. In order to be able to call the credential commands or use the Active Directory agent credentials (which happens when a job runs) you will need to use an https connection. Meaning, you will need to bind a self-signed certificate to your OpenBots Server. This was added as a safety measure, to ensure credentials are always shared through a secure protocol.

You can find detailed documentation about OpenBots core components by enrolling to Academy. For example, we have a complete guide on Self Signed Certification creation and binding. To Access it, please navigate to OpenBots Academy > OpenBots Setup and Configuration > Self-Signed Certification Creation and Binding for Sandbox Environment (you will need to enroll to the course in order to access it)

Direct Link: Self-Signed Certification Creation and Binding for Sandbox Environment

Lakshmi S

  • Participant
  • Calender Icon May 27,2021 at 8:19 PM

Hi, When I run a job, it fails and as a message I get "Error calling GetCredential:" Agent's log is: 2021-05-27 17:09:38.859 -03:00 [ERR] Event Name: Job Execution | Log Message: Error occurred while executing the job; ErrorMessage = OpenBots.Service.API.Client.ApiException: Error calling GetCredential: at OpenBots.Service.Client.Manager.API.CredentialsAPIManager.GetCredentials(AuthAPIManager apiManager, String credentialId) at OpenBots.Service.Client.Manager.Execution.ExecutionManager.ExecuteJob() at OpenBots.Service.Client.Manager.Execution.ExecutionManager.NewJobsCheckTimer_Elapsed(Object sender, ElapsedEventArgs e)

Anyone could help me?

Lakshmi S

  • Participant
  • Calender Icon April 14,2021 at 5:25 PM

No problem! I'll send you an internal email to coordinate the meeting.

Lakshmi S

  • Participant
  • Calender Icon April 13,2021 at 7:10 PM

Hi Nataly, thanks for your help. My email is rodrigo.hurtado.a@gmail.com

Sorry i didn't reply to you before, the openbots "info" email was in the spam folder.

Lakshmi S

  • Participant
  • Calender Icon April 08,2021 at 5:51 PM

Hi Rodrigo,

If we are unable to track down these issues through your provided information, would you be available to join me in a meeting to investigate further? If so, please provide an email so we can coordinate internally.

Lakshmi S

  • Participant
  • Calender Icon April 08,2021 at 4:50 AM

Hi Nataly, agent server configuration was ever Enhanced Security Disable, in fact when i use this option, fill tha mask and ip, agent don't be able to connect to the server. THe jobs nevers run, same behavior.

I dont know what else to do...

Thanks.

Lakshmi S

  • Participant
  • Calender Icon April 07,2021 at 6:55 PM

Hi Rodrigo,

Thanks for all the shared information. Based on the logs you shared, the error could be caused because the wrong IP address is indicated. Please, check if the "Enhanced Security" field is enabled for your agent. You can check by using the "View" button to inspect your agent on server. If it is enabled, please follow these steps:

  • Disconnect Agent
  • Edit the agent on server and disable enhanced security
  • Connect Agent again

Test if you are able to run jobs now or if a new message is logged on the Agent logs.

If it isn't enabled, please double check that all required fields have been filled on both Agent and Server. I will take a further look into the logs if the issue persists.

Best regards

Lakshmi S

  • Participant
  • Calender Icon April 06,2021 at 5:07 PM

Hi Nataly, thanks for your reponse. About your reply:

  • Server, Studio and Agent are 1.4.0
  • Agent path is OpenBots_Agent_Data_Path=***MASKED_PATH***
  • In the logs folder exists a diary txt log file. Inside de files most repetitive message is "Event Name: Heartbeat | Log Message: Heartbeat Timer Elapsed"
  • The errors founded in logs files are these:

2021-04-01 15:17:47.198 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-01 15:17:47.612 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 0; Error Message = The URI prefix is not recognized. 2021-04-01 15:24:50.630 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-01 15:25:03.258 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = Missing required parameter 'agentID' when calling AgentsApi->ApiV1AgentsConnectPatch 2021-04-01 15:35:37.838 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-01 15:35:37.958 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = Missing required parameter 'agentID' when calling AgentsApi->ApiV1AgentsConnectPatch 2021-04-01 23:54:55.392 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-01 23:54:55.484 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = Missing required parameter 'agentID' when calling AgentsApi->ApiV1AgentsConnectPatch

2021-04-02 00:01:56.175 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-02 00:01:56.285 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = Missing required parameter 'agentID' when calling AgentsApi->ApiV1AgentsConnectPatch 2021-04-02 00:03:59.769 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-02 00:03:59.999 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = {"serviceErrors":["The IP address provided does not match this agent's IP address"],"errors":{},"type":null,"title":"Entity Operation Exception. The IP address provided does not match this agent's IP address","status":400,"detail":"The IP address provided does not match this agent's IP address","instance":null,"extensions":{}} 2021-04-02 00:04:34.677 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-02 00:04:34.791 -03:00 [ERR] Event Name: Connect | Log Message: Error occurred while connecting to the Server; Error Code = 400; Error Message = {"serviceErrors":["The IP address provided does not match this agent's IP address"],"errors":{},"type":null,"title":"Entity Operation Exception. The IP address provided does not match this agent's IP address","status":400,"detail":"The IP address provided does not match this agent's IP address","instance":null,"extensions":{}} 2021-04-02 00:05:58.858 -03:00 [INF] Event Name: Connect | Log Message: Attempt to connect to the Server 2021-04-02 00:05:59.069 -03:00 [INF] Event Name: Heartbeat | Log Message: Started Heartbeat Timer 2021-04-02 00:05:59.484 -03:00 [INF] Event Name: Long Polling | Log Message: Started Long Polling 2021-04-02 00:06:29.080 -03:00 [INF] Event Name: Heartbeat | Log Message: Heartbeat Timer Elapsed 2021-04-02 00:06:59.081 -03:00 [INF] Event Name: Heartbeat | Log Message: Heartbeat Timer Elapsed

Thanks in advance for your help.

Best regards.

You are not authorized to reply, please click here to login and add your reply to this topic.