|
POST
|
Actually, this looks like it will be easier than I thought. This is from the esri AI Chatbot: .......... Yes, it is possible to configure an object store on an existing tileCache data store server and then remove the tileCache data store. Here are the steps to achieve this: Backup Data Stores: Take a backup of both the relational and tile cache data stores using the backupdatastore utility. Remove Standby Tile Cache Data Store (if applicable): If the data stores are configured to be highly available, use the removemachine utility to remove the standby tile cache data store. Unregister Tile Cache Data Store: Use the unregisterdatastore utility to unregister the tile cache data store from the hosting server. Restore Tile Cache Data Store (if needed): Use the restoredatastore utility to restore the tile cache data store from the backup on a new machine if required. Configure Object Store: Run the configuredatastore utility on all machines to be added to the object store cluster. Use the following command: ./configuredatastore <serverURL> <serverAdmin> <serverAdminPassword> <directory> --stores object --mode cluster Ensure the directory path does not contain spaces. If you intend to use multiple machines in the object store, specify --mode cluster. Remove Tile Cache Data Store: If the ArcGIS Data Store cannot access the machine, specify --force true to remove the machine from the tile cache data store using the following command: ./removemachine tilecache3 --store tilecache --force true By following these steps, you can successfully configure an object store and remove the existing tileCache data store. If you need further assistance, please contact Esri technical support. ..........
... View more
12-03-2024
09:13 AM
|
0
|
0
|
4175
|
|
POST
|
It also occurred to me that I could just reconfigure the current tileCache store as an Object Store now at 11.3 before I upgrade, since I don't have any scene caches or 3D mesh layers now, and so the tileCache store is empty. I could then run the disabledatastore --store tileCache https://enterprise.arcgis.com/en/server/latest/publish-services/windows/migrate-scene-services-utility.htm and then maybe go back into the machine and re-register it as an object store?
... View more
12-03-2024
08:03 AM
|
0
|
0
|
4188
|
|
POST
|
Hi - I prepping for upgrade from 11.3 - 11.4, I just now saw the deprecation of the tileCache store at 11.4 and the reccomendation to convert/standup an objectStore. Can I re-purpose my current tileCache store server as an Object Store server? Any recommendations on this? Thanks-
... View more
12-03-2024
07:01 AM
|
0
|
17
|
5624
|
|
POST
|
Hey @tcaulum_WPPI - can you tell me if you guys were on a concurrent license at 11.3? I'm getting ready to move to11.4, but we are still on the concurrent license manager at 11.3 for our Pro3.4 users (mostly because we don't have the funding yet to purchase the Professional and Professional Plus user types for GIS staff). So I'm trying to figure out the implications... thanks
... View more
12-03-2024
06:16 AM
|
0
|
1
|
6247
|
|
POST
|
Thanks @JakeSkinner - yeah it still doesn't like it: or like this: org_group = ['dc0c980751374bf796f3965b720154ba']
portItem_grp.remove(group=org_group) But it does like this: org_group = 'dc0c980751374bf796f3965b720154ba'
portItem_grp.remove(org_group) This 3rd syntax removed the layer from the group. More than one group works like this: org_group = 'dc0c980751374bf796f3965b720154ba,da28c73ec47344df87290ed58e09f533'
portItem_grp.add(org_group) Thanks for your help! David
... View more
11-26-2024
01:44 PM
|
1
|
0
|
2164
|
|
POST
|
Hi - I am trying to use the new Sharing Module at 2.4 like this (I still like to use the IDLE for testing): from arcgis.gis import GIS
from arcgis.gis._impl._content_manager import SharingLevel
gis = GIS("...myorg.net/portal", "myUsername", "myPassword", verify_cert=False)
try:
portItems = gis.content.search(query="owner:myUsername", item_type="Feature Layer", sort_field="title", sort_order="asc", max_items=5000)
for portItem in portItems:
if (portItem.title == "SchoolBoardDistrict4"):
portItem_sharing = portItem.sharing
portItem_grp = portItem_sharing.groups
type(portItem_grp)
print(type(portItem_grp))
# I am getting the correct type
<class 'arcgis.gis._impl._content_manager.sharing.api.SharingGroupManager'>
org_group = ["Planning Layers Group"]
# This works
portItem_sharing.sharing_level = SharingLevel.EVERYONE
#portItem_grp.add(group=org_group)
portItem_grp.remove(org_group)
# won't remove the item from the group
portItem_grp.list()
print(portItem_grp.list())
# [<Group title:"Planning Layers Group" owner:dmcoley_portal>]
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) Based on this sample from the Sharing Group Manager in the API reference: # Usage example:
>>> from arcgis.gis import GIS
>>> gis = GIS(profile="your_organization_profile")
>>> org_item = gis.content.get("<item_id>")
>>> org_group = gis.groups.search("Storm Data Group")[0]
>>> item_sharing_mgr = org_item.sharing
>>> item_grp_sharing_mgr = item_sharing_mgr.groups
>>> item_grp_sharing_mgr.list()
[]
>>> item_grp_sharing_mgr.add(group=org_group)
True
>>> item_grp_sharing_mgr.list()
[<Group title:"Storm Data Group" owner:web_gis_user1>] It just doesn't seem to want to take the org_group object I am setting up. Any Ideas? @jcarlson @JakeSkinner
... View more
11-26-2024
08:34 AM
|
0
|
2
|
2192
|
|
POST
|
Using the download manager, I did not experience this issue going from 3.3.2 to 3.4
... View more
11-22-2024
05:00 AM
|
0
|
0
|
1997
|
|
POST
|
So you may find this interesting @Jamie_Leitch_CNF - when I tried to overwrite my layer like I detailed above, the arcpy.UploadServiceDefinition_server('C:/ArcProProjects3x/PortalUpdates/Transportation/' + lyr.name + '.sd', 'My Hosted Services', "","","","","","OVERRIDE_DEFINITION","SHARE_ONLINE","PUBLIC",
"SHARE_ORGANIZATION","Transportation Layers Group") failed with five 9's - 99999 something unexpected.... Turns out that where I am specifying the group to be shared with, "Transportation Layers Group" in my case I now need to specify it as a list: ["Transportation Layers Group" ] Once I did that, the Upload Service Definition method works
... View more
11-21-2024
02:01 PM
|
0
|
0
|
1861
|
|
POST
|
Hi @MonicaBeaton - can you describe your deployment? Is this a base deployment or is this a fully distributed deployment, with the web server hosting your web adaptors, the Portal for ArcGIS, ArcGIS Server and the ArcGIS Relational Data store on separate servers? We use Sectigo certs. Because we are on a fully distributed system using F5 as our front door (can't really call it a reverse proxy) the web server is only aliased on the F5, and not in the DNS. This is so that the full Sectigo trust chain can be or is first setup on the web server. Then, at initial setup for each component, I needed to import both the root and intermediate certificates. finally, I needed to import the pfx generated by our EIT Security team. If this is a base deployment, with all components on a single server, I would think that as long as the trust chain is in place, and your IT has provided you with the root and intermediate certificates and a pfx you should be able to re-import them. Once in place, you can remove any old certificates.
... View more
11-19-2024
01:45 PM
|
1
|
0
|
1767
|
|
POST
|
Also @brianHerbel are you using the download manager to update pro or are you using the downloaded exe from your MyEsri?
... View more
11-19-2024
07:33 AM
|
0
|
1
|
2031
|
|
POST
|
So basically like I have the tags parameter currently formatted. Thanks @Jamie_Leitch_CNF
... View more
11-13-2024
02:03 PM
|
0
|
0
|
1922
|
|
POST
|
Here's how I've always done this in the Python IDLE if it helps anyone: # Import system modules
import sys, os, arcpy, time, smtplib
from arcpy import env
from datetime import timedelta
# Local variables...
message = ""
current_time = time.asctime()
starting_time = time.time()
arcpy.SetLogHistory(False)
env.configKeyword= "DEFAULTS"
env.overwriteOutput = True
def stageSDDraft(mp,lyrName,summary,lyrs,descript,folder,tags,sdfolder):
sddraft_out = "C:/ArcProProjects3x/PortalUpdates/" + sdfolder + "/" + lyrName + ".sddraft"
draft = mp.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", lyrName, lyrs)
draft.portalFolder = folder
draft.tags = tags
##draft.allowExporting = True
draft.summary = summary
draft.description = descript
draft.overwriteExistingService = True
draft.exportToSDDraft(sddraft_out)
return
try:
portal = arcpy.SignInToPortal("https://webserver.ourorg.net/portal", "myUserName", "MyPassword")
aprx = arcpy.mp.ArcGISProject('C:/ArcProProjects3x/PortalUpdates/PortalUpdates.aprx')
for m in aprx.listMaps("Trans Layers"):
print("Map: " + m.name)
for lyr in m.listLayers():
if lyr.name == 'Thoroughfare':
lyrList = []
lyrList.append(m.listLayers(lyr.name)[0])
print(lyr.name)
stageSDDraft(m, lyr.name, "The Thoroughfare layer contains existing and planned roadways for Sarasota County, supporting a variety of transportation, evacuation and transportation planning efforts.",lyrList,
"The Thoroughfare layer contains existing and planned roadways for Sarasota County, supporting a variety of transportation, evacuation and transportation planning efforts",
"TransportationLayers","Transportation,Planning,Services,Safety","Transportation")
print(lyr.name + " Draft Created")
arcpy.StageService_server('C:/ArcProProjects3x/PortalUpdates/Transportation/' + lyr.name + '.sddraft', 'C:/ArcProProjects3x/PortalUpdates/Transportation/' + lyr.name + '.sd')
print(lyr.name + " Service Staged")
arcpy.UploadServiceDefinition_server('C:/ArcProProjects3x/PortalUpdates/Transportation/' + lyr.name + '.sd', 'My Hosted Services', "","","","","","OVERRIDE_DEFINITION","SHARE_ONLINE","PUBLIC",
"SHARE_ORGANIZATION","Transportation Layers Group")
print(lyr.name + " Service Uploaded")
message = message + "\n" + "1. " + (lyr.name) + " Service Uploaded" So it looks like I am going to have to adjust my tags string here in the stageSDDraft: "Transportation,Planning,Services,Safety" to "Transportation", "Planning", "Services", "Safety" or to ["Transportation", "Planning", "Services", "Safety"] @Jamie_Leitch_CNF
... View more
11-13-2024
01:15 PM
|
0
|
2
|
1948
|
|
POST
|
Definitely thank you for this @Jamie_Leitch_CNF - I've been using this method since 1.x (or ever since they created the arcpy sharing module) to create sddrafts, stage the sd file, and upload same in order to keep our weekly Enterprise hosted feature layers current....
... View more
11-13-2024
12:59 PM
|
0
|
3
|
1948
|
| Title | Kudos | Posted |
|---|---|---|
| 6 | Thursday | |
| 1 | a week ago | |
| 1 | 3 weeks ago | |
| 1 | 4 weeks ago | |
| 2 | 05-22-2026 01:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|