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

Already on GitHub? Sign in to your account

Hangs during initial clone #1114

Closed
monreal opened this Issue Dec 16, 2012 · 9 comments

Comments

Projects
None yet
2 participants
Contributor

monreal commented Dec 16, 2012

On the initial clone I always have to cancel once in order to get it to finish. This is the log:

[me ~]$ sparkleshare start
Stale SparkleShare PID file found, starting a new instance...
Starting SparkleShare... Done.
[me ~]$ 10:04:12 | Config | Wrote to '/home/me/.config/sparkleshare/config.xml'
10:04:12 | Config | Updated option notifications:True
10:04:12 | Auth | Created keypair '/home/me/.config/sparkleshare/2012-12-16 10h04.key'
10:04:12 | Auth | Imported key '/home/me/.config/sparkleshare/2012-12-16 10h04.key'
10:04:24 | Config | Wrote to '/home/me/.config/sparkleshare/config.xml'
[me ~]$ 10:10:22 | Fetcher | /home/me/SparkleShare/.tmp/test | Fetching folder: ssh://storage@s.domain.com:22/home/storage/test
10:10:22 | Auth | Fetching host key for s.domain.com
10:10:22 | Cmd | ssh-keyscan -t rsa -p 22 s.domain.com
# s.domain.com SSH-2.0-OpenSSH_5.3
10:10:22 | Auth | Skipping fingerprint check
10:10:22 | Auth | Accepted host key for s.domain.com
10:10:22 | Cmd | .tmp | git clone --progress --no-checkout --depth=1 "ssh://storage@s.domain.com:22/home/storage/test" "/home/me/SparkleShare/.tmp/test"
10:10:23 | Fetcher | remote: Counting objects: 11, done.
10:10:23 | Fetcher | remote: Total 11 (delta 2), reused 0 (delta 0)

hangs: I press cancel and followed by add

[me ~]$ 10:10:43 | Fetcher | Failed to dispose properly: No process to kill.   at System.Diagnostics.Process.Close (Int32 signo) [0x00000] in <filename unknown>:0 
  at System.Diagnostics.Process.Kill () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Kill ()
  at SparkleLib.Git.SparkleFetcher.Stop () [0x00000] in <filename unknown>:0 
10:10:43 | Controller | Deleted /home/me/SparkleShare/.tmp/test
10:10:44 | Fetcher | /home/me/SparkleShare/.tmp/test | Fetching folder: ssh://storage@s.domain.com:22/home/storage/test
10:10:44 | Auth | Fetching host key for s.domain.com
10:10:44 | Cmd | ssh-keyscan -t rsa -p 22 s.domain.com
# s.domain.com SSH-2.0-OpenSSH_5.3
10:10:45 | Auth | Skipping fingerprint check
10:10:45 | Cmd | .tmp | git clone --progress --no-checkout --depth=1 "ssh://storage@s.domain.com:22/home/storage/test" "/home/me/SparkleShare/.tmp/test"

I can reproduce this with clean installs (removing ~/SparkleShare and the .conf folder) using SparkleShare 1.0

Owner

hbons commented Dec 16, 2012

that's weird. it doesn't seem to try to load any keys on startup? what does ssh-add -l say?

Contributor

monreal commented Dec 16, 2012

ssh-add -l lists all my keys. It shows up in the log now, I guess it does not the first time (if the config directory is not yet created)?

Owner

hbons commented Dec 16, 2012

ah right. i missed that.

10:10:23 | Fetcher | remote: Total 11 (delta 2), reused 0 (delta 0)

this shows the clone has started, and you've already been authorised. can you double check the permissions on the repo?

Contributor

monreal commented Dec 16, 2012

The clone does actually finish. I get a full copy in /home/me/SparkleShare/.tmp/test
Also, as I wrote, I just need to click cancel to get back to the initial screen and press add there again and it works without changing anything else

Owner

hbons commented Dec 16, 2012

it's probably just a partial clone? does it copy over the folder to ~/SparkleShare on the second try?

Contributor

monreal commented Dec 16, 2012

On the second try it all works as it should, the folder ends up in ~/SparkleShare

The clone in the tmp dir is complete as far as I can tell. My test repo just has 4 small text files and I got current versions of each one

Owner

hbons commented Jun 1, 2013

does this still happen with 1.1?

Contributor

monreal commented Jun 1, 2013

I just found out about the 1.1 release this morning. Works really well so far but this problem still exists :/

Owner

hbons commented Jun 30, 2013

i just can't reproduce this issue. both on a clean install on Linux and Mac, using Github or my own server, having removed all SSH configuration ,it always works the first time for me... this may be something in your setup?

@hbons hbons closed this Jun 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment