Comments and answers for "FME Server Python Error Logs" https://knowledge.亚搏在线safe.com/questions/41268/fme-server-python-error-logs.html The latest comments and answers for the question "FME Server Python Error Logs" Comment by clemensb on clemensb's answer https://knowledge.safe.com/comments/41312/view.html Very nice solution!

Wed, 15 Mar 2017 09:53:51 GMT clemensb
Answer by david_r https://knowledge.safe.com/answers/41273/view.html

@larry is right about the log file, you will find it in the admin interface underResources / Logs / engine / current.

You can use the excellenttracebackmodule 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:

Tue, 14 Mar 2017 15:39:44 GMT david_r
Comment by larry on larry's comment https://knowledge.safe.com/comments/41272/view.html Try this link: Using python with FME Server

Tue, 14 Mar 2017 15:34:35 GMT larry
Comment by clemensb on clemensb's answer https://knowledge.safe.com/comments/41271/view.html Thank you i found it!
And its like i supposed: ImportError: No module named arcgisscripting
Do you know how to change the interpreter?

Tue, 14 Mar 2017 15:21:48 GMT clemensb
Answer by larry https://knowledge.safe.com/answers/41269/view.html

You can see some errors in the _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 "
       
        ", line 5, in MF_Include_1489177542141 Fri-10-Mar-2017 03:25:42 PM INFORM Thread-24 FME2016-2_Engine1 File "
        
         ", 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
         
          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...
         
        
       
Tue, 14 Mar 2017 15:16:54 GMT larry