|
POST
|
Trying to get a GP service to run in 10.8 that was running in 10.6... spawning new thread from this in order to chase this in a different direction and for better visibility. Originally I had only this to go by: "Instance of Service Crashed.... Containing Process has Crashed" Now I am also seeing the following in the Windows event log: Faulting application name: ArcSOC.exe, version: 12.6.0.24234, time stamp: 0x5ee81bca
Faulting module name: MappingCore.dll, version: 12.6.0.24241, time stamp: 0x5f8883dd I noticed that my original 10.6 GP service was using arcpy.mp which is Pro/3.x. The 10.8 service, however, would run 2.7 although published from Pro. Did 10.6 do more behind the scenes here when publishing? I don't remember changing any ArcGIS Server settings to make this run, yet sys.path had all the correct environmental info in it. That was missing in 10.8. So I used the steps here to make this run in 3.x conda environment. But the service still crashes... it starts but never finishes. What could cause an error like this? Is it related to the arcpy.mp/arcpy.mapping compatibility?
... View more
05-10-2021
05:58 PM
|
0
|
5
|
4124
|
|
POST
|
Beginning to think this is a matter of Python 2.7/3.x. I may need to go back and review if I made any special accommodations in 10.6 to use 3.x. I see there are more options in 10.8.1 to select a Python version at the services level.
... View more
05-06-2021
04:34 PM
|
0
|
1
|
3515
|
|
POST
|
I've verified that registry has the right paths set for Python 2.7. E:\Python27\ArcGISx6410.8\Lib;E:\Python27\ArcGISx6410.8\DLLs;E:\Python27\ArcGISx6410.8\Lib\lib-tk
... View more
05-06-2021
03:11 PM
|
0
|
0
|
3565
|
|
POST
|
Migrating GP services from 10.6 to 10,8.1. Here is a case of a GP service being called from JSAPI that worked fine in 10.6 and now in 10.8.1 after migration fails with an error I haven't seen before: "Instance of Service Crashed.... Containing Process has Crashed" Full error message below although not much more helpful. There are no separate error logs as referenced in the message below. <Msg time="2021-05-06T14:50:09,366" type="SEVERE" code="7551" source="Server" process="9192" thread="26" methodName="" machine="< my server ...>" user="" elapsed="" requestID="4bdbfe27-59ad-4488-b2c2-57c776e75d0b">Instance of the service 'myservice.GPServer' crashed. Please see if an error report was generated in 'E:\arcgisserver\logs\........\errorreports'. To send an error report to Esri, compose an e-mail to ArcGISErrorReport@esri.com and attach the error report file.</Msg>
<Msg time="2021-05-06T14:50:15,950" type="SEVERE" code="7553" source="Server" process="9192" thread="26" methodName="" machine="< my server ...>" user="" elapsed="" requestID="4bdbfe27-59ad-4488-b2c2-57c776e75d0b">The containing process for 'myservice.GPServer' job 'jf94974a2dd8444cc8bb537d376dafcc9' has crashed.</Msg> I know that my Python code on server starts executing and reports status of "Executing" back to webpage. It also does some logging for me. But it doesn't finish. No amount of exception handling I have tried tells me where it fails and the usually helpful AGS output in /jobs/...../scratch/messages.xml isn't helping. It looks like this: <?xml version="1.0"?>
-<GPMessages xmlns:typens="http://www.esri.com/schemas/ArcGIS/2.6.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="typens:GPMessages">
-<GPMessages xsi:type="typens:ArrayOfGPMessage">
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessages">
-<GPMessages xsi:type="typens:ArrayOfGPMessage">
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
-<GPMessage xsi:type="typens:GPMessage">
<MessageType>0</MessageType>
<MessageCode>0</MessageCode>
</GPMessage>
</GPMessages>
</GPMessage>
</GPMessages>
</GPMessages> which I've also not seen before. Usually there are some familiar Python errors in there to launch you into debugging. Last week, I patched this for some other print service related issues, as mentioned in this thread. I found a technical article suggesting this may be caused if Python in (un)installed separately from ArcGIS. I installed Python along with ArcGIS Server but not in the default path. Before I start messing with registry, would this be expected behavior when having Python on D:\ or E:\? Also wouldn't I be seeing issues with other features of ArcGIS Server leveraging Python? Also the wrong path would keep Python from starting to run. Any feedback or insights into what my cause this error is appreciated
... View more
05-06-2021
03:02 PM
|
0
|
3
|
3573
|
|
POST
|
Thanks, Josh, I think that's the answer I came up with.
... View more
05-06-2021
02:27 PM
|
0
|
0
|
1659
|
|
POST
|
Tanu, thank you - Problem Solved! Many hours of retracing my steps, testing, repeating, reading online posts, comparing old vs. new before I thought to post here. Man, thanks for helping me save the week. Next time, I'll have more confidence in my own process. I do have to ask though: How do you guys manage to break existing functionality with each new release? Who is in charge of regressions testing?🙄 Have a good weekend and thanks again!
... View more
04-30-2021
04:05 PM
|
2
|
5
|
7008
|
|
POST
|
Thanks, Tanu. I was about to reach out to you directly, based on some helpful feedback you provided last year. I said I was on 10.8 but I had actually applied SP1, so running on 10.8.1. But it looks like the bug is in 10.8.1 so I'll try out those patches. Thanks so much on a Friday afternoon!
... View more
04-30-2021
03:41 PM
|
0
|
0
|
7007
|
|
POST
|
Struggling with migration of an existing ArcGIS Server custom print service (GP Service). Basically this used the steps here to publish some custom layouts via the ExportWebMap/GetLayouttemplates server tools, as explained here. This is working in 10.6 but not in my new 10.8 environment. I thought the issue was on the publishing end. But even after upgrading Pro to match AGE 10.8, creating new Layout files (PAGX) and republishing, the problem persists. Here is what I'm seeing when sending webmap JSON to service from a custom Print widget in WAB ('custom' does not imply Wild West - I made some tweaks to the Print widget and this has worked just fine in 10.6). The REST endpoint URL for the custom print service is hardcoded into the Print widget's in the WAB app's folder: apps\my_app\configs\Print\config_widgets_Print_Widget_NaN.json Even before submitting print job, Dev Tools informs me when opening Print widget: Get Layout Templates Info Error Error: Invalid URL
at Object.B.f.load (init.js:957)
at init.js:88
at c (init.js:104)
at e (init.js:104)
at b.Deferred.resolve.callback (init.js:105)
at c (init.js:105)
at e (init.js:104)
at b.Deferred.resolve.callback (init.js:105)
at init.js:93
at m (init.js:108) After submitting, job fails: Error: esriJobFailed
at Object._handler (PrintTask.js:7)
at init.js:64
at b (PrintTask.js:13)
at Object._successHandler (init.js:2371)
at Object._jobUpdateHandler (Geoprocessor.js:11)
at init.js:64
at Object.load (Geoprocessor.js:11)
at init.js:973
at c (init.js:104)
at e (init.js:104) The 'Geoprocessor' line goes back to '_getJobStatus' when trying to go a jobs folder. Similary, in my AGS log file, I see an issue with getting to a PDF file ... <?xml version="1.0" encoding="utf-8" ?>
<Msg time='2021-04-30T15:35:38,218' type='SEVERE' code='20010' target='customPrinting/my_failing.GPServer' methodName='GPServerSync.CheckMessages' machine='<my_server>' process='8608' thread='12016' user='null' requestId='7dd6ba0a-ea9a-4ce1-aba8-c657f4ef8999'>Error executing tool.
Export Web Map Job ID: j715e45d677d6477ab46a9f72a68c15b5 : error raised...
E:\arcgisserver\directories\arcgisjobs\customprinting\my_failing_gpserver\j715e45d677d6477ab46a9f72a68c15b5\scratch\9e42231a-a9f3-11eb-9e8f-005056a6efee.pdf
E:\arcgisserver\directories\arcgisjobs\customprinting\my_failing_gpserver\j715e45d677d6477ab46a9f72a68c15b5\scratch\9e42231a-a9f3-11eb-9e8f-005056a6efee.pdf
Failed to execute (Export Web Map).
Failed to execute (Export Web Map).
</Msg> My suspicion was that service is trying to write a PDF and lacks permissions (for whatever reason). But even granting AGS account full control over the 'directories' folder , it fails. Any suggestions what else I can check? I'm not sure if it's an issue with getting to the templates - I see the template files in the service directory on the AGS machine after publishing - or with creating a PDF output file, or both. This is published as 'Asynchronous'.
... View more
04-30-2021
02:18 PM
|
0
|
17
|
8737
|
|
POST
|
Sounds like 10.8 === 2.6. For example, if you create an enterprise geodatabase from ArcMap 10.6.1, the geodatabase version is 10.6.1. If you subsequently upgrade the same geodatabase using ArcGIS Pro 2.6, the geodatabase version is 10.8.1.2.6. (https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/client-geodatabase-compatibility.htm) Which means upgrading to Pro 2.6 (probably about time anyways). Would be nice, ESRI, if this were a little easier to decipher and not tucked away on the geodatabase pages!
... View more
04-29-2021
02:51 PM
|
0
|
0
|
1285
|
|
POST
|
In the process of migrating from 10.6 Enterprise to 10.8 and having to republish some service. Now I'm getting a weird error from Print widget. So I stumbled across this and my reading Pro 2.5 cannot publish print services to AGS 10.8? Correct?? If you're publishing a geoprocessing service, the ArcGIS Desktop and ArcGIS Server versions must match. (from: https://enterprise.arcgis.com/en/server/latest/get-started/windows/compatibility-of-arcgis-for-server-with-earlier-versions.htm)
... View more
04-29-2021
02:28 PM
|
0
|
1
|
1291
|
|
POST
|
Okay, this may be a dumb questions... but where it says Desktop release has to match Server/Enterprise release, how do I confirm that the Pro I'm using is the right version? Where ArcMap 10.8 = AGS/AGE 10.8 - that makes sense. How about about Pro 2.5, 2.6, 2.7? Is there a page that illustrates whether Pro 2.7 matches 10.8 (my hunch...)? Thanks,.
... View more
04-29-2021
02:15 PM
|
0
|
3
|
1726
|
|
POST
|
On second though, this might explain why the behavior is even different as part of a geoprocessing service... maybe server Python/arcpy has different environmental settings by defaul? I will have to look at that, too.
... View more
11-10-2020
05:21 AM
|
0
|
0
|
4422
|
|
POST
|
Good stuff, Dan. This wasn't the first time I got close to sifting through those folders. But I'll be back to the JSAPI tomorrow, so I'm doomed to a life of limited understahding!
... View more
11-10-2020
05:16 AM
|
0
|
0
|
4422
|
|
POST
|
I was beginning to wonder something like this... whether some "actions" are implied. Glad you bring arcpy.env.addOutputsToMap to my attention. Will take a look. Thanks!
... View more
11-10-2020
05:14 AM
|
0
|
0
|
4422
|
|
POST
|
Working on a work-around for another conundrum and tried the following:
import arcpy
x = some X
y = some Y
point = arcpy.Point(x,y)
ptGeometry = arcpy.PointGeometry(point)
feature_class = arcpy.CreateFeatureclass_management("in_memory", "tempfc", "POINT")[0]
with arcpy.da.InsertCursor(feature_class, ["SHAPE@XY"]) as cursor:
cursor.insertRow(ptGeometry)
aprx = arcpy.mp.ArcGISProject("CURRENT")
symbologyLayer = r"<some path>...\someSymbology.lyrx"
arcpy.management.ApplySymbologyFromLayer(feature_class,symbologyLayer)
# Interestingly, the following works too
#arcpy.ApplySymbologyFromLayer_management(feature_class,symbologyLayer)
map = aprx.listMaps()[0]
map.addDataFromPath(feature_class)
So this works great in that I'm getting a symbol plotted where I needed. But it does that three (3) times giving me the following output.
Now, I realize I could try and control the place of insertion by using addLayer() and using the LYRX file directly after updating its data source. But the above output is not what I would expect based on what I'm doing. What's going on there?
... View more
11-09-2020
03:05 PM
|
0
|
5
|
4450
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2025 07:32 AM | |
| 1 | 02-09-2024 05:18 PM | |
| 1 | 02-04-2025 09:27 AM | |
| 1 | 03-22-2019 10:55 AM | |
| 1 | 03-05-2020 08:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|