<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hosted Services not working after configuration changes to Server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-services-not-working-after-configuration/m-p/1331094#M37223</link>
    <description>&lt;P&gt;We've been running a single tier Enterprise deployment, and decided to expand it to a two tier deployment to improve performance.&amp;nbsp; I'm following the instructions &lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/migrate-to-new-machines.htm" target="_self"&gt;here&lt;/A&gt; to migrate Server and Data Store to a new machine.&lt;/P&gt;&lt;P&gt;Step 1 of migrating a machine running Server is to move the server directories and configuration store to a shared network location.&amp;nbsp; After performing this step, all of our hosted feature classes no longer work.&amp;nbsp; In Server Manager, the hosted feature classes are shown as "Stopped":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ServerManager.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81305i6CFAD942601AB4D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ServerManager.png" alt="ServerManager.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried restarting Portal, Server, Data Store, and the original Single Tier machine.&amp;nbsp; None of those worked.&lt;/P&gt;&lt;P&gt;I can't see anything wrong with the Data Store.&amp;nbsp; The output of describedatastore.bat:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;General information of ArcGIS data stores on FQDN1
==================================================
Data store release..................11.1.0.42869
Staging location....................C:\arcgisdatastore\staging
Log location........................C:\arcgisdatastore\logs
Free disk space.....................30.00GB
Threshold for READONLY mode.........1024MB

Information for relational data store ds_oaflnz7l
==================================================
Backup location.....................C:\arcgisdatastore\backup\relational
Is backup folder shared.............false
Backup schedule.....................{"schedule-starttime":"00:00:00","schedule-frequency":"Every 0 DAYS"}
Days backup retained................7
Data store status...................Started
SSL enabled.........................true
member machines.....................FQDN1
Maximum connections.................150
Owning system URL...................https://FQDN1:6443/arcgis/admin
Portal for ArcGIS URL...............https://webadapter/portal
Number of connections...............0 connection(s) to managed database
Data Store mode.....................READWRITE
Is Point-in-time recovery enabled...No
Query optimizer enabled.............Yes




Operation completed successfully.
PS C:\Program Files\ArcGIS\DataStore\tools&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of validating the DataStore from the Server Admin interface:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
  "datastore.release": "11.1.0.42869",
  "datastore.name": "ds_oaflnz7l",
  "datastore.replmethod": "ASYNC",
  "datastore.isReadOnly": "false",
  "datastore.isConfigured": "true",
  "machines": [{
    "machine.overallhealth": "Healthy",
    "datastore.release": "11.1.0.42869",
    "datastore.release.configstore": "1.5",
    "platform": "Windows",
    "machine.isReachable": "true",
    "hostip": "XXX.XXX.XXX.XXX",
    "name": "FQDN1",
    "role": "PRIMARY",
    "dbport": 9876,
    "initstarttime": 1695231440090,
    "healthcheck.enable": "true",
    "status": "Started",
    "adminurl": "https://FQDN1:2443/arcgis/datastoreadmin/",
    "db.isactive": "true",
    "db.isAccepting": "true",
    "db.isInRecovery": "false",
    "db.ActiveReplMethod": "NONE",
    "db.isManagedUserConnValid": "true",
    "datastore.release.pg": "14.5",
    "datastore.release.sde": "11.1.0",
    "datastore.release.geometry": "1.30.4.10",
    "datastore.release.geometrylib": "1.30.3.10",
    "db.isSiteConnValid": "true"
  }],
  "datastore.release.configstore": "1.5",
  "datastore.release.geometry": "1.30.4.10",
  "datastore.release.geometrylib": "1.30.3.10",
  "datastore.release.sde": "11.1.0",
  "datastore.release.pg": "14.5",
  "datastore.layer.extent.updated": false,
  "datastore.status": "Started",
  "datastore.isActiveHA": "false",
  "datastore.overallhealth": "Healthy",
  "datastore.lastfailover": -1,
  "datastore.lastbackup": 1684955920681,
  "datastore.isRegistered": "true",
  "datastore.hasValidServerConnection": "true",
  "datastore.validServerMachinesList": [
    {
      "machineName": "FQDN1",
      "adminURL": "https://FQDN1:6443/arcgis/admin"
    },
    {
      "machineName": "FQDN2",
      "adminURL": "https://FQDN2:6443/arcgis/admin"
    }
  ],
  "owningSystemUrl": "https://FQDN1:6443/arcgis/admin",
  "status": "success"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I connect directly to the DataStore database using Pro, all of my feature classes are there, and if I add them to a map, the data is still there as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Datastore.png" style="width: 521px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81306i4C2A0C2D984C8109/image-size/large?v=v2&amp;amp;px=999" role="button" title="Datastore.png" alt="Datastore.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea what I need to do to get these services working in Portal/Server again?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 15:20:26 GMT</pubDate>
    <dc:creator>RobMcCulley</dc:creator>
    <dc:date>2023-09-21T15:20:26Z</dc:date>
    <item>
      <title>Hosted Services not working after configuration changes to Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-services-not-working-after-configuration/m-p/1331094#M37223</link>
      <description>&lt;P&gt;We've been running a single tier Enterprise deployment, and decided to expand it to a two tier deployment to improve performance.&amp;nbsp; I'm following the instructions &lt;A href="https://enterprise.arcgis.com/en/portal/latest/administer/windows/migrate-to-new-machines.htm" target="_self"&gt;here&lt;/A&gt; to migrate Server and Data Store to a new machine.&lt;/P&gt;&lt;P&gt;Step 1 of migrating a machine running Server is to move the server directories and configuration store to a shared network location.&amp;nbsp; After performing this step, all of our hosted feature classes no longer work.&amp;nbsp; In Server Manager, the hosted feature classes are shown as "Stopped":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ServerManager.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81305i6CFAD942601AB4D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="ServerManager.png" alt="ServerManager.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've tried restarting Portal, Server, Data Store, and the original Single Tier machine.&amp;nbsp; None of those worked.&lt;/P&gt;&lt;P&gt;I can't see anything wrong with the Data Store.&amp;nbsp; The output of describedatastore.bat:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;General information of ArcGIS data stores on FQDN1
==================================================
Data store release..................11.1.0.42869
Staging location....................C:\arcgisdatastore\staging
Log location........................C:\arcgisdatastore\logs
Free disk space.....................30.00GB
Threshold for READONLY mode.........1024MB

Information for relational data store ds_oaflnz7l
==================================================
Backup location.....................C:\arcgisdatastore\backup\relational
Is backup folder shared.............false
Backup schedule.....................{"schedule-starttime":"00:00:00","schedule-frequency":"Every 0 DAYS"}
Days backup retained................7
Data store status...................Started
SSL enabled.........................true
member machines.....................FQDN1
Maximum connections.................150
Owning system URL...................https://FQDN1:6443/arcgis/admin
Portal for ArcGIS URL...............https://webadapter/portal
Number of connections...............0 connection(s) to managed database
Data Store mode.....................READWRITE
Is Point-in-time recovery enabled...No
Query optimizer enabled.............Yes




Operation completed successfully.
PS C:\Program Files\ArcGIS\DataStore\tools&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of validating the DataStore from the Server Admin interface:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
  "datastore.release": "11.1.0.42869",
  "datastore.name": "ds_oaflnz7l",
  "datastore.replmethod": "ASYNC",
  "datastore.isReadOnly": "false",
  "datastore.isConfigured": "true",
  "machines": [{
    "machine.overallhealth": "Healthy",
    "datastore.release": "11.1.0.42869",
    "datastore.release.configstore": "1.5",
    "platform": "Windows",
    "machine.isReachable": "true",
    "hostip": "XXX.XXX.XXX.XXX",
    "name": "FQDN1",
    "role": "PRIMARY",
    "dbport": 9876,
    "initstarttime": 1695231440090,
    "healthcheck.enable": "true",
    "status": "Started",
    "adminurl": "https://FQDN1:2443/arcgis/datastoreadmin/",
    "db.isactive": "true",
    "db.isAccepting": "true",
    "db.isInRecovery": "false",
    "db.ActiveReplMethod": "NONE",
    "db.isManagedUserConnValid": "true",
    "datastore.release.pg": "14.5",
    "datastore.release.sde": "11.1.0",
    "datastore.release.geometry": "1.30.4.10",
    "datastore.release.geometrylib": "1.30.3.10",
    "db.isSiteConnValid": "true"
  }],
  "datastore.release.configstore": "1.5",
  "datastore.release.geometry": "1.30.4.10",
  "datastore.release.geometrylib": "1.30.3.10",
  "datastore.release.sde": "11.1.0",
  "datastore.release.pg": "14.5",
  "datastore.layer.extent.updated": false,
  "datastore.status": "Started",
  "datastore.isActiveHA": "false",
  "datastore.overallhealth": "Healthy",
  "datastore.lastfailover": -1,
  "datastore.lastbackup": 1684955920681,
  "datastore.isRegistered": "true",
  "datastore.hasValidServerConnection": "true",
  "datastore.validServerMachinesList": [
    {
      "machineName": "FQDN1",
      "adminURL": "https://FQDN1:6443/arcgis/admin"
    },
    {
      "machineName": "FQDN2",
      "adminURL": "https://FQDN2:6443/arcgis/admin"
    }
  ],
  "owningSystemUrl": "https://FQDN1:6443/arcgis/admin",
  "status": "success"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I connect directly to the DataStore database using Pro, all of my feature classes are there, and if I add them to a map, the data is still there as well:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Datastore.png" style="width: 521px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/81306i4C2A0C2D984C8109/image-size/large?v=v2&amp;amp;px=999" role="button" title="Datastore.png" alt="Datastore.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea what I need to do to get these services working in Portal/Server again?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 15:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-services-not-working-after-configuration/m-p/1331094#M37223</guid>
      <dc:creator>RobMcCulley</dc:creator>
      <dc:date>2023-09-21T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Services not working after configuration changes to Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-services-not-working-after-configuration/m-p/1331585#M37231</link>
      <description>&lt;P&gt;Have you tried using the python api to start the services?&amp;nbsp; From time to time, some of my hosted feature services or vector tile services will 'stop'&amp;nbsp; I restart them using the python api.&amp;nbsp; Something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;try:
    gis = GIS("https://yourdomain.net/portal", "your_portal_login", "your_portal_pw")

    gis_servers = gis.admin.servers.list()
    print(gis_servers)
    #message = message + "\n" + str(gis_servers)

    agshost = gis_servers[0]
    print(agshost)
    #message = message + "\n" + str(agshost)

    vtServicesList = agshost.services.list(folder='Hosted')
    for vtService in vtServicesList:
        serviceName = vtService.properties.serviceName
        if (serviceName == 'ExoticInvasiveSpeciesPoint' or serviceName == 'ExoticInvasiveTreatment'):
            print(serviceName)
            message = message + "\n" + str(serviceName)
            vtService.start()
            print(vtService.status)
            message = "\n" + message + "\n" + str(vtService.status)
    
except Exception:
    # If an error occurred, print line number and error message
    import traceback, sys
    tb = sys.exc_info()[2]
    e = sys.exc_info()[1]
    #print(e.args[0])
    #print "Line %i" % tb.tb_lineno
    message = message + "\n" + "Line %i" % tb.tb_lineno
    message = message + "\n" + str(e)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works for me every time I encounter a stopped hosted service.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 18:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-services-not-working-after-configuration/m-p/1331585#M37231</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2023-09-22T18:18:36Z</dc:date>
    </item>
  </channel>
</rss>

