Is This Content Helpful?
We're glad to know this article was helpful.
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.
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.
Disable oplocks for each Samba directory. To do so, follow these steps:
oplocks = false
level2 oplocks = false