[ejabberd] restore failing after upgrade+migrate, 1.0.0 to 1.1.1

Paul Vixie vixie at isc.org
Sun Jul 9 22:01:55 MSD 2006


> the restore problem is fixed in svn version.

i tried the svn version and while it boots up, ejabberdctl crashes when i
try to talk to it.  note that i normally run from FBSD /usr/ports, and that
this process is part of an upgrade from 5.4/1.0.0 to 6.1/1.1.1 (both amd64),
and that the /usr/ports framework i'm building the svn version within is
probably what's causing the svn version to fail.

> There is a thread on this form april or may on ejabberd forum (but sorry I
> only have mail access for now).

if you mean <http://ejabberd.jabber.ru/node/772> (dated 2006-04-25)
which points to <http://www.jabber.ru/bugzilla/show_bug.cgi?id=27>,
i made a /usr/ports/net-im/ejabberd/files/patch-zz file out of those
four files (three new files and one patch) and am having the same
trouble as before.  "status" works fine:

	#kd1.tisf:amd64# su ejabberd -c 'ejabberdctl ejabberd at kd1 status'
        Node ejabberd at kd1 is started. Status: started
	ejabberd is running

"restore" does not:

	su ejabberd -c 'ejabberdctl ejabberd at kd1 restore /tmp/ejabberd.backup'
	RPC failed on the node ejabberd at kd1: {'EXIT',
                                         {{case_clause,
                                              {aborted,{no_exists,presence}}},
                                          [{ejabberd_ctl,process,1},
                                           {rpc,'-handle_call/3-fun-0-',5}]}}

due to the concerns about possible firewalls, i've removed all relevant
rules and collected the following tcpdump output during the "restore"
failure shown above.  the listeners all look fine to me:

	#kd1.tisf:amd64# netstat -an|grep LISTEN
	tcp4       0      0  *.8888                 *.*            LISTEN
	tcp4       0      0  *.5280                 *.*            LISTEN
	tcp4       0      0  *.5269                 *.*            LISTEN
	tcp4       0      0  *.5223                 *.*            LISTEN
	tcp4       0      0  *.5222                 *.*            LISTEN
	tcp4       0      0  127.0.0.1.61474        *.*            LISTEN
	tcp4       0      0  *.52002                *.*            LISTEN
	tcp4       0      0  *.4369                 *.*            LISTEN

here's the tcpdump.  any further ideas would be muchly appreciated.  i'm going
to study the diffs from 1.1.1 to svn-current now, and hope i can see something
else for my patch-zz file.

10:29:10.428380 IP localhost.61916 > localhost.4369: S 2542081640:2542081640(0) win 65535 <mss 16344,nop,wscale 1,nop,nop,timestamp 62744822 0,sackOK,eol>
10:29:10.428493 IP localhost.4369 > localhost.61916: S 2530998713:2530998713(0) ack 2542081641 win 65535 <mss 16344,nop,wscale 1,nop,nop,timestamp 62744822 62744822,sackOK,eol>
10:29:10.428539 IP localhost.61916 > localhost.4369: . ack 1 win 35840 <nop,nop,timestamp 62744822 62744822>
10:29:10.429694 IP localhost.61916 > localhost.4369: P 1:27(26) ack 1 win 35840 <nop,nop,timestamp 62744823 62744822>
10:29:10.429824 IP localhost.4369 > localhost.61916: P 1:5(4) ack 27 win 35840 <nop,nop,timestamp 62744823 62744823>
10:29:10.529128 IP localhost.61916 > localhost.4369: . ack 5 win 35840 <nop,nop,timestamp 62744923 62744823>
10:29:10.532043 IP me.61355 > me.4369: S 2648699652:2648699652(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 62744925 0,sackOK,eol>
10:29:10.532094 IP me.4369 > me.61355: S 1493810357:1493810357(0) ack 2648699653 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 62744925 62744925,sackOK,eol>
10:29:10.532119 IP me.61355 > me.4369: . ack 1 win 33304 <nop,nop,timestamp 62744926 62744925>
10:29:10.532307 IP me.61355 > me.4369: P 1:12(11) ack 1 win 33304 <nop,nop,timestamp 62744926 62744925>
10:29:10.532399 IP me.4369 > me.61355: P 1:22(21) ack 12 win 33304 <nop,nop,timestamp 62744926 62744926>
10:29:10.532442 IP me.4369 > me.61355: F 22:22(0) ack 12 win 33304 <nop,nop,timestamp 62744926 62744926>
10:29:10.532478 IP me.61355 > me.4369: . ack 23 win 33293 <nop,nop,timestamp 62744926 62744926>
10:29:10.532696 IP me.61355 > me.4369: F 12:12(0) ack 23 win 33304 <nop,nop,timestamp 62744926 62744926>
10:29:10.532747 IP me.4369 > me.61355: . ack 13 win 33303 <nop,nop,timestamp 62744926 62744926>
10:29:10.533043 IP me.64276 > me.52002: S 1356256477:1356256477(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 62744926 0,sackOK,eol>
10:29:10.533096 IP me.52002 > me.64276: S 981170572:981170572(0) ack 1356256478 win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 62744927 62744926,sackOK,eol>
10:29:10.533118 IP me.64276 > me.52002: . ack 1 win 33304 <nop,nop,timestamp 62744927 62744927>
10:29:10.533333 IP me.64276 > me.52002: P 1:25(24) ack 1 win 33304 <nop,nop,timestamp 62744927 62744927>
10:29:10.533661 IP me.52002 > me.64276: P 1:6(5) ack 25 win 33304 <nop,nop,timestamp 62744927 62744927>
10:29:10.633113 IP me.64276 > me.52002: . ack 6 win 33304 <nop,nop,timestamp 62745027 62744927>
10:29:10.633137 IP me.52002 > me.64276: P 6:31(25) ack 25 win 33304 <nop,nop,timestamp 62745027 62745027>
10:29:10.633412 IP me.64276 > me.52002: P 25:48(23) ack 31 win 33304 <nop,nop,timestamp 62745027 62745027>
10:29:10.633718 IP me.52002 > me.64276: P 31:50(19) ack 48 win 33304 <nop,nop,timestamp 62745027 62745027>
10:29:10.634009 IP me.52002 > me.64276: P 50:213(163) ack 48 win 33304 <nop,nop,timestamp 62745027 62745027>
10:29:10.634054 IP me.64276 > me.52002: . ack 213 win 33222 <nop,nop,timestamp 62745027 62745027>
10:29:10.634138 IP me.64276 > me.52002: P 48:112(64) ack 213 win 33222 <nop,nop,timestamp 62745028 62745027>
10:29:10.634214 IP me.64276 > me.52002: P 112:286(174) ack 213 win 33222 <nop,nop,timestamp 62745028 62745027>
10:29:10.634247 IP me.52002 > me.64276: . ack 286 win 33185 <nop,nop,timestamp 62745028 62745028>
10:29:10.634300 IP me.64276 > me.52002: P 286:433(147) ack 213 win 33222 <nop,nop,timestamp 62745028 62745028>
10:29:10.648135 IP me.52002 > me.64276: P 213:429(216) ack 433 win 33304 <nop,nop,timestamp 62745042 62745028>
10:29:10.648311 IP me.64276 > me.52002: P 433:475(42) ack 429 win 33304 <nop,nop,timestamp 62745042 62745042>
10:29:10.662346 IP localhost.61916 > localhost.4369: F 27:27(0) ack 5 win 35840 <nop,nop,timestamp 62745056 62744823>
10:29:10.662424 IP localhost.4369 > localhost.61916: . ack 28 win 35840 <nop,nop,timestamp 62745056 62745056>
10:29:10.662469 IP me.64276 > me.52002: F 475:475(0) ack 429 win 33304 <nop,nop,timestamp 62745056 62745042>
10:29:10.662494 IP me.52002 > me.64276: . ack 476 win 33304 <nop,nop,timestamp 62745056 62745042>
10:29:10.662524 IP localhost.4369 > localhost.61916: F 5:5(0) ack 28 win 35840 <nop,nop,timestamp 62745056 62745056>
10:29:10.662580 IP localhost.61916 > localhost.4369: . ack 6 win 35839 <nop,nop,timestamp 62745056 62745056>
10:29:10.662703 IP me.52002 > me.64276: F 429:429(0) ack 476 win 33304 <nop,nop,timestamp 62745056 62745042>
10:29:10.663073 IP me.64276 > me.52002: . ack 430 win 33303 <nop,nop,timestamp 62745056 62745056>


More information about the ejabberd mailing list