I tried publishing a service definition to my server, but the service would not start after it was published. I changed two things:
1. Shortened the name of the service
2. Removed a dash from inside the string describing the service
I was then able to publish the service, and start it without any problems.
BUT, I have a couple of vestigial services from the failed attempts to publish the SD still listed in my ArcGIS Server Manager interface. If I try to delete them, it just shows a progress bar that grinds away until my Server Manager session times out.
I looked through the server directories, and the vestigial services are not listed. It's like the services don't *actually* exist, but there's a ghost of them still displayed in the UI. Is there any way to get rid of them? They don't seem to be doing any harm, but they're cluttering the list of services.
Here's a screen shot of the list of services, showing the vestigial items. I can neither start the services, nor delete them.
This is what I get when I try to delete one of the two bad services:
When I look in the directory itself where the other services are listed, these two don't appear; the only matching items are the services that are running:
(base) arcgis@ip:/arcgis/server/usr/directories/arcgissystem/arcgisinput/ASF_SampleData$ ls
ShovelCreek_20190614_gpf_VV.ImageServer
ShovelCreek_20190626_gpf_VV.ImageServer
ShovelCreek_20190708_gpf_VV.ImageServer
Is there a different place I can go to find unstarted services and delete them there?
I tried restarting the server, but it didn't make any difference.
Thanks!
Solved! Go to Solution.
I opened a support case, and it turns out that there was another location where files needed to be deleted.
In order to get rid of these services, I used a command line interface to delete the bad files from the following locations:
/arcgis/server/usr/directories/arcgisoutput/service_directory
/arcgis/server/usr/config-store/services/service_directory
In some cases, it may also be necessary to remove it from here, as well:
/arcgis/server/usr/directories/arcgissystem/arcgisinput/service_directory
Once they were removed from these directories, I restarted the server, and the listings for the non-functioning services were gone.
Thanks to @ABishop for the lead on the first directory, and Robel from Esri Support Services for the final piece of the puzzle.
Hello Heidi,
I believe you have to delete the service from the actual server machine. Here is a technical support article I found: https://support.esri.com/en/technical-article/000021607
Thanks for that helpful link @ABishop.
I had been looking in the arcgissystem/arcgisinput directory rather than the arcgisoutput directory. I found the problematic services listed in the arcgisoutput directory and deleted them there, but they still show up in my Server Manager. I've restarted the server several times, but it doesn't make a difference. I still cannot delete them via the Server Manager, either.
I wonder if there's another place in the directory structure where they lurk.
For reference, the server is on an AWS EC2 instance running Ubuntu 18.
ummm ya AWS EC2 is a whole other animal! I would get ESRI support involved.
I opened a support case, and it turns out that there was another location where files needed to be deleted.
In order to get rid of these services, I used a command line interface to delete the bad files from the following locations:
/arcgis/server/usr/directories/arcgisoutput/service_directory
/arcgis/server/usr/config-store/services/service_directory
In some cases, it may also be necessary to remove it from here, as well:
/arcgis/server/usr/directories/arcgissystem/arcgisinput/service_directory
Once they were removed from these directories, I restarted the server, and the listings for the non-functioning services were gone.
Thanks to @ABishop for the lead on the first directory, and Robel from Esri Support Services for the final piece of the puzzle.
@Heidi_Kristenson You are so very welcome! I am glad you got it figured out!