Question

Error retrieving Job History

  • 13 October 2021
  • 3 replies
  • 62 views

Badge +5

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?

 


3 replies

Badge +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?

 

Badge +5

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'

Badge +6

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?

Reply