Publishing with “overwrite” option ends up with the frustrating error “packaging succeeded, but publishing failed”,

1577
16
04-08-2017 02:03 PM
JamalNUMAN
Esteemed Contributor

Publishing with “overwrite” option ends up with the frustrating error “packaging succeeded, but publishing failed”,

 

Despite the fact that “analyze” shows no errors and the “preview” displays the map correctly, nevertheless, publishing with “overwrite” option ends up with the frustrating error “packaging succeeded, but publishing failed”.

 

What might be the issue here?

This issue has never been resolved even in case we are using 10.5

 

Thank you

 

Best

 

Jamal

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
16 Replies
ModyBuchbinder
Esri Regular Contributor

Hi

First, check your services. If the service exists try to start it - many times it just works.

If not try to publish again - many times it works for me.

You can try to delete the original service and publish new service (not overwrite) but there is no problem with the overwrite option.

Turn off the KML capability - less warnings.

Try not to do other stuff on the machine while doing publishing.

If you do not have a real problem in the server log then the publish should work.

Have Fun

Mody

DerekLaw
Esri Community Moderator

Hi Jamal,

Please see the Esri KnowledgeBase article,

Error: Packaging succeeded, but publishing failed. ERROR: unable to connect to publishing tools serv... 

Hope this helps,

rawansaleh1
Occasional Contributor III

Thank you Mody and Derek for the help.

 

We have been struggling with this issue since ages with no solution at all. We have tried all what you have mentioned but with no effect.

 

  1. First, check your services. If the service exists try to start it - many times it just works.

 The service exists and it’s running normally., and working fine.

 

  1. If not try to publish again - many times it works for me.

 We tried to publish the services several times with no effect

  1. You can try to delete the original service and publish new service (not overwrite) but there is no problem with the overwrite option.

Our service is online! This is not possible option all the time. However, this is done with no effect

 

  1. Turn off the KML capability - less warnings.

No effect

  1. Try not to do other stuff on the machine while doing publishing.

I do nothing with No effect

 

  1. If you do not have a real problem in the server log then the publish should work.

No issues are reported in the logs about this map service

 

 

 

I walked through Esri KnowledgeBase article and I confirm the following:

 

  1. Confirm the ArcGIS for Server PublishingTools service is started. Log in to ArcGIS Server Manager > Services > Publish Service > and click Start Service.

 The service is started

 

  1. Modify permissions in ArcGIS Server Manager. The following document describes this in detail: Editing permissions in Manager.

 

The server Allow access to all users

 

  1. The ArcGIS account must have the appropriate privileges to publish the service to ArcGIS for Server.

We publish by Admin who have all authority for ArcGIS Server

 

  1. If the ArcGIS for Server machine is part of a domain, the ArcGIS account used to publish a service must be added to a domain group, which grants the appropriate access to publish a service. The following document describes this in detail: Microsoft TechNet: Assign a Windows User or Group to a Role.

ArcGIS Account is a part of Local Administrators Groups

 

  1. For internal-facing sites, set the User Store and Role Store security settings to 'ArcGIS Server Built-in' in the Security Configuration Settings of ArcGIS Server Manager. To do this, follow the steps below:

 

  1. Login to ArcGIS Server Manager > Security > Configuration Settings.
  2. Click the edit icon to open the Security Configuration Wizard.
  3. Select 'Users and roles from ArcGIS Server’s built-in store', and click Next.
  4. Review the configuration, and click Finish.

 It’s already configured like this

 

  1. Create a service definition (SD) in ArcMap and publish the map service using ArcGIS Server Manager. The following document describes this in detail: ArcGIS for Server:

Creating a service definition in ArcGIS for Desktop.

 It’s already created but with no effect

 

  1. Update the ArcGIS for Server connections. Re-create the ArcGIS for Server connection in ArcCatalog and specify the fully qualified domain name (FQDN) and new login information for the site. The following document describes this in detail: Making an administrative connection to ArcGIS Server in ArcGIS for Desktop.

 

We tried this several times with no advantages

 

 

  1. Enable Windows authentication in IIS.

We don’t use Web Adapter

 

 

What do you think?

 

Best Regards,

Rawan

JamalNUMAN
Esteemed Contributor

I hope we can hear back from Mody and Derek and see if this very challenging issue can be resolved. Most of the time, we are not able to complete our work due to this problem. It is killing us

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
DerekLaw
Esri Community Moderator

Hi Rawan,

If you've tried the various troubleshooting solutions that were proposed by modybsystematics-co-il-esridist and the KB article I referenced, I doubt there is much else we can do to assist over GeoNet. I suggest you contact Esri Tech Support and open an incident so they can help you investigate further. In some cases, they can remote connect to access your system, and/or they have the technical resources to repro your environment.

Good luck,

rawansaleh1
Occasional Contributor III

Thanks for reply Derek,

 

I will contact them, we hope we can find a solution for this issue.

 

Best,

Rawan

0 Kudos
rawansaleh1
Occasional Contributor III

Hi All,

I tried a workaround to solve this issue and it’s working fine, but this workaround needs to stop the ArcGIS Server services which means that the online application will be down.

You can follow these steps to solve this:

  1.      stop the ArcGIS Server service in services
  2.      delete the lock files in the following directory “C:\arcgisserver\directories\arcgissystem\locks”
  3.      Restart the ArcGIS Server Services.
  4.      Publish overwrite the service and it will be published proberly

 

Best,

Rawan

by Anonymous User
Not applicable

Hi Jamal & Rawan,

I have another option to do this with 1 min down time,

like first create SD file and update the service with different name like new

and then rename existing file as old and new name service as you use in your environment.

renaming takes only 1/2 min.

Check ArcGIS server admin tool to do renaming.

I have some thing most of the time.

JamalNUMAN
Esteemed Contributor

We hope to hear back from esri experts on this. In my eyes, this issue needs to have root solution.

----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine