Skip to main content
Question

Unable to run a shell script with System Caller

  • June 10, 2020
  • 11 replies
  • 202 views

arthy
Contributor
Forum|alt.badge.img+8
  • Contributor
  • 101 replies

Hello,

I have the following command 

""\\folder\python.exe" "\\filepath\test.py""

that run perfectly with FME desktop.

When I try to run that ETL on FME server, I have the following error

SystemCaller: Failed to Execute `""\\folder_path\python.exe" "\\folder_path\test.py""'

I check and FME Server has the read/write permission on the folder folder_path.

How should I proceed to fix this?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

11 replies

david_r
Celebrity
  • 8391 replies
  • June 10, 2020

Why doubling the quotes? Have you tried simply:

"\\folder_path\python.exe" "\\folder_path\test.py"

arthy
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 101 replies
  • June 10, 2020

Why doubling the quotes? Have you tried simply:

"\\folder_path\python.exe" "\\folder_path\test.py"

Yes @david_r and it is not working either


david_r
Celebrity
  • 8391 replies
  • June 10, 2020

Can we assume that neither python.exe or the .py script file are located on a UNC path? If they are, you have to make sure that the Engine service is running as a domain user. See https://knowledge.safe.com/articles/362/workspace-fails-on-fme-server-when-using-unc-paths.html

If that's not the case, then also check the fmeprocessmonitorengine.log on the server for any additional messages.


nathanatsafe
Safer
Forum|alt.badge.img+9
  • Safer
  • 284 replies
  • June 15, 2020

This issue was resolved via a support ticket. We could not get to the bottom of the UNC path issue (which should work in theory with correct permissions for the FME Server Engine service account). However, placing the Python scripts in the FME Server Engine resources Python Plugins folder and importing 'test' within a PythonCaller worked for the customer.

Nathan


xtian79
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • October 5, 2020

I am suffering the same behavior in FME Server 2019.2. Which version did you use?


xtian79
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • October 5, 2020

I am suffering the same behavior in FME Server 2019.2. Which version did you use?

I am using local paths :(

 

That also count as UNC?


arthy
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • 101 replies
  • October 5, 2020

@xtian79​ 

I was using FMESERVER2018.

As you can see, to solve this issue, the python script was finally placed inside the FME Server Engine resources Python Plugins folder and was called inside a python caller using the import function.


kdrygalski
Contributor
Forum|alt.badge.img+2
  • Contributor
  • 7 replies
  • November 17, 2020

I've similar issue. I'd like to run bat file by System Caller. Bat file body is: "C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\python.exe" "C:\\py_script\\solar_vector_single.py" variable.

Get the message:

There is an error SystemCaller: Failed to Execute `"C:\\py_script\\solar_vector_single.bat"'

I used to run python scribt directly in FME earlier and It worked on FME Desktop. I need a Esri Python interpreter, can't change it on Server. Bat file is more elegnat but, doesnt work eaither.


  • 6 replies
  • March 3, 2022

This issue was resolved via a support ticket. We could not get to the bottom of the UNC path issue (which should work in theory with correct permissions for the FME Server Engine service account). However, placing the Python scripts in the FME Server Engine resources Python Plugins folder and importing 'test' within a PythonCaller worked for the customer.

Nathan

I am having the same issue as the author of this thread. Calling a python script (or a .bat which in turn references a python script) is working fine in FME desktop, but unable to execute via FME Server. Can anyone explain in a little more detail the above solution please? I have added the python script to the FME Server Engine resources Python Plugins folder as suggested, but unsure how I import the python script via the pythoncaller transformer. Thanks in advance


deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • 315 replies
  • November 9, 2022

I am having the same issue. The System Caller works on Workbench but not FME Server. We are running FME 2019 any suggestions?

 

The SystemCaller is running the following

 

""C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\python.exe" "D:/Safer Speeds/MobileSpeed/MobileSpeed_Maps.py" Sites""


xtian79
Contributor
Forum|alt.badge.img+6
  • Contributor
  • 34 replies
  • November 9, 2022

Check this solution