<div dir="ltr"><div><div><div><div>Hi All,<br><br></div><div>I am trying to change the master node&#39;s IP and port</div><div><br></div>After stopping the slon process, I ran store path as follows:<br><br>store path (server = 1, client = 2, conninfo=&#39;host=new_ip dbname=$DB1 user=$USER1 port=$PORT1&#39;);<br>store path (server = 1, client = 3, conninfo=&#39;host=new_ip dbname=$DB1 user=$USER1 port=$PORT1&#39;);<br><br><br></div>But on trying to start slon process again after changing the node config, I got the following error:<br><br>nohup /usr/bin/slon -d 2 -p /var/run/slony1/cl1node1.pid -f /home/postgres/slony_test/cl1_node1.conf &gt; /home/postgres/slony_test/log/cl1node1.log 2&gt;&amp;1 &amp;<br>[1] 5626<br>postgres@GB:~/slony_test$ 2014-10-14 13:09:13 IST ERROR:  duplicate key value violates unique constraint &quot;sl_nodelock-pkey&quot;<br>2014-10-14 13:09:13 IST DETAIL:  Key (nl_nodeid, nl_conncnt)=(1, 0) already exists.<br>2014-10-14
 13:09:13 IST STATEMENT:  select &quot;_Cluster1&quot;.cleanupNodelock(); insert 
into &quot;_Cluster1&quot;.sl_nodelock values (    1, 0, 
&quot;pg_catalog&quot;.pg_backend_pid()); <br><br><br></div>I even tried the drop path but it gives the following error:<br><br>sh drop_path.sh <br>2014-10-14 13:52:06 IST ERROR:  Slony-I: Path cannot be dropped, subscription of set 1 needs it<br>2014-10-14 13:52:06 IST STATEMENT:  lock table &quot;_Cluster1&quot;.sl_event_lock, &quot;_Cluster1&quot;.sl_config_lock;select &quot;_Cluster1&quot;.dropPath(1, 2); <br>&lt;stdin&gt;:8: PGRES_FATAL_ERROR lock table &quot;_Cluster1&quot;.sl_event_lock, &quot;_Cluster1&quot;.sl_config_lock;select &quot;_Cluster1&quot;.dropPath(1, 2);  - ERROR:  Slony-I: Path cannot be dropped, subscription of set 1 needs it<br><br><br></div>Did anyone face the same issue when trying to change ip of a node? In my case, I am trying to change IP of master node.<br><div><br></div><div>Regards,</div><div>Granthana</div></div>