git-cvsimport problem

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

git-cvsimport problem

From: Grzegorz Kulewski <hidden>
Date: 2016-06-15 22:42:28

Hi,

I think I hit some problem in git-cvsimport or maybe cvsps or maybe (but 
unprobable) in network communication.

I am trying to do:

git-cvsimport -d :pserver:cvs@cvs.rulez.pl:/home/cvsroot -C lms -i -k -u 
-m -v lms

and it looks like it hangs in the middle with message:

cvs [rlog aborted]: unexpected '\x0' reading revision number in RCS file 
/home/cvsroot/lms/templates/noaccess.html,v

and to my understanding does not do anything usefull next. Nothing is 
imported (there is only nearly empty .git tree). I have to press CTRL-C to 
stop it.

strace:
[pid 30796] read(3, "---------------------\nM revision"..., 4096) = 2068
[pid 30796] read(3, "M date: 2003/06/20 21:07:56;  au"..., 4096) = 1448
[pid 30796] read(3, ".19\nM date: 2003/05/26 21:05:47;"..., 4096) = 1448
[pid 30796] read(3, " revision 1.15.2.3\nM date: 2003/"..., 4096) = 1276
[pid 30796] write(2, "cvs [rlog aborted]: unexpected \'"..., 117cvs [rlog 
aborted]: unexpected '\x0' reading revision number in RCS file 
/home/cvsroot/lms/templates/noaccess.html,v
) = 117
[pid 30796] read(3,       <-- hangs on that read

ps:
kangur   30791 30556  3 02:55 pts/4    S+     0:00      \_ strace -f 
git-cvsimport -d :pserver:cvs@cvs.rulez.pl:/home/cv
kangur   30792 30791  2 02:55 pts/4    S+     0:00          \_ 
/usr/bin/perl -w /usr/bin/git-cvsimport -d :pserver:cvs@c
kangur   30796 30792 18 02:55 pts/4    S+     0:03              \_ cvsps 
--norc --cvs-direct -u -A --root :pserver:cvs@c

file descriptors:
kangur@beta ~ $ ls -al /proc/30796/fd/
total 5
dr-x------ 2 kangur users  0 May 30 02:55 .
dr-xr-xr-x 3 kangur users  0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:57 0 -> /dev/pts/4
l-wx------ 1 kangur users 64 May 30 02:57 1 -> pipe:[429154]
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:57 3 -> socket:[429155]
lrwx------ 1 kangur users 64 May 30 02:57 4 -> socket:[429155]
kangur@beta ~ $ ls -al /proc/30792/fd/
total 6
dr-x------ 2 kangur users  0 May 30 02:55 .
dr-xr-xr-x 3 kangur users  0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:57 0 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:57 1 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4
lr-x------ 1 kangur users 64 May 30 02:57 3 -> /home/kangur/.cvspass
lrwx------ 1 kangur users 64 May 30 02:57 4 -> socket:[429124]
lr-x------ 1 kangur users 64 May 30 02:57 5 -> pipe:[429154]
kangur@beta ~ $ ls -al /proc/30791/fd/
total 3
dr-x------ 2 kangur users  0 May 30 02:55 .
dr-xr-xr-x 3 kangur users  0 May 30 02:55 ..
lrwx------ 1 kangur users 64 May 30 02:58 0 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:58 1 -> /dev/pts/4
lrwx------ 1 kangur users 64 May 30 02:55 2 -> /dev/pts/4

netstat:
tcp        0      0 beta.polcom.net:50743   netx.waw.pl:cvspserver 
ESTABLISHED
tcp        0      0 beta.polcom.net:50744   netx.waw.pl:cvspserver 
ESTABLISHED

I am using:
git version 1.3.3
cvsps version 2.1


What is going on?


Thanks in advance,

Grzegorz Kulewski

Re: git-cvsimport problem

From: Martin Langhoff <hidden>
Date: 2016-06-15 22:42:28

On 5/30/06, Grzegorz Kulewski [off-list ref] wrote:
I think I hit some problem in git-cvsimport or maybe cvsps or maybe (but
unprobable) in network communication.
Looks like a cvsps issue. From ps, grab the whole commandine that is
used for the cvsps invocation and try to run it manually. cvsps has
some debugging flags, I would try adding -x -v to see more output, and
perhaps try with --no-cvs-direct

The other thing affecting you is the version of the remote cvs server.

cheers,


martin

Re: git-cvsimport problem

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:28


On Tue, 30 May 2006, Grzegorz Kulewski wrote:
and it looks like it hangs in the middle with message:

cvs [rlog aborted]: unexpected '\x0' reading revision number in RCS file
/home/cvsroot/lms/templates/noaccess.html,v
Are you sure that CVS archive isn't corrupted? That sounds like an 
internal CVS error to me. Doing a "git cvsimport" will obviously get every 
single version of every single file, so it will inevitably also hit errors 
that you migt not hit with a regular "cvs co" (which will only get the 
current version).

There's bound to be some "fsck for CVS" (since people edit files by hand, 
and mistakes must happen), but I have no idea.

That said, it's not like we haven't had our share of cvsps issues and 
other things, so who knows..
and to my understanding does not do anything usefull next. Nothing is imported
(there is only nearly empty .git tree).
Do "git log origin" to see what has been imported. If a cvsimport is 
broken in the middle, you'll not get any checked-out state, and your HEAD 
won't point to anything, but the "origin" branch has been created and 
contains whatever has been imported so far.

			Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help