Closed jhevenor closed 4 years ago
@jhevenor
I suspect the issue is with the Portal "ContentDir" and "ContentDirectoryLocation" paths in the json file.
Try the following examples:
"ContentDir": "C:\\portalforarcgis\\content"
"ContentDirectoryLocation": "\\\\[Fileshare Machine Name 1]\\[Fileshare Name]\\portalforarcgis\\content\\arcgisportal\\content"
I've updated to use this file structure and things move on. Seeing content twice in that path makes me cringe a bit, and requiring the deep path is a bug in my opinion.
@jhevenor
I have had success with the following examples:
Example 1: Local content directory:
"ContentDir": "C:\\arcgisportal"
"ContentDirectoryLocation": "C:\\arcgisportal\\content"
End result:
C:\arcgisportal\content
C:\arcgisportal\db
C:\arcgisportal\index
C:\arcgisportal\logs
Example 2: Content in a file share:
"FileShareLocalPath": "C:\\FileShare",
"FileShareName": "FileShare",
"ContentDir": "C:\\arcgisportal"
"ContentDirectoryLocation": "\\\\[Fileshare Machine Name 1]\\[FileShareName]\\arcgisportal\\content"
End result:
\\[Fileshare Machine Name 1]\FileShare\arcgisportal\content
C:\arcgisportal\db
C:\arcgisportal\index
C:\arcgisportal\logs
A few observations I have noticed. When performing a manual installation of portal silently using:
Setup.exe /qn INSTALLDIR="C:\ArcGIS\Portal" CONTENTDIR="C:\arcgisportal\content"
This creates C:\arcgisportal\content\arcgisportal\content. Then if during create site we specify C:\arcgisportal\content it throws the following error:
com.esri.arcgis.portal.admin.core.PortalException: com.esri.arcgis.portal.admin.core.PortalException: java.io.FileNotFoundException: C:\arcgisportal\content\items\portal\portal-config.properties (The system cannot find the path specified)
Then portal attempts to roll back, but fails to do so, and is stuck in an "upgrade" mode even though it was a fresh installation. I believe this is perhaps what we are seeing in your original post.
Looks like the Portal setup expects to see 'arcgisportal' in the "ContentDir" path, and if it doesn't then it appends 'arcgisportal\content' to the given path and causes site creation to fail unless the exact path that was created after setup completes (C:\arcgisportal\content\arcgisportal\content).
Thanks @cameronkroeker , I'll give this a try when I circle back to this. I had a successful run with the deep path approach.
I won't close this as it's still a weird behaviour in my view.
...wrong button :(
@jhevenor
If you haven't yet circled back to this, please try with the latest release, v3.0.0:
https://github.com/Esri/arcgis-powershell-dsc/releases
Local:
"ContentDir": "C:\\arcgisportal"
"ContentDirectoryLocation": "C:\\arcgisportal\\content"
FileShare:
"FileShareLocalPath": "C:\\FileShare",
"FileShareName": "FileShare",
"ContentDir": "C:\\arcgisportal"
"ContentDirectoryLocation": "\\\\[Fileshare Machine Name 1]\\[FileShareName]\\arcgisportal\\content"
Updated Sample json files to help clarify these parameters in v3.0.2.
I have templates for a handful of environments and some are running Enterprise 10.6.1. My cloud deploy script installs PSDSC on the target virtual machines. I've been updating these deploy scripts to attempt an install of 10.6.1 using the latest PSDSC 2.1.1.
I've been assuming I've messed up my template somewhere, but I figured I should reach out and see if the approach is wrong altogether (or if there's a bug somewhere I should know about).
So, standard -mode InstallLicenseConfigure with my usual 10.6.1 installation running PSDSC 2.1.1 gives me this error while installing the portal:
When I try to launch portal from the portal machine I get prompted to 'Continue Portal Upgrade', which is when I started to wonder if I've hit some forced update path by accident.
Any comments help. Thanks!