<div dir="ltr"><div><div>The problem is that starting with slony 2.1 slon connects to the database using parameter conninfo and init script takes it from  /etc/sysconfig/slony1-93(which is redundant), moreover by default it connects to postgres on localhost not to the database you are replicating , cannot find _slonycluster schema and throws above error. Adding database name to /etc/sysconfig/slony1-93 won&#39;t help<br>
<br></div><div>I&#39;ve changed in the init script /etc/init.d/slony1-93  the following line:<br>$SU -l postgres -c &quot;$SLONDAEMON -f $SLONCONF -p $SLONPID $SLONCLUSTERNAME $SLONCONNINFO &amp;&quot; &gt;&gt; &quot;$SLONLOGDIR/slonystartup.log&quot; 2&gt;&amp;1 &lt; /dev/null<br>
</div><div>to <br></div> $SU -l postgres -c &quot;$SLONDAEMON -f $SLONCONF -p $SLONPID $SLONCLUSTERNAME &#39;$SLONCONNINFO&#39; &amp;&quot; &gt;&gt; &quot;$SLONLOGDIR/slonystartup.log&quot; 2&gt;&amp;1 &lt; /dev/null<br><br>
</div>and that solved the problem<br><div><div> </div></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><span style="color:rgb(153,153,153)"><font size="1">Shamshinur Taktayeva<br></font></span></div>
<span style="color:rgb(153,153,153)"><font size="1"><a href="mailto:shurale9811@gmail.com" target="_blank">shurale9811@gmail.com</a><br></font></span></div><span style="color:rgb(153,153,153)"><font size="1">mob:4164536209</font></span><br>
</div></div>
<br><br><div class="gmail_quote">On Thu, Oct 17, 2013 at 5:08 AM, Sebastien Marchand <span dir="ltr">&lt;<a href="mailto:smarchand@sgo.fr" target="_blank">smarchand@sgo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
This error :<br>
<div class="im"> ERROR:  relation &quot;_sloncluster.sl_local_node_id&quot; does not exist at<br>
character 30<br>
<br>
</div>Appear every 10 seconds in postgresql logs.<br>
<br>
But i do another replication on another server (repli_local111) and no error<br>
! same virtual server same scripts but no error...<br>
<br>
I will try to find the problem.<br>
<div class="im"><br>
-----Message d&#39;origine-----<br>
De : Steve Singer [mailto:<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>]<br>
</div>Envoyé : mercredi 16 octobre 2013 19:34<br>
<div class="im HOEnZb">À : Sebastien Marchand<br>
Cc : <a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a><br>
Objet : Re: [Slony1-general] Problem slony 2.2 and pg 9.3 double replication<br>
<br>
</div><div class="HOEnZb"><div class="h5">On 10/16/2013 12:05 PM, Sebastien Marchand wrote:<br>
&gt; No slon running because script launch slon after create set.<br>
&gt;<br>
&gt; So i launch before and IT WORKS !!! thx master ! thanks you so much<br>
&gt;<br>
&gt; I don&#39;t know what it change in slony 2.0.7 and 2.2 but before i could<br>
&gt; do this<br>
&gt;<br>
&gt; But now it&#39;s ok :)<br>
&gt;<br>
<br>
<br>
What SHOULD happen with 2.2 when the slon isn&#39;t running is that slonik<br>
should keep printing:<br>
<br>
waiting for event (1,5000000004) ...<br>
<br>
messages, that isn&#39;t an error that is an information message saying that it<br>
is waiting for the event to be propogated, and that won&#39;t happen unless<br>
slonik is running.<br>
<br>
What I don&#39;t understand is how you were getting<br>
<br>
2013-10-15 10:55:10.950 CEST &gt;ERROR:  relation<br>
&quot;_sloncluster.sl_local_node_id&quot; does not exist at character 30<br>
<br>
<br>
type messages.<br>
<br>
&gt; -----Message d&#39;origine-----<br>
&gt; De : Steve Singer [mailto:<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>] Envoyé : mercredi<br>
&gt; 16 octobre 2013 17:56 À : Sebastien Marchand Objet : Re:<br>
&gt; [Slony1-general] Problem slony 2.2 and pg 9.3 double replication<br>
&gt;<br>
&gt; On 10/16/2013 11:52 AM, Sebastien Marchand wrote:<br>
&gt;&gt; Yes that&#39;s why i will delete all replication 2.0 and migrate<br>
&gt;&gt; postgresql after i rebuild new replication.<br>
&gt;&gt;<br>
&gt;&gt; when i&#39;ve my  error  &quot; waiting for event (1,5000000004) to be<br>
&gt;&gt; confirmed on node 110 &quot; in postgresql if i do :<br>
&gt;&gt;<br>
&gt;&gt; select  * from _repli_local110.sl_path; =&gt; 1;110;&quot;dbname=RPP2<br>
&gt;&gt; host=192.168.0.101 port=5432 user=slony<br>
&gt;&gt; password=123&quot;;10<br>
&gt;&gt;<br>
&gt;&gt; Why just one line ?? i need two lines !<br>
&gt;&gt;<br>
&gt;&gt; In my sl_event :<br>
&gt;&gt;<br>
&gt;&gt; 110;5000000001;&quot;2013-10-16<br>
&gt;&gt; 17:50:54.697374+02&quot;;&quot;695958:695958:&quot;;&quot;STORE_PATH&quot;;&quot;1&quot;;&quot;110&quot;;&quot;dbname=R<br>
&gt;&gt; P<br>
&gt;&gt; P2<br>
&gt;&gt; host=192.168.0.101 port=5432 user=slony password=123&quot;;&quot;10&quot;;&quot;&quot;;&quot;&quot;;&quot;&quot;;&quot;&quot;<br>
&gt;&gt;<br>
&gt;&gt; I think there is a problem here... or not<br>
&gt;<br>
&gt; Slonik when it executes the STORE PATH , it will insert a row in<br>
&gt; sl_path on each node.<br>
&gt;<br>
&gt; When slon is running it will then replicate the STORE_PATH event from<br>
&gt; one node to the other to create the second sl_path row in each node.<br>
&gt;<br>
&gt; Is your slon running?<br>
&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; -----Message d&#39;origine-----<br>
&gt;&gt; De : Steve Singer [mailto:<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>] Envoyé : mercredi<br>
&gt;&gt; 16 octobre 2013 17:02 À : Sebastien Marchand Cc :<br>
&gt;&gt; <a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a> Objet : Re: [Slony1-general] Problem<br>
&gt;&gt; slony 2.2 and pg 9.3 double replication<br>
&gt;&gt;<br>
&gt;&gt; On 10/16/2013 10:57 AM, Sebastien Marchand wrote:<br>
&gt;&gt;&gt; I already tried to put in script but no change.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Can you tell me where is the line of code that is generating this error<br>
?<br>
&gt;&gt;&gt; it&#39;s a sql function ?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I continue to search i need this to migrate.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;      slon_mkquery(&amp;query, &quot;select max(ev_seqno) FROM \&quot;_%s\&quot;.sl_event&quot;<br>
&gt;&gt;                               &quot; , \&quot;_%s\&quot;.sl_node &quot;<br>
&gt;&gt;                               &quot; where ev_origin= &quot;<br>
&gt;&gt;                               &quot;     (select last_value from<br>
&gt;&gt; \&quot;_%s\&quot;.sl_local_node_id) &quot;<br>
&gt;&gt;                               &quot; AND %s AND sl_node.no_id=&quot;<br>
&gt;&gt;                               &quot; ev_origin&quot;<br>
&gt;&gt;                               ,script-&gt;clustername, script-&gt;clustername,<br>
&gt;&gt;                               script-&gt;clustername, event_filter);<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In slonik.c<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; slonik_get_last_event_id(SlonikStmt * stmt,<br>
&gt;&gt;                                               SlonikScript * script,<br>
&gt;&gt;                                               const char *event_filter,<br>
&gt;&gt;                                               int64 **events)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Also, if you are planning on migrating from 2.0 to 2.2 with UPDATE<br>
&gt;&gt; FUNCTIONS you should be aware of bug #320<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; -----Message d&#39;origine-----<br>
&gt;&gt;&gt; De : Steve Singer [mailto:<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>] Envoyé : mercredi<br>
&gt;&gt;&gt; 16 octobre 2013 16:53 À : Sebastien Marchand Cc :<br>
&gt;&gt;&gt; <a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a> Objet : Re: [Slony1-general] Problem<br>
&gt;&gt;&gt; slony 2.2 and pg 9.3 double<br>
&gt;&gt; replication<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 10/16/2013 10:48 AM, Steve Singer wrote:<br>
&gt;&gt;&gt;&gt; On 10/16/2013 10:06 AM, Sebastien Marchand wrote:<br>
&gt;&gt;&gt;&gt;&gt;&gt; CLUSTER NAME = repli_local110 ;<br>
&gt;&gt;&gt;&gt;&gt;&gt; NODE 101 ADMIN CONNINFO = &#39;dbname=RPP2 host=192.168.0.101<br>
&gt;&gt;&gt;&gt;&gt;&gt; port=5432 user=slony password=password&#39;; NODE 110 ADMIN CONNINFO<br>
&gt;&gt;&gt;&gt;&gt;&gt; =<br>
&gt;&gt;&gt;&gt;&gt;&gt; &#39;dbname=RPP2 host=192.168.0.110 port=5432 user=slony<br>
&gt;&gt;&gt;&gt;&gt;&gt; password=password&#39;;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; It&#39;s the file repli_local110.preamble but for email i copy this<br>
&gt;&gt;&gt;&gt;&gt; file in my script :)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Actually IGNORE what I said below,<br>
&gt;&gt;&gt; I hit send way too quickly before reviewing my output.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am NOT yet able to reproduce this, but try pasting your preamble<br>
&gt;&gt;&gt; inline and see if it works.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I think I see the line of code that is generating the error you are<br>
&gt;&gt;&gt; seeing but I don&#39;t understand how/why it is substituting using<br>
&gt;&gt;&gt; _sloncluster instead of repli_local10;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Sometimes details are important.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Copy the preamble file inline into your script and it will work<br>
&gt;&gt;&gt;&gt; (like you did in your email)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I can reproduce your issue with the preamble moved to a different file.<br>
&gt;&gt;&gt;&gt;      This is a bug, it shouldn&#39;t be hard to fix, thanks for reporting<br>
it.<br>
&gt;&gt;&gt;&gt;      I suspect the fix will be included in 2.2.1 due in the next<br>
&gt;&gt;&gt;&gt; few weeks (since this has been a busy week for 2.2.0 bugs - ie #318<br>
&gt;&gt;&gt;&gt; and<br>
&gt;&gt; #320).<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
Slony1-general mailing list<br>
<a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
<a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
</div></div></blockquote></div><br></div>