Esri / product-on-demand

Production Mapping for ArcGIS Server Product On Demand (POD) sample app
Apache License 2.0
18 stars 6 forks source link

Gateway fails when 2 products have a Map Generation script with the same file name. #9

Open joesheffield opened 8 years ago

joesheffield commented 8 years ago

When 2 products have a Map Generation script with the same name we will occasionally get this error:

Error executing tool. Gateway Job ID: jc4b1914052a141f09dd7ffcfda548155 : The toolbox file D:\arcgisserver\MCS_POD\Products\US Topo No Imagery\USGS_POD_MapGenerator.pyt was not found. Traceback info: File "", line 136, in execute Failed to execute (Gateway). Failed to execute (Gateway).

Restarting the Gateway GP service works in the short term, the error will then come back eventually.

I don't know if this is ArcGIS Server issue or a Gateway bug. We need to investigate further to determine the cause.

hsjuc commented 8 years ago

Hi, I'm trying to set up the POD sample app. I get this error too.

Error executing tool. Gateway Job ID: j5997ea1deca7451f82641cef9fdb4274 : The toolbox file \WINSVR2012STD\arcgisserver\MCS_POD\Products\Fixed 25K\Fixed_MapGenerator.pyt was not found. Traceback info: File "", line 136, in execute Failed to execute (Gateway). Failed to execute (Gateway).

This error only occurs to Fixed 25K product. Restarting the Gateway GP service doesn't work.

The actual files I downloaded are a little bit different from the POD Deployment Guide document.

  1. Calculators service In the document (page 9),four REST endpoints are listed(CalculateExtent, CalculateScale, CalculatePageSize, and CalculateStripMap). However, I publish the Calculator.sd file and I only have three tasks in Calculators service. CalculateStripMap is missing. Is this the latest Calculator.sd file?

2.Fixed 25K product I follow the CTM POD setup document to setup Fixed 25K product sample. There are no Map Generator Python toolbox files under ~\CTM-master\Fixed 25K \Cartography\MapGeneration folder. The actual files are under ~\CTM-master\MapGeneration folder, named Fixed_MapGenerator.pyt, Fixed_MapGenerator.pyt.xml, and Fixed_MapGenerator.MapGenerator.pyt.xml. So I copy them to ~\arcgisserver\MCS_POD\Products\Fixed 25K folder and modify makeMapScript attribute to "Fixed_MapGenerator.pyt" for Fixed25KTable in the podconfig.js file. Am I using the correct Python toolbox files for Fixed 25K product?

Does the Map Generator Python toolbox setup related to the error? I restart the Gateway GP service after modifying podconfig.js, but still doesn't work.

Best Regards, Amy

joesheffield commented 8 years ago

Amy

Do you have the Esri Production Mapping for Server extension installed on your ArcGIS Server? This is most likely the cause. This is a separate extension and needs to be installed separately from ArcGIS Server.

As far as the Calculators Service is concerned we did make a change and all of the tools are within 1 service now.

On the Fixed 25K Product, you are correct.

Please check you install and let me know if you have the Esri Production Mapping for Server extension installed.

Thanks Joe Sheffield

From: hsjuc [mailto:notifications@github.com] Sent: Thursday, April 7, 2016 4:49 AM To: Esri/product-on-demand product-on-demand@noreply.github.com Cc: Joseph Sheffield JSheffield@esri.com Subject: Re: [Esri/product-on-demand] Gateway fails when 2 products have a Map Generation script with the same file name. (#9)

Hi, I'm trying to set up the POD sample app. I get this error too.

Error executing tool. Gateway Job ID: j5997ea1deca7451f82641cef9fdb4274 : The toolbox file \WINSVR2012STD\arcgisserver\MCS_POD\Products\Fixed 25K\Fixed_MapGenerator.pyt was not found. Traceback info: File "", line 136, in execute Failed to execute (Gateway). Failed to execute (Gateway).

This error only occurs to Fixed 25K product. Restarting the Gateway GP service doesn't work.

The actual files I downloaded are a little bit different from the POD Deployment Guide document.

  1. Calculators service In the document (page 9),four REST endpoints are listed(CalculateExtent, CalculateScale, CalculatePageSize, and CalculateStripMap). However, I publish the Calculator.sd file and I only have three tasks in Calculators service. CalculateStripMap is missing. Is this the latest Calculator.sd file?
  2. Fixed 25K product I follow the CTM POD setup document to setup Fixed 25K product sample. There are no Map Generator Python toolbox files under ~\CTM-master\Fixed 25K \Cartography\MapGeneration folder. The actual files are under ~\CTM-master\MapGeneration folder, named Fixed_MapGenerator.pyt, Fixed_MapGenerator.pyt.xml, and Fixed_MapGenerator.MapGenerator.pyt.xml. So I copy them to ~\arcgisserver\MCS_POD\Products\Fixed 25K folder and modify makeMapScript attribute to "Fixed_MapGenerator.pyt" for Fixed25KTable in the podconfig.js file. Am I using the correct Python toolbox files for Fixed 25K product?

Does the Map Generator Python toolbox setup related to the error? I restart the Gateway GP service after modifying podconfig.js, but still doesn't work.

Best Regards, Amy

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Esri_product-2Don-2Ddemand_issues_9-23issuecomment-2D206668066&d=CwMCaQ&c=n6-cguzQvX_tUIrZOS_4Og&r=jEBowKiPZTOWIX_7JhM-_68M3NT0ggOswponMY4aGt4&m=XA4TKkT6mgfPg3L9BzrGnuifRaZ4zMAj7b5-a99Xb6o&s=hcRrjbux7KHKuHOGvFT6Ekh7VKYfJKYZWfBOvPMIE5o&e=

hsjuc commented 8 years ago

Hi Joe,

I did have Production Mapping for Server installed (with the latest Patch 5) and authorized. Please help me resolve this problem, thanks!

Best Regards, Amy

hsjuc commented 8 years ago

Hi,

What Map Generator Python toolbox files are required to setup the Fixed 25K product? It seems that Fixed25K_MapGenerator.pyt, Fixed25K_MapGenerator.MapGenerator.pyt.xml and Fixed25K_MapGenerator.pyt.xml are not enough.

In the Fixed_MapGenerator.pyt file, CTM_Utilities module is imported. So I copy ~\CTM-master\MapGeneration\CTM_Utilities.py file to ~\arcgisserver\MCS_POD\Products\Fixed 25K folder. The error I originally asked was gone. However, I get another error:

Error executing tool. Gateway Job ID: j7e7c012c175b437c88e995f3619f96c2 : Unexpected Error: keep_mxd_backup Failed to execute (MapGenerator). Failed to execute (Gateway). Failed to execute (Gateway).

How to get rid of this error? Maybe the CTM-master.zip on GitHub is not the latest version for POD. Could you upload the whole Fixed 25K Product folder? Thanks!

Best Regards, Amy

wyliecoyote26 commented 7 years ago

I followed the installation instructions as well and unfortunately it did not work for me. Is there anyone that has successfully installed the POD example?