Hey Everyone,
I'm getting the error below
ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed. Failed to execute (PublishServiceDefinition). Failed to execute (Publish Portal Service).
I've done CHOWN on the arcgis install folder to ensure permissions
Also, I have a database registered
I'm not really sure why I'm getting this error
Do you see anything in the Server logs? You can set the logs to DEBUG and republish if you want to get the most out of them. When publishing fails, it should log something within the Server logs.
com.esri.discovery.DiscoveryException: Service Hosted/FD4_PlanningZones/MapServer not found at com.esri.discovery.DiscoveryAGSConnector.throwServiceNotFound(DiscoveryAGSConnector.java:611) at com.esri.discovery.DiscoveryAGSConnector.getServiceConfig(DiscoveryAGSConnector.java:434) at com.esri.client.featureserver.FeatureServiceClient$1.call(FeatureServiceClient.java:247) at com.esri.client.featureserver.FeatureServiceClient$1.call(FeatureServiceClient.java:244) at com.esri.client.util.ClientUtil.passThruCache(ClientUtil.java:182) at com.esri.client.featureserver.FeatureServiceClient.getAggregatedResource(FeatureServiceClient.java:244) at com.esri.client.featureserver.FeatureServiceClient.isCachingDisabled(FeatureServiceClient.java:439) at com.esri.client.app.featureserver.FeatureServerHandler.featureServer(FeatureServerHandler.java:116) at com.esri.client.app.featureserver.FeatureServerHandler.service(FeatureServerHandler.java:100) at com.esri.rf.RServlet.service(RServlet.java:121) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)
Are there any other errors at the WARNING or SEVERE level about the inability to publish the service?
SEVERE | Feb 19, 2019, 11:43:32 PM | Error executing tool. PublishServiceDefinition Job ID: j126c3767253a42b6ad18aca5bb47307d : ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). | System/PublishingToolsEx.GPServer |
SEVERE | Feb 19, 2019, 11:43:32 PM | Error executing tool. Publish Portal Service Job ID: j70b06896849b41c1877a653a6feb6d16 : ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed. Failed to execute (PublishServiceDefinition). Failed to execute (Publish Portal Service). | System/PublishingTools.GPServer |
SEVERE | Feb 19, 2019, 11:43:32 PM | ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition). Failed. Failed to execute (PublishServiceDefinition). | System/PublishingTools.GPServer |
SEVERE | Feb 19, 2019, 11:43:32 PM | Delegate job failed. | System/PublishingTools.GPServer |
SEVERE | Feb 19, 2019, 11:43:31 PM | Failed to create the service.: ERROR: code:500, Failed to create the service 'Hosted/FD4_PlanningZones.FeatureServer'. The submitted field 'st_area(shape)' does not exist in the table 'db_0m03e.hsu_cbu2s.fd4_planningzones_fd4_planningzones_clip'., Internal server error. | System/PublishingToolsEx.GPServer |
SEVERE | Feb 19, 2019, 11:43:29 PM | Core server call to create service failed (/admin/createService). | System/PublishingToolsEx.GPServer |
SEVERE | Feb 19, 2019, 11:43:29 PM | Failed to create the service 'Hosted/FD4_PlanningZones.FeatureServer'. The submitted field 'st_area(shape)' does not exist in the table 'db_0m03e.hsu_cbu2s.fd4_planningzones_fd4_planningzones_clip'. |
Sounds like a bug. Do you have only default fields in the feature class you're publishing, (OID, Shape, etc)? If so, try to add another field and publish.
You may want to reach out to Tech Support and provide your data so they can check whether they can reproduce it as well.
That would be correct.
It would appear that adding the field resolved the issue. Should I file a bug or is it a known issue?
You may be running into this:
BUG-000119454 - Publishing a line feature class to Portal from ArcGIS Pro with only the default fields in the feature class fails
If you want to confirm or be attached to the bug, contact Tech Support and they can work with you on that.
Might want to check out theses Knowledge Articles below if you have not seen them yet:
-ERROR 001369: Failed to create the service : https://support.esri.com/en/Technical-Article/000016577
-Service is currently being configured by another administrative operation:
https://support.esri.com/en/Technical-Article/000015549
Also to eliminate the issue coming from the Arcgis Serer side, please check to see if the Arcgis Server "Publishing Tools" is running via Arcgis Server Manager>System>. and see about testing a Service Definition (sd) file via Arcgis Server Manager? Publish a service definition in ArcGIS Server Manager—Documentation | ArcGIS Enterprise