<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 1:31 PM, Scott Marlowe <span dir="ltr">&lt;<a href="mailto:scott.marlowe@gmail.com" target="_blank">scott.marlowe@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 29, 2012 at 2:27 PM, Tory M Blue &lt;<a href="mailto:tmblue@gmail.com">tmblue@gmail.com</a>&gt; wrote:<br>
<br>
&gt;&gt;&gt;      &gt; From: Tory M Blue &lt;<a href="mailto:tmblue@gmail.com">tmblue@gmail.com</a> &lt;mailto:<a href="mailto:tmblue@gmail.com">tmblue@gmail.com</a>&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;      &gt;To: slony1-general &lt;<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a><br>
&gt;&gt;&gt;     &lt;mailto:<a href="mailto:slony1-general@lists.slony.info">slony1-general@lists.slony.info</a>&gt;&gt;<br>
&gt;&gt;&gt;      &gt;Sent: Wednesday, 28 November 2012, 18:35<br>
&gt;&gt;&gt;      &gt;Subject: [Slony1-general] data copy for set 1 failed 3 times -<br>
&gt;&gt;&gt;     sleep 60 seconds<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;      &gt;Greetings<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;      &gt;I&#39;ve just brought up a replication node across the state, we have<br>
&gt;&gt;&gt;     gig circuits, but still going over the net over a vpn tunnel. So<br>
&gt;&gt;&gt;     there is some delay,<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;      &gt;I&#39;m getting these errors and can&#39;t get the initial replication to<br>
&gt;&gt;&gt;     finish<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;      &gt;4273435:2012-11-27 16:45:17 PST WARN   remoteWorkerThread_1: data<br>
&gt;&gt;&gt;     copy for set 1 failed 3 times - sleep 60 seconds<br>
&gt;&gt;&gt;      &gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;     Is that the only line you get in your logs?  If so use a higher<br>
&gt;&gt;&gt;     setting for log_level (like log_level=4).<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;     Also is there anything in the postgresql log to indicate the problem?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I get the following<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 2012-11-29 08:34:38 PST CONFIG remoteWorkerThread_1: 3858.988 seconds to<br>
&gt;&gt;&gt; copy table &quot;cls&quot;.&quot;listings&quot;<br>
&gt;&gt;&gt; 2012-11-29 08:34:38 PST CONFIG remoteWorkerThread_1: copy table<br>
&gt;&gt;&gt; &quot;cls&quot;.&quot;customers&quot;<br>
&gt;&gt;&gt; 2012-11-29 08:34:38 PST CONFIG remoteWorkerThread_1: Begin COPY of table<br>
&gt;&gt;&gt; &quot;cls&quot;.&quot;customers&quot;<br>
&gt;&gt;&gt; 2012-11-29 08:34:38 PST ERROR  remoteWorkerThread_1: &quot;select<br>
&gt;&gt;&gt; &quot;_admissioncls&quot;.copyFields(8);&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; What is the structure of the table with table_id=8 (ie set add table(id=8,<br>
&gt;&gt; fully qualified name=?????)<br>
&gt;&gt;<br>
&gt;&gt; If you do<br>
&gt;&gt; manually run<br>
&gt;&gt; select _admissioncls&quot;.copyFields(8);<br>
&gt;&gt; from psql, what does it come back with?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt; So ran it again with debug = 4, same failure same spot. Should be be dying<br>
&gt; due to the logswitch, but I guess it could be?<br>
&gt;<br>
&gt; Failed again, this time with heavier debug, but not showing me much (level<br>
&gt; 4)<br>
&gt; 1235574-2012-11-29 12:22:12 PST CONFIG remoteWorkerThread_1: Begin COPY of<br>
&gt; table &quot;cls&quot;.&quot;customers&quot;<br>
&gt; 1235665-2012-11-29 12:22:12 PST ERROR  remoteWorkerThread_1: &quot;select<br>
&gt; &quot;_admissioncls&quot;.copyFields(8);&quot;<br>
&gt; 1235759:2012-11-29 12:22:12 PST WARN   remoteWorkerThread_1: data copy for<br>
&gt; set 1 failed 1 times - sleep 15 seconds<br>
&gt; Followed sometime later by this<br>
&gt; 2012-11-29 12:22:28 PST DEBUG2 remoteWorkerThread_2: forward confirm<br>
&gt; 3,5001168772 received by 4<br>
&gt; 2012-11-29 12:22:28 PST INFO   copy_set 1 - omit=f - bool=0<br>
&gt; 2012-11-29 12:22:28 PST INFO   omit is FALSE<br>
&gt; And it starts all over again.<br>
&gt;<br>
&gt; Postgres logs<br>
&gt;<br>
&gt; 2012-11-29 12:19:40 PST    HINT:  Consider increasing the configuration<br>
&gt; paramete<br>
&gt; r &quot;checkpoint_segments&quot;.<br>
&gt; 2012-11-29 12:22:13 PST admissionclsdb postgres [local] NOTICE:  Slony-I:<br>
&gt; Logswi<br>
&gt; tch to sl_log_2 initiated<br>
&gt; 2012-11-29 12:22:13 PST admissionclsdb postgres [local] CONTEXT:  SQL<br>
&gt; statement<br>
&gt; &quot;SELECT &quot;_admissioncls&quot;.logswitch_start()&quot;<br>
&gt;     PL/pgSQL function &quot;cleanupevent&quot; line 96 at PERFORM<br>
&gt;<br>
&gt; Nothing in /var/log/messages or dmesg, this is not a system thing it doesn&#39;t<br>
&gt; appear. Slony configurations sync rate, or something is putting the kabosh<br>
&gt; on this.<br>
<br>
Is there anything useful in the postgresql logs from the same time?<br>
Like maybe lost connections or crashing backends?<br></blockquote><div><br>Nothing, the postgres logs are clean, other than the checkpoint warnings, nothing, really absolutely nothing. This appears to be slony centric.<br>
<br>The only other thought on this, is that this remote db is 9.1.6 and the local (master) is 9.1.4, but same slony versions 2.1.1. However I and the world seem to upgrade our databases using this method, so that can&#39;t be it.<br>
<br>I don&#39;t know,  not sure if there are some slony tuning I should be making due to the extra delay.<br><br>Tory <br></div></div><br></div>