You can see some errors in the <ServerNamer>_fmeprocessmonitorengine.log file in the resources\logs\engine\current folder (look at lines 14+):
Fri-10-Mar-2017 03:25:12 PM INFORM FME2016-2_Engine2 393558 : Commencing startup of process "FME2016-2_Engine2". This is attempt 5.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 FME 2017.0.0.0 (20170228 - Build 17259 - WIN64)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 FME Engine (node locked-crc)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Machine host name is: FME2016-2
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Operating System: Microsoft Windows Server 2012 Server 4.0 64-bit (Build 9200)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Copyright (c) 1994 - 2017, Safe Software Inc.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Safe Software Inc.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-24 FME2016-2_Engine1 FME_SHARED_RESOURCE_DIR is unset
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-24 FME2016-2_Engine1 FME_SHARED_RESOURCE_DIR has been changed and is now 'C:/FMEServerShare///resources/engine'
Fri-10-Mar-2017 03:25:13 PM INFORM Thread-26 FME2016-2_Engine2 FME_SHARED_RESOURCE_DIR is unset
Fri-10-Mar-2017 03:25:13 PM INFORM Thread-26 FME2016-2_Engine2 FME_SHARED_RESOURCE_DIR has been changed and is now 'C:/FMEServerShare///resources/engine'
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 Translation was SUCCESSFUL
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 Traceback (most recent call last):
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "<string>", line 5, in MF_Include_1489177542141
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "<string>", line 3, in ParamFunc
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "C:\FMEServerShare\resources\engine\Transformers\Tools.py", line 10, in <module>
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 import cx_Oracle
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 ImportError: No module named cx_Oracle
Fri-10-Mar-2017 03:25:42 PM INFORM FME2016-2_Engine1 393656 : Process "FME2016-2_Engine1" being restarted.
Fri-10-Mar-2017 03:25:42 PM INFORM FME2016-2_Engine1 393566 : Process "FME2016-2_Engine1" waiting for process output listener threads to terminate...
You can see some errors in the <ServerNamer>_fmeprocessmonitorengine.log file in the resources\logs\engine\current folder (look at lines 14+):
Fri-10-Mar-2017 03:25:12 PM INFORM FME2016-2_Engine2 393558 : Commencing startup of process "FME2016-2_Engine2". This is attempt 5.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 FME 2017.0.0.0 (20170228 - Build 17259 - WIN64)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 FME Engine (node locked-crc)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Machine host name is: FME2016-2
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Operating System: Microsoft Windows Server 2012 Server 4.0 64-bit (Build 9200)
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Copyright (c) 1994 - 2017, Safe Software Inc.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2 Safe Software Inc.
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-25 FME2016-2_Engine2
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-24 FME2016-2_Engine1 FME_SHARED_RESOURCE_DIR is unset
Fri-10-Mar-2017 03:25:12 PM INFORM Thread-24 FME2016-2_Engine1 FME_SHARED_RESOURCE_DIR has been changed and is now 'C:/FMEServerShare///resources/engine'
Fri-10-Mar-2017 03:25:13 PM INFORM Thread-26 FME2016-2_Engine2 FME_SHARED_RESOURCE_DIR is unset
Fri-10-Mar-2017 03:25:13 PM INFORM Thread-26 FME2016-2_Engine2 FME_SHARED_RESOURCE_DIR has been changed and is now 'C:/FMEServerShare///resources/engine'
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 Translation was SUCCESSFUL
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 Traceback (most recent call last):
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "<string>", line 5, in MF_Include_1489177542141
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "<string>", line 3, in ParamFunc
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "C:\FMEServerShare\resources\engine\Transformers\Tools.py", line 10, in <module>
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 import cx_Oracle
Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 ImportError: No module named cx_Oracle
Fri-10-Mar-2017 03:25:42 PM INFORM FME2016-2_Engine1 393656 : Process "FME2016-2_Engine1" being restarted.
Fri-10-Mar-2017 03:25:42 PM INFORM FME2016-2_Engine1 393566 : Process "FME2016-2_Engine1" waiting for process output listener threads to terminate...
Thank you i found it!
And its like i supposed: ImportError: No module named arcgisscripting
Do you know how to change the interpreter?
@larry is right about the log file, you will find it in the admin interface under Resources / Logs / engine / current.
You can use the excellent traceback module to include a detailed error message in the actual job log.
Here's an example shutdown script:
import traceback
import fme
try:
# Your code here
test = 1 / 0
except:
with open(fme.logFileName, 'a') as fmelog:
# Re-open FME log file in append mode
fmelog.write("An error occurred in the shutdown script:\n")
fmelog.write("-" * 75 + '\n')
fmelog.write('\n'.join(traceback.format_exc().splitlines()) + '\n')
fmelog.write("-" * 75 + '\n')
raise # Re-raise the original exception
Result from the end of the job log: