Skip to main content
Question

Error retrieving Job History

  • October 13, 2021
  • 5 replies
  • 195 views

swach
Contributor
Forum|alt.badge.img+6
  • Contributor

My FME Server dashboards are not working. When I try to run JobHistoryStatisticsGathering.fmw, it fails with:

Terminator (TestFactory): Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.

Error Message: HTTP/1.1 404 - http://v01w-app-p0427/fmeserver/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'

What file is it looking for?

 

5 replies

Forum|alt.badge.img+2

Hi @swach​ 

The JobHistoryStatisticsGathering.fmw contains an HTTPCaller which is making a request to one of FME Server's REST API endpoints to retrieve the complete job history. It looks like the problem, in this case, is a mistake in the URL is called as it should not contain /fmeserver/.

 

In the workspace, the HTTPCaller is contained within the custom transformer JobHistoryReader. This transformer takes the FME Parameter $(FME_SERVER_WEB_URL) as the Server URL and this is used to form the beginning of the request URL. Have you made any modifications to the workspace, specifically the FME Server URL value in that custom transformer?

 


swach
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 21, 2021

Thanks, I was trying to run it locally and that fixed it. My other server is having the same issue but when I fix the url it still doesn't work:

Terminator (TestFactory): Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.

Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'

Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.

Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'


sunsilk11
Contributor
Forum|alt.badge.img+6
  • Contributor
  • October 13, 2023
swach wrote:

Thanks, I was trying to run it locally and that fixed it. My other server is having the same issue but when I fix the url it still doesn't work:

Terminator (TestFactory): Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.

Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'

Terminator: Termination Message: 'Translation Terminated: There was an error getting job history.

Error Message: HTTP/1.1 401 - http://v01w-app-p0428/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'

Hi, I am also experiencing the same error as described above when running JobHistoryStatisticsGathering.

I am using FME Server 2021.2.3

The log contains:

2023-10-13 12:09:58 | JobHistoryReader_HTTPCaller (HTTPFactory): An error occurred while accessing the URL 'https://hostname/fmerest/v3/transformations/jobs/completed?limit=1000&offset=0'

It also shows error code 401

 

I am running workspace as admin

 

Any suggestion?


marias
Contributor
Forum|alt.badge.img+8
  • Contributor
  • September 23, 2024

I have the same problem in v.2024.0.1. Does anyone know a solution?


gistech_
Contributor
Forum|alt.badge.img+4
  • Contributor
  • December 18, 2024

Hi ​@sunsilk11 
It worth checking the creds used to run the schedule (DashboardStatisticsGathering). If for any reason the creds used to run the schedule expired, then it shows all the behavior you expressed here including returning 401

 

Anatoli


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings