Error while executing Configure-PlatformNode.ps1 for setting up Orchestrator in HA

I am trying to setup Orchestrator 19.4.3 in HA on Windows 2012 R2 with MS Sql 2016 Developer edition.
Now while executing Configure-PlatformNode.ps1 on primary with the following attributes, it throws error.

PS C:\Program Files (x86)\UiPath\Orchestrator\Tools> .\Configure-PlatformNode.ps1 -mode ConfigurePrimary -websiteName Ui
Path Orchestrator -nugetPackagesPath \CVMVPD331\NuGetPackages -redisServer redis.domain.local -redisPassword 1234
C:\Program Files (x86)\UiPath\Orchestrator\Tools\Configure-PlatformNode.ps1 : A positional parameter cannot be found
that accepts argument ‘Orchestrator’.
At line:1 char:1

  • .\Configure-PlatformNode.ps1 -mode ConfigurePrimary -websiteName UiPath Orchestr …
  •   + CategoryInfo          : InvalidArgument: (:) [Configure-PlatformNode.ps1], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Configure-PlatformNode.ps1
    
    

If I remove the space between UiPath and Orchestrator for website parameter just so that the script does not assume that Orchestrator is another parameter, I get error on NuGetPackagesPath.

PS C:\Program Files (x86)\UiPath\Orchestrator\Tools> .\Configure-PlatformNode.ps1 -mode ConfigurePrimary -websiteName Ui
PathOrchestrator -nugetPackagesPath \CVMVPD331\NuGetPackages -redisServer redis.domain.local -redisPassword 1234
C:\Program Files (x86)\UiPath\Orchestrator\Tools\Configure-PlatformNode.ps1 : A parameter cannot be found that matches
parameter name ‘nugetPackagesPath’.
At line:1 char:85

  • … thOrchestrator -nugetPackagesPath \CVMVPD331\NuGetPackages -redisServer redis.d …
  •                ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:slight_smile: [Configure-PlatformNode.ps1], ParameterBindingException
    • FullyQualifiedErrorId : NamedParameterNotFound,Configure-PlatformNode.ps1

Hello @Deep_Gautam,
Have you tried to use it like this?

.\Configure-PlatformNode.ps1 -mode ConfigurePrimary -websiteName “UiPath Orchestrator”

With "

Thanks that works. However, I did not get any key values that I am supposed to get after the successful execution of the script like encryption key, NuGetPackage API key etc. which i need to use for configuring secondary node.

I hope you are working on it according to this manual:


And this:

I mentioned about it as I don’t have experience with building Orchestrator nodes but I see in your code:

-nugetPackagesPath \CVMVPD331\NuGetPackages

I don’t see such parameter in any of these documents. Not sure if it’s correct.

yes i am following the standard install instructions. the nugetpackage path that you have highlighted is actually a shared folder for both the orchestrator node to access the contents. Again this is as per the guideline since i do not have a SAN or network drive attached to my VMs.

Besides the script does execute successfully without any errors and i can see the web.config file also got updated.

If this is shared folder (network location) I think it should be followed by double backslash (\\folder\folder1). Not sure about it.

yes it is double back slash. just a typo from my side while putting it here.