GPService Crashes after it succeeds, can't get results data

898
10
07-21-2011 02:26 PM
S_Ector
New Contributor
I'm running a simple shapefile copy script that takes an input file path and copies the shapefile.  The script runs fine and does the copy.  The output file ends up in the jobs directory.  However, after the copy succeeds, then the service crashes and returns a failed status:

Job ID: j135a06a5f70c4f2bb7d33839d51c4bf7

Job Status: esriJobFailed

Job Messages:

    * esriJobMessageTypeInformative: Submitted.
    * esriJobMessageTypeInformative: Executing...
    * esriJobMessageTypeInformative: Executing (GetShapefileScript): GetShapefileScript e:\carbon\data\Skattebo.shp #
    * esriJobMessageTypeInformative: Start Time: Thu Jul 21 15:15:58 2011
    * esriJobMessageTypeInformative: Running script GetShapefileScript...
    * esriJobMessageTypeInformative: Completed script GetShapefileScript...
    * esriJobMessageTypeInformative: Succeeded at Thu Jul 21 15:15:58 2011 (Elapsed Time: 0.00 seconds)
    * esriJobMessageTypeError: Failed.
    * esriJobMessageTypeError: Execution of job j135a06a5f70c4f2bb7d33839d51c4bf7 failed because of crash or termination of the server object.


The log files in Server Manager have this:

WARNING Execution of job j135a06a5f70c4f2bb7d33839d51c4bf7 failed because of crash or termination of the server object. 2011-07-21 15:16:04 test/myToolbox.GPServerJobScheduler GIS2 
ERROR Container process 3892 has crashed on machine gis2. 2011-07-21 15:16:01 test/myToolbox.GPServerSync

Both the inputs and outputs are on the local machine, so no timeout or firewall issues.  Has anyone seen this issue before?

Thanks
0 Kudos
10 Replies
MichaelFaulcon
New Contributor
Any updates on this issue?
0 Kudos
ScottDavis
Occasional Contributor
Did you ever get this problem resolved? I'm having the same issue.
0 Kudos
RyanTwilley
New Contributor
Was anyone able to clear this up? I'm walking the same path right now and it would be great to get some pointers as to what may be going on
0 Kudos
LucaSimone
New Contributor III
Same problem here, after months of production, 2 days ago my SaveToPDF geoprocessig tool stops working.

The output isn't particurarly helpful:


esriJobMessageTypeInformative: Submitted.
esriJobMessageTypeInformative: Executing...
esriJobMessageTypeInformative: Executing (SaveToPDF): SaveToPDF 717114.646155556 95713.1951004844 717241.146155556 95839.6951004844 21781 D:\gis\Layouts base.mxd 1000 true titolo C:\Users\ARCGIS~1\AppData\Local\Temp\gisweb_gpserver\j558cd0f1f68349e29b6935e3ec68e32d\scratch\Output.pdf "mappa catastale, particelle, copertura del suolo"
esriJobMessageTypeInformative: Start Time: Fri Apr 20 13:16:48 2012
esriJobMessageTypeInformative: Executing (SaveToPDF): SaveToPDF 717114.646155556 95713.1951004844 717241.146155556 95839.6951004844 21781 D:\gis\Layouts base.mxd 1000 true titolo C:\Users\ARCGIS~1\AppData\Local\Temp\gisweb_gpserver\j558cd0f1f68349e29b6935e3ec68e32d\scratch\Output.pdf "mappa catastale, particelle, copertura del suolo"
esriJobMessageTypeInformative: Start Time: Fri Apr 20 13:16:48 2012
esriJobMessageTypeInformative: Running script SaveToPDF...
esriJobMessageTypeInformative: Collecting input parameters
esriJobMessageTypeInformative: Processing Map Extent
esriJobMessageTypeInformative: Setting scale to: 1000.0
esriJobMessageTypeInformative: Saving as PDF
esriJobMessageTypeError: Failed.
esriJobMessageTypeError: Execution of job j558cd0f1f68349e29b6935e3ec68e32d failed because of crash or termination of the server object.
esriJobMessageTypeInformative: Completed script SaveToPDF...
esriJobMessageTypeInformative: Succeeded at Fri Apr 20 13:16:56 2012 (Elapsed Time: 8.00 seconds)
esriJobMessageTypeInformative: Succeeded at Fri Apr 20 13:16:56 2012 (Elapsed Time: 8.00 seconds)


Any ideas?
0 Kudos
ScottDavis
Occasional Contributor
Check the server logs through manager. They usually provide the python exception.
0 Kudos
DanDeneau
New Contributor III
I'm running into the same error when trying to export a map to pdf. The code works only when I don't have any layers with external data sources.

However, when I take some simple python code that works (used in a toolbox/geoprocessing service)...and simply add an "import urllib2" statement at the top....this alone causes the "failed because of crash or termination of the server object" error. Why won't it allow me to import a normal python library?

I've checked the logs, and no help 😞

Any python experts/ESRI staff have any ideas?
0 Kudos
HaroldBostic
Occasional Contributor II
I'm having the same issue with a tool layer with Raster Output.  Anybody have a clue why this is happening?
0 Kudos
HaroldBostic
Occasional Contributor II
Give credit to @jharpster

That one is because gp_services don't like to be in AGS subfolders. Put it at the root and everything is happy. #esri
DeeptiPuri
New Contributor
I am having this error randomly too. The installation of ArcGIS Server is under IT control. What else can be done? - Thanks
0 Kudos