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

Job Status shows "Failed"

Rotfcoy

  • 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 65 topics, 191 replies, and was last updated 2 months ago by Ghouse Shaik

Jonas Eduardo Bini

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

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

Nataly Alvarado...

  • 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

Jonas Eduardo Bini

  • 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?

Nataly Alvarado...

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

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

Rodrigo Hurtado

  • 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.

Nataly Alvarado...

  • 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.

Rodrigo Hurtado

  • 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.

Nataly Alvarado...

  • 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

Rodrigo Hurtado

  • 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=C:\Users\Administrator\AppData\Local\OpenBots Inc\OpenBots Agent
  • 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.

Nataly Alvarado...

  • Participant
  • Calender Icon April 05,2021 at 7:30 PM

Hello Rodrigo,

I would like to clarify some points and make sure I have all the information. First, please let me know the version of Server and Studio that you have installed on your machine. One of the new features in server v.1.4.0, is the ability to create Agent groups. This feature allows you to create a schedule and assign it to a group of agents, where the first available agent will pick it up. Hence, the "Assigned" tag was added when a new job is created, to indicate that it has been assigned to an agent. Normally, states should go as follows: New > Assigned > InProgress > Completed. The post mentions that there are no logs on the file indicated on Agent, this is because when the job's status shows as "Failed" it means that the job was not able to execute, therefore no logs are created for the job. Instead, as a safety measure the Agent should log the failure logs at the following location: C:\Users%user%\AppData\Local\OpenBots Inc\OpenBots Agent\Logs. Where "%user%" refers to the user under which OB is installed. You can check the path by referencing the Environment Variable Path provided for �OpenBots_Agent_Data_Path". Please, feel free to share the obtained logs through this forum to help you troubleshoot.

Best regards.

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