Skip to main content
Question

Unable to run a shell script with System Caller


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

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?

11 replies

david_r
Celebrity
  • 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
  • June 10, 2020
david_r wrote:

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
  • 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+7

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
  • 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
  • October 5, 2020
xtian79 wrote:

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
  • 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
  • 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.


nathanatsafe wrote:

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+23
  • Influencer
  • 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
  • November 9, 2022

Check this solution


Reply


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