Service Publishing - Token Renewal Failed

545
4
08-01-2019 04:07 AM
Highlighted
New Contributor III

Hey Guys,

We're trying to publish a very large MXD (60mb) and associated SD file (10mb) to ArcGIS Server and we keep getting a failed error after around 30 minutes or so.

For context, we have a 10.6.1 AGS, which is federated. The service we are trying to publish has a lot of layers in it (over 100) and has an associated pre-built cache, which sits on a mapped network drive.

We've tried to publish it through ArcGIS Desktop and also by uploading the SD file to the Server Manager and on both occasions we get this same log results after around 30 minutes of waiting for the publishing to complete:

Token Renewal Failed (No credentials available).         10014

Core server call to create service failed (/admin/createService).         23850

Failed to create the service.: Token renewal failed (No credentials available).         23836

Token renewal failed (No credentials available).         100104

Error executing tool: Publish Service Definition – Failed to execute (Publish Service Definition).          20010

Apologies, I am not able to copy the full log. The numbers to the right are the associated error code.

I'm guessing the token it grabs before it publishes may have a 30 minute expiry time and for some reason it is unable to get another one?

Does anyone have any advice for publishing large services? or know if there are any other workaround to get around what we are experiencing?

Cheers,

Jordan

4 Replies
Highlighted
New Contributor III

Just an update to this, we went into the ArcGIS Server Security settings and changed the short-lived token time value to 120 minutes. We then tested publishing again and it still timed out with the same errors as above, way before 120 minutes too. So I guess this is not the correct token setting...

Reply
0 Kudos
Highlighted
New Contributor

Jordan King - We have the exact same issue (running 10.7.1 and unfortunately our service takes 9 hours to fail).  Were you able to figure out how to get past this issue?

Reply
0 Kudos
Highlighted
New Contributor III

Adam Roberts‌ - not as yet. We are about to upgrade to 10.7.1 in the next couple of months, so we will try again at that version.

Reply
0 Kudos
Highlighted
New Contributor

Thanks for the update.  To get around this issue, we were able to save off the SD file and then publish via arcpy:

import arcpy
sd = '{path-to-sd-file}\SA.sd'
con = '{path-to-ags-file}\server.ags'
arcpy.UploadServiceDefinition_server(sd, con)

A serendipitous find for sure since we now use this approach for all our service publishing.

Reply
0 Kudos