<div dir="ltr">Hi Glyn,<div><br></div><div>Yes I had stopped all the slons for every node but I did not DELETE FROM &quot;_Cluster1&quot;.sl_nodelock WHERE nl_nodeid = 1 AND nl_conncnt = 0;</div><div><br></div><div>Regards,</div><div>Granthana<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 9:13 PM, Glyn Astill <span dir="ltr">&lt;<a href="mailto:glynastill@yahoo.co.uk" target="_blank">glynastill@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
&gt; From: Granthana Biswas &lt;<a href="mailto:granthana.biswas@gmail.com">granthana.biswas@gmail.com</a>&gt;<br>
&gt;To: &quot;<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a>&quot; &lt;<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a>&gt;<br>
&gt;Sent: Tuesday, 14 October 2014, 11:15<br>
&gt;Subject: [Slony1-general] Changing master node&#39;s IP &amp; port<br>
<span class="">&gt;<br>
&gt;<br>
&gt;<br>
&gt;Hi All,<br>
&gt;<br>
&gt;<br>
&gt;I am trying to change the master node&#39;s IP and port<br>
&gt;<br>
&gt;After stopping the slon process, I ran store path as follows:<br>
&gt;<br>
&gt;store path (server = 1, client = 2, conninfo=&#39;host=new_ip dbname=$DB1 user=$USER1 port=$PORT1&#39;);<br>
&gt;store path (server = 1, client = 3, conninfo=&#39;host=new_ip dbname=$DB1 user=$USER1 port=$PORT1&#39;);<br>
&gt;<br>
&gt;<br>
&gt;But on trying to start slon process again after changing the node config, I got the following error:<br>
&gt;<br>
&gt;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>
&gt;[1] 5626<br>
&gt;postgres@GB:~/slony_test$ 2014-10-14 13:09:13 IST ERROR:  duplicate key value violates unique constraint &quot;sl_nodelock-pkey&quot;<br>
&gt;2014-10-14 13:09:13 IST DETAIL:  Key (nl_nodeid, nl_conncnt)=(1, 0) already exists.<br>
&gt;2014-10-14<br>
13:09:13 IST STATEMENT:  select &quot;_Cluster1&quot;.cleanupNodelock(); insert<br>
into &quot;_Cluster1&quot;.sl_nodelock values (    1, 0,<br>
&quot;pg_catalog&quot;.pg_backend_pid());<br>
&gt;<br>
&gt;<br>
<br>
</span>Hi Granthana,<br>
<br>
Are you sure you&#39;d stopped all the slons?  A quick &quot;ps aux | grep slon&quot; on each machine where you have slons running should be enough to check.<br>
<br>
As long as you&#39;re positive you&#39;ve stopped all the slon processes, you could clean up sl_nodelock by just doing DELETE FROM &quot;_Cluster1&quot;.sl_nodelock WHERE nl_nodeid = 1 AND nl_conncnt = 0;<br>
<span class=""><br>
<br>
<br>
&gt;I even tried the drop path but it gives the following error:<br>
&gt;<br>
&gt;sh drop_path.sh<br>
&gt;2014-10-14 13:52:06 IST ERROR:  Slony-I: Path cannot be dropped, subscription of set 1 needs it<br>
&gt;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>
&gt;&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>
&gt;<br>
&gt;<br>
&gt;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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;Regards,<br>
&gt;Granthana<br>
</span>&gt;_______________________________________________<br>
&gt;Slony1-general mailing list<br>
&gt;<a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
&gt;<a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
</blockquote></div><br></div></div></div>