<?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 Re: Changing Central Node Manually, 403 Error in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Changing-Central-Node-Manually-403-Error/m-p/2509177#M28897</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second Powershell script, did you try to perform a GET call, as described in this doc ?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-POST-Proxy.htm" target="_blank"&gt;Issuing POST commands via the proxy | Qlik Sense for developers Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 07:34:02 GMT</pubDate>
    <dc:creator>mpc</dc:creator>
    <dc:date>2025-03-11T07:34:02Z</dc:date>
    <item>
      <title>Changing Central Node Manually, 403 Error</title>
      <link>https://community.qlik.com/t5/Management-Governance/Changing-Central-Node-Manually-403-Error/m-p/2509120#M28896</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;
&lt;P&gt;I'm hoping to use Powershell to get my Qlik cluster to switch central nodes.&amp;nbsp; Right now, I've got the following code which works correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwert2ui")
$url = "https://002.megacorp.com/admin/qrs/ServerNodeConfiguration/full?xrfkey=12345678qwert2ui"
$clusterNodes = Invoke-RestMethod -Uri $url -Method Get -Headers $hdrs -UseDefaultCredentials&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I send the request to change, I get a 403.&amp;nbsp; I am sending this request with RootAdmin privileges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$destinationNodeName = '003.megacorp.com'
$currentCentralNode = $clusterNodes | Where-Object { $_.isCentral -eq $true }

$destinationCentralNode = $clusterNodes | Where-Object { $_.hostName -match $destinationNodeName }
$destinationCentralNodeGuid = $destinationCentralNode.id

$changeOverPutUrl = "https://003.megacorp.com/admin/qrs/failover/tonode/${destinationCentralNodeGuid}"
Write-Host $changeOverPutUrl
$response = Invoke-RestMethod -Uri $changeOverPutUrl -Method Post -Headers $hdrs -UseDefaultCredentials&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justindallasverizon_0-1741626105060.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178346i1AA92F237286F96F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justindallasverizon_0-1741626105060.png" alt="justindallasverizon_0-1741626105060.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I look into the logs, I see "InvalidConnection" along with the 403 code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justindallasverizon_0-1741632868304.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178349iF1047634A39E2BC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justindallasverizon_0-1741632868304.png" alt="justindallasverizon_0-1741632868304.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What might I be doing wrong?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 18:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Changing-Central-Node-Manually-403-Error/m-p/2509120#M28896</guid>
      <dc:creator>justindallasverizon</dc:creator>
      <dc:date>2025-03-10T18:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Central Node Manually, 403 Error</title>
      <link>https://community.qlik.com/t5/Management-Governance/Changing-Central-Node-Manually-403-Error/m-p/2509177#M28897</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the second Powershell script, did you try to perform a GET call, as described in this doc ?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/RepositoryServiceAPI/Content/Sense_RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-POST-Proxy.htm" target="_blank"&gt;Issuing POST commands via the proxy | Qlik Sense for developers Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 07:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Changing-Central-Node-Manually-403-Error/m-p/2509177#M28897</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2025-03-11T07:34:02Z</dc:date>
    </item>
  </channel>
</rss>

