#1300 Attempting to check out the Fantom source code fails

rosarinjroy Mon 8 Nov 2010

Could someone please help how to check out the Fantom source code? I followed the instructions to use bootstrap.fan, but got the following error.

D:\roy\apps\fantom-1.0.55\fantom-1.0.55\adm>fan bootstrap.fan

Bootstrap Environment:
  hgRepo:    http://hg.fantom.org/repos/fan-1.0
  hgVer:     Mercurial Distributed SCM (version 1.6.4)
  jdkVer:    javac 1.6.0_21 (need 1.6+)
  jdkHome:   file:/C:/Program Files/Java/jdk1.6.0_21/
  relVer:    1.0.55
  relHome:   file:/D:/roy/apps/fantom-1.0.55/fantom-1.0.55/
  devHome:   file:/D:/roy/apps/fantom-1.0.55/fan/

Continue with these settings? [y|n] y

hg clone http://hg.fantom.org/repos/fan-1.0 D:\roy\apps\fantom-1.0.55\fan
real URL is http://hg.fantom.org/fan-1.0
requesting all changes
adding changesets
adding manifests
adding file changes
transaction abort!
rollback completed
abort: An existing connection was forcibly closed by the remote host
##
## FATAL: could not hg clone/pull repo
##

vkuzkokov Mon 8 Nov 2010

You might want to use fansubstitute bootstrap.fan

brian Mon 8 Nov 2010

The failure looks to be in hg pulling the source from mercurial. You can try that manually on the command line or without another tool, then use the "-skipPull" option. Or if anyone else has a clone of the repo, try that maybe if this server is failing.

rosarinjroy Tue 9 Nov 2010

Hi Brian/vkuzkokov: Neither of the methods work. As I am attempting to checkout from Windows, fansustitute doesn't work (as its a shell script). My version of hg doesn't have the -skipPull option. This is my hg version:

Mercurial Distributed SCM (version 1.6.4)

Copyright (C) 2005-2010 Matt Mackall <[email protected]> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Am I missing something? Has anyone successfully done a full cloning recently?

DanielFath Tue 9 Nov 2010

Nope, but there is a partial clone left somewhere around here. Cloning from it is for some reason successful, while full clone fails.

brian Tue 9 Nov 2010

@rosarinjroy

The "-skipPull" is an option on bootstrap, not hg.

The first task is that you need to get a clone of the hg repo on your machine. Since you can't pull from fantom.org, I have made a copy of the repo on googlecode, so see if you can clone that:

hg clone https://fan.googlecode.com/hg/ fan

Once you have the clone, then you can use bootstrap with the clone you did yourself (versus having bootstrap doing it). I suspect once you have the initial clone which is pretty big, you won't have trouble with periodic pulls from fantom.org.

Please note that the master repo will continue to be http://hg.fantom.org/fan-1.0/

I will be on IRC most of the day too if you want to hop on there for questions.

rosarinjroy Tue 9 Nov 2010

Thank you Brian. Will try what you suggested.

rosarinjroy Thu 11 Nov 2010

Brian: Thank you. The method you had suggested works. I was able to checkout and build the Fantom code.

Login or Signup to reply.