Publishing large scene layers from S3

232
6
12-02-2020 02:46 AM
AngusHooper1
Occasional Contributor II

Referencing this blog https://www.esri.com/arcgis-blog/products/arcgis-enterprise/3d-gis/publishing-large-scene-layers-in-....

Is there an example python workflow or GUI based workflow for publishing the large scene layers with data in S3 in the i3sREST format? I have successfully published using this python script & workflow for data that was converted and exported to a NAS. I have not had the same luck with S3 - I receive an error 99999 when attempting to publish the service in the last step of the script. I encounter no issues with registering the S3 bucket as a cloudstore in ArcGIS Server.

I also noticed that the code specifically grabs the server ID from the hosting server however the comments note that the server can just be a federated server. Is that true?

Reply
0 Kudos
6 Replies
GarimaTiwari
Esri Contributor

Is there an example python workflow or GUI based workflow for publishing the large scene layers with data in S3 in the i3sREST format? 


We do not have a GUI or python based workflow yet. We are working on it for our future release. 


I receive an error 99999 when attempting to publish the service in the last step of the script. I encounter no issues with registering the S3 bucket as a cloudstore in ArcGIS Server.

Have you registered your S3 bucket as cloud store using ArcGIS Enterprise Portal App or ArcGIS Server Manager? This workflow would only succeed if you have registered the cloudstore using ArcGIS Enterprise Portal App. Would you please confirm this? Do you get any messages in the server logs along with error 9999? If so, please share it with us.


I also noticed that the code specifically grabs the server ID from the hosting server however the comments note that the server can just be a federated server. Is that true?


Yes, you can modify the ArcGIS API for python script to select federated server. This is supported. 

 

Best Wishes, 

Garima

Reply
0 Kudos
AngusHooper1
Occasional Contributor II

This workflow would only succeed if you have registered the cloudstore using ArcGIS Enterprise Portal App.

 

This 100% could be the cause. I'll run through the workflow again today and get back with the results.

Reply
0 Kudos
AngusHooper1
Occasional Contributor II

Thanks @GarimaTiwari 

 

Manually registering the data store item with Portal and Server removes the initial steps. When publishing we still hit error 99999. The server logs have the following:

Delegate job failed.
ERROR: info file in extracted cache not found. Failed to execute (Publish Datasets In Data Stores).
ERROR: info file in extracted cache not found.
Unable to access scene layer file.

I am not confident in the service_conf.

"type": "SceneServer",
"serviceName": "service name",
"properties": {
"pathInCachedStore" : " / root S3 directory / ",
"cacheStoreId": cache_store_id,

Thoughts?

Reply
0 Kudos
GarimaTiwari
Esri Contributor

The "pathInCachedStore" should be the folder where the i3sREST content is stored. This folder contains the scene layer configuration necessary for publishing.

For example: 

"pathInCachedStore" : " /rootS3directory/My_sceneContent.i3srest"

Reply
0 Kudos
AngusHooper1
Occasional Contributor II

Still hitting the same error. Using your example, is this what you would expect to see in /My_sceneContenet.i3srest?

AngusHooper1_0-1607673881158.png

 

Reply
0 Kudos
AngusHooper1
Occasional Contributor II

Problem resolved. It was a data issue with the params we used in the data conversion / exporter utility.

Reply
0 Kudos