English

Error: Packaging succeeded, but publishing failed. ERROR 001369: Failed to create the service

Error Message

If the data referenced by a GIS resource resides in a Samba directory, the following error displays in ArcGIS for Desktop when publishing:

"Packaging succeeded, but publishing failed. ERROR 001369: Failed to create the service."

Any subsequent attempts to publish result in the same error.

Cause

This failure results from opportunistic locking, or oplocks, which is a Windows file-locking feature. When oplocks are enabled in a Samba directory, the Windows machine is allowed to cache files locally. Usually, this is the machine that is being used to publish the service. If a second machine needs access to the data, it must receive an oplocks break from the Windows machine before the file is synchronized back to the second machine. Usually, this is the machine that the service is being published to. If a break is received by the Windows machine during publishing, the subsequent data synchronization may cause publishing to fail.

Solution or Workaround

Disable oplocks for each Samba directory. To do so, follow these steps:

  1. On the machine hosting Samba, open smb.conf.
  2. For each directory configured to be accessible through Samba, add the following properties:

    [folder]
    ...
    oplocks = false
    level2 oplocks = false
    ...

  3. Save smb.conf.
  4. Run the command 'testparm' to verify that the properties appear in the Samba configuration file.
  5. Restart Samba (SMB) and NetBIOS (NMB) services.

Related Information