I have a shared service on ArcGIS for server 10.4.1 that simply refuses to stay shared. When the service was originally created it worked, and then due to some unknown change, it reset to not shared. Now when I go to the server manager and click the sharing icon next to the service I get:
"This service has been shared to a portal but could not be found on the portal. To reshare your service with the portal, choose who you want to share your service with and click Save."
If I click "Update Sharing" (the only option), it says "Please wait while the service sharing is updated" and often hangs for several minutes during this update process. Then I mark it as shared and close the dialog.
The service will work for several minutes and then revert to not shared.
What could cause this problem. I have spent much time seeking solutions online, in the logs, etc. But I can find nothing.