Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repo clone stalling at niu-x2 #207

Open
jessegahlla opened this issue Apr 10, 2014 · 10 comments
Open

Repo clone stalling at niu-x2 #207

jessegahlla opened this issue Apr 10, 2014 · 10 comments

Comments

@jessegahlla
Copy link

Trying to clone a fresh repo of pelican-themes but it gets stalled at the following (stalled as in no progress for an hour):

remote: Total 235 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (235/235), 239.36 KiB, done.
Resolving deltas: 100% (105/105), done.
Submodule path 'neat': checked out 'fc3cb804f2e433a515fefdcaff6f3db1851483bb'
Cloning into niu-x2...

@flavio-fernandes
Copy link

I'm hitting the same issue. Is there a work around?

@flavio-fernandes
Copy link

This is how I worked around this issue. Its ugly, but it did work:

$ git clone https://github.com/getpelican/pelican-themes
$ cd pelican-themes
$ git clone git@github.com:mawenbao/niu-x2.git niu-x2
$ git submodule update --init --recursive

For complete output, see:
https://gist.github.com/ae81fb341294e7ca3bda

@mawenbao
Copy link
Contributor

Will git clone --recursive https://github.com/getpelican/pelican-themes work?

@flavio-fernandes
Copy link

Interesting you ask....

When I use my mac, it works fine. When I use my Centos 6.5 VM I'm not as
lucky.... maybe something to do with the
git version. :/

** Works:
$ git --version
git version 1.8.5.2 (Apple Git-48)

** Does not work:
$ git --version
git version 1.7.1
$ uname -a
Linux blog2.localdomain 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7
23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

On Fri, May 16, 2014 at 12:58 PM, Ma Wenbao notifications@github.comwrote:

Will git clone --recursive https://github.com/getpelican/pelican-themeswork?


Reply to this email directly or view it on GitHubhttps://github.com//issues/207#issuecomment-43354660
.

@mawenbao
Copy link
Contributor

This is really strange. Never seen that before. Maybe you can use the strace command to see what is git doing when it's stalling.

# get the pid of git first
ps aux | grep git | grep -v grep
strace -p ${pid of git}

@flavio-fernandes
Copy link

not sure if this will help, but here it is:

$ for x in strace.*.txt ; do echo $x ; cat $x ; echo ; done
strace.3830.txt
wait4(3836, <unfinished ...>

strace.3836.txt
wait4(3837, <unfinished ...>

strace.3837.txt
wait4(-1, <unfinished ...>

strace.4235.txt
wait4(-1, <unfinished ...>

strace.4867.txt
read(3, <unfinished ...>

strace.4868.txt
read(8, <unfinished ...>

strace.4870.txt
read(0, <unfinished ...>


https://gist.github.com/527731a039d03b3ba3d1

(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$ ps auxww | grep git
ffernand 3830 0.1 0.8 26720 15416 pts/0 S+ 22:39 0:00 git clone
--recursive https://github.com/getpelican/pelican-themes
ffernand 3836 0.0 0.0 9756 700 pts/0 S+ 22:39 0:00 git
submodule update --init --recursive
ffernand 3837 0.0 0.0 106360 1508 pts/0 S+ 22:39 0:00 /bin/sh
/usr/libexec/git-core/git-submodule update --init --recursive
ffernand 4235 0.0 0.0 106364 1000 pts/0 S+ 22:39 0:00 /bin/sh
/usr/libexec/git-core/git-submodule update --init --recursive
ffernand 4867 0.0 0.0 9764 1116 pts/0 S+ 22:40 0:00 git-clone
-n http://github.com/wilbur-ma/niu-x2 niu-x2
ffernand 4868 0.2 0.3 91548 6724 pts/0 S+ 22:40 0:00
git-remote-http http://github.com/wilbur-ma/niu-x2
http://github.com/wilbur-ma/niu-x2
ffernand 4870 0.0 0.0 9756 976 pts/0 S+ 22:40 0:00 git
fetch-pack --stateless-rpc --lock-pack --thin
http://github.com/wilbur-ma/niu-x2 efs/heads/master efs/heads/sidebar
efs/heads/sidebar-toc
ffernand 4877 0.0 0.0 103252 824 pts/1 S+ 22:40 0:00 grep git
(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$ for x in 3830 3836 3837 4235 4867 4868 4870 ;
do echo "Looking at ${X}" ; sudo strace -p ${x} ; echo ; done
Looking at
Process 3830 attached - interrupt to quit
wait4(3836,
^C <unfinished ...>
Process 3830 detached

Looking at
Process 3836 attached - interrupt to quit
wait4(3837, ^C <unfinished ...>
Process 3836 detached

Looking at
Process 3837 attached - interrupt to quit
wait4(-1, ^C <unfinished ...>
Process 3837 detached

Looking at
Process 4235 attached - interrupt to quit
wait4(-1, ^C <unfinished ...>
Process 4235 detached

Looking at
Process 4867 attached - interrupt to quit
read(3, ^C <unfinished ...>
Process 4867 detached

Looking at
Process 4868 attached - interrupt to quit
read(8, ^C <unfinished ...>
Process 4868 detached

Looking at
Process 4870 attached - interrupt to quit
read(0, ^C <unfinished ...>
Process 4870 detached

(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$ for x in 3830 3836 3837 4235 4867 4868 4870 ;
do echo "Looking at ${X}" ; sudo strace -p ${x} -o strace.${x}.txt ; echo ;
done
Looking at
Process 3830 attached - interrupt to quit
^CProcess 3830 detached

Looking at
Process 3836 attached - interrupt to quit
^CProcess 3836 detached

Looking at
Process 3837 attached - interrupt to quit
^CProcess 3837 detached

Looking at
Process 4235 attached - interrupt to quit
^CProcess 4235 detached

Looking at
Process 4867 attached - interrupt to quit
^CProcess 4867 detached

Looking at
Process 4868 attached - interrupt to quit
^CProcess 4868 detached

Looking at
Process 4870 attached - interrupt to quit
^CProcess 4870 detached

(pelican)[ffernand@blog2 ~]$
(pelican)[ffernand@blog2 ~]$ ls
bin git junk2 pelican-blog.git strace.3830.txt strace.3837.txt
strace.4867.txt strace.4870.txt x
dave junk my-lisp site strace.3836.txt strace.4235.txt
strace.4868.txt venv

On Fri, May 16, 2014 at 2:15 PM, Ma Wenbao notifications@github.com wrote:

This is really strange. Never seen that before. Maybe you can use the
strace command to see what is git doing when it's stalling.

get the pid of git first

ps aux | grep git | grep -v grep
strace -p ${pid of git}


Reply to this email directly or view it on GitHubhttps://github.com//issues/207#issuecomment-43362514
.

@mawenbao
Copy link
Contributor

strace.4870.txt
read(0,  <unfinished ...>

It seemed that one of the git child processes was trying to read something from the standard input. Don't know why. Besides, I checked the .submodules file of pelican-themes, and niu-x2 is the only submodule with a http url.

@chr
Copy link

chr commented Dec 10, 2014

I'm having the same problem. Any suggestion?

$ git --version
git version 2.1.0
$ uname -a
NetBSD iceland 6.1_STABLE NetBSD 6.1_STABLE (GENERIC) #0: *** amd64
$ git clone --recursive https://github.com/getpelican/pelican-themes
[ some output telling it cloned everything OK ]
Initialized empty Git repository in ./pelican-themes/niu-x2/.git/

It hang here. There is something with the "niu-x2" repo that it doesn't like.

$ git clone git@github.com:mawenbao/niu-x2.git niu-x2
Initialized empty Git repository in ./pelican-themes/niu-x2/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

@flavio-fernandes
Copy link

chr: yes. Update your git, if you can. I noticed that if I used Centos 6.5 with git 1.7.1 it did not work.

@chr
Copy link

chr commented Dec 10, 2014

@flavio-fernandes Thanks! In my previous post I actually messed up things: with git version 2.1.0 on the NetBSD machine it works fine. The problem I was having was on a CentOS machine which has git version 1.7.1: I'll ask the sysadmin to upgrade git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants