Re: Setup failure

161 views
Skip to first unread message

Brad Fitzpatrick

unread,
Jul 9, 2012, 3:07:18 PM7/9/12
to camli...@googlegroups.com
On Mon, Jul 9, 2012 at 6:36 AM, bsr <bsr...@gmail.com> wrote:

Hello,

I was trying to setup camlistore,

========== 1 ==========
when clone from camlistore git repo, as it might be the latest, I get the below error. Tried few times, expecting n/w issue, but results the same.

Cloning into 'camlistore2'...
remote: Counting objects: 14121, done
remote: Finding sources: 100% (14121/14121)
error: RPC failed; result=18, HTTP code = 200iB | 344 KiB/s    
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed


This works fine for me, with git 1.7.7.3 at least.

 
cloned the github repo (https://github.com/bradfitz/camlistore.git), though it is slightly outdated

====== 2 =============

when run dev-server, as per the setup.txt, I got the below error

$ ./dev-server 
server/camlistored/camlistored.go:45:2: import "camlistore.org/pkg/blobserver/cond": cannot find package
server/camlistored/camlistored.go:46:2: import "camlistore.org/pkg/blobserver/localdisk": cannot find package
server/camlistored/camlistored.go:47:2: import "camlistore.org/pkg/blobserver/remote": cannot find package
server/camlistored/camlistored.go:48:2: import "camlistore.org/pkg/blobserver/replica": cannot find package
server/camlistored/camlistored.go:49:2: import "camlistore.org/pkg/blobserver/s3": cannot find package
server/camlistored/camlistored.go:50:2: import "camlistore.org/pkg/blobserver/shard": cannot find package
server/camlistored/camlistored.go:52:2: import "camlistore.org/pkg/index": cannot find package
server/camlistored/camlistored.go:53:2: import "camlistore.org/pkg/index/mongo": cannot find package
server/camlistored/camlistored.go:54:2: import "camlistore.org/pkg/index/mysql": cannot find package
server/camlistored/camlistored.go:39:2: import "camlistore.org/pkg/jsonsign": cannot find package
server/camlistored/setup.go:25:2: import "camlistore.org/pkg/netutil": cannot find package
server/camlistored/camlistored.go:40:2: import "camlistore.org/pkg/osutil": cannot find package
server/camlistored/camlistored.go:57:2: import "camlistore.org/pkg/search": cannot find package
server/camlistored/camlistored.go:58:2: import "camlistore.org/pkg/server": cannot find package
server/camlistored/camlistored.go:41:2: import "camlistore.org/pkg/serverconfig": cannot find package
server/camlistored/camlistored.go:42:2: import "camlistore.org/pkg/webserver": cannot find package
server/camlistored/camlistored.go:60:2: import "camlistore.org/third_party/code.google.com/p/go.crypto/openpgp": cannot find package

============== 3 ===========
make on the root directory failed.
make
go install ./pkg/... ./server/... ./cmd/... ./third_party/...
pkg/auth/auth.go:28:2: import "camlistore.org/pkg/netutil": cannot find package
pkg/blobref/fetcher.go:31:2: import "camlistore.org/pkg/osutil": cannot find package

if I need to install with go install / go get, please let me know which target?

You need to run git clone in your GOPATH src directory.

So if GOPATH=$HOME, then:

$ cd $GOPATH/src

Alternatively, just do:


... which will put everything in the right place.

The docs are probably slightly old at this point. Sorry.

bsr

unread,
Jul 9, 2012, 9:07:55 PM7/9/12
to camli...@googlegroups.com, br...@danga.com
Brad,

thank you for the response.

It could be my setup, but it is strange though. I never had the same issue before and work with git all the time. When I first tried to get it from camilistore.org, it gave missing CA certificate error (which never occurred with github even though they use https). 

In my mac, I then

curl http://curl.haxx.se/ca/cacert.pem -o ~/certs/cacert.pem

which solved the CA cert error. Current error indicated n/w issue, but couldn't find much help online.

Anyway, I tried what you said, you can see the details below.

====== clone to $GOPATH/src ========
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ echo $GOPATH
/Users/bsr/Work/Programming/Go/repo/3rdparty:/Users/bsr/Work/Programming/
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ git clone  https://camlistore.org/r/p/camlistore camlistore.org
Cloning into 'camlistore.org'...
remote: Counting objects: 14121, done
remote: Finding sources: 100% (14121/14121)
error: RPC failed; result=18, HTTP code = 200iB | 29 KiB/s   
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ git clone  https://camlistore.org/r/p/camlistore camlistore.org
Cloning into 'camlistore.org'...
remote: Counting objects: 14121, done
remote: Finding sources: 100% (14121/14121)
error: RPC failed; result=18, HTTP code = 200KiB | 42 KiB/s    
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

======= git version ==========
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ git --version
git version 1.7.11.1

====== go get from github ======

partially worked, I have these folders, but there are lot other erros too .(see next section)

bsr[~/Work/Programming/Go/repo/3rdparty/src]$ cd github.com/bradfitz/
camlistore
bsr[~/Work/Programming/Go/repo/3rdparty/src/github.com/bradfitz]$ ls camlistore/
AUTHORS           camfix.pl         dev-camget        dev-indexer       lib
CONTRIBUTORS      clients           dev-cammount      dev-pass-camput   misc
COPYING           cmd               dev-camput        dev-server        pkg
Makefile          config            dev-camsync       dev-synctoindexer server
README            dev-appengine     dev-camwebdav     doc               third_party
TODO              dev-blobserver    dev-db            gopath            website
bsr[~/Work/Programming/Go/repo/3rdparty/src/github.com/bradfitz]$ 


=====
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ go get github.com/bradfitz/camlistore/server/camlistored# cd .; git clone https://camlistore.org/r/p/camlistore /Users/bsr/Work/Programming/Go/repo/3rdparty/src/camlistore.org
Cloning into '/Users/bsr/Work/Programming/Go/repo/3rdparty/src/camlistore.org'...
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
imports camlistore.org/pkg/blobserver/cond: exit status 128
imports camlistore.org/pkg/index: import "camlistore.org/pkg/index": cannot find package
imports camlistore.org/pkg/index/mongo: import "camlistore.org/pkg/index/mongo": cannot find package
imports camlistore.org/pkg/index/mysql: import "camlistore.org/pkg/index/mysql": cannot find package
imports camlistore.org/pkg/jsonsign: import "camlistore.org/pkg/jsonsign": cannot find package
imports camlistore.org/pkg/netutil: import "camlistore.org/pkg/netutil": cannot find package
imports camlistore.org/pkg/osutil: import "camlistore.org/pkg/osutil": cannot find package
imports camlistore.org/pkg/search: import "camlistore.org/pkg/search": cannot find package
imports camlistore.org/pkg/server: import "camlistore.org/pkg/server": cannot find package
imports camlistore.org/pkg/webserver: import "camlistore.org/pkg/webserver": cannot find package
bsr[~/Work/Programming/Go/repo/3rdparty/src]$ 

====== but the build failed again .=======

is it possible to do a go get / install package from github?

thanks again for your time.

Brad Fitzpatrick

unread,
Jul 9, 2012, 9:32:23 PM7/9/12
to camli...@googlegroups.com
I've pushed the latest code to github.

You still have to clone it into your GOPATH, though.  Like this:

ba12:src bradfitz$ echo $HOME
/Users/bradfitz

ba12:src bradfitz$ echo $GOPATH
/Users/bradfitz

ba12:src bradfitz$ cd $GOPATH/src


ba12:src bradfitz$ ls -ld camlistore.org
drwxr-x---  53 bradfitz  staff  1802 Jun 16 10:19 camlistore.org

ba12:src bradfitz$ cd camlistore.org

ba12:camlistore.org bradfitz$ ls -ld .git
drwxr-x---  18 bradfitz  staff  612 Jul  9 18:25 .git

ba12:camlistore.org bradfitz$ ./dev-server
Starting dev server on http://localhost:3179/ui/ with password "pass3179"
2012/07/09 18:31:16 Using config file /Users/bradfitz/src/camlistore.org/config/dev-server-config.json
2012/07/09 18:31:16 Publish root "dev-blog-root" needs a permanode + claim
2012/07/09 18:31:16 indexer: received sha1-014c46df3b22d429143908f93955ff3e6125a8a5; type=application/json; camliType=permanode; truncated=false
2012/07/09 18:31:16 index: verified claim sha1-8ab16a85e73aa10f974e8df2cbf00687b2203a1b from 2931A67C26F5ABDA
2012/07/09 18:31:16 indexer: received sha1-8ab16a85e73aa10f974e8df2cbf00687b2203a1b; type=application/json; camliType=claim; truncated=false
2012/07/09 18:31:16 index: verified claim sha1-8883fca0cee4204d1914e540b1d11ea8472d0af1 from 2931A67C26F5ABDA
2012/07/09 18:31:16 indexer: received sha1-8883fca0cee4204d1914e540b1d11ea8472d0af1; type=application/json; camliType=claim; truncated=false
2012/07/09 18:31:16 Publish root "dev-pics-root" needs a permanode + claim
2012/07/09 18:31:16 indexer: received sha1-b0623f83dd5b7921a75d9fd72cf001dc80162db9; type=application/json; camliType=permanode; truncated=false
2012/07/09 18:31:16 index: verified claim sha1-87d0c96d87bd776bfb41a68e25ebfb123d87a061 from 2931A67C26F5ABDA
2012/07/09 18:31:16 indexer: received sha1-87d0c96d87bd776bfb41a68e25ebfb123d87a061; type=application/json; camliType=claim; truncated=false
2012/07/09 18:31:16 index: verified claim sha1-db70289fba129c80c14d013c15237aeb065f1883 from 2931A67C26F5ABDA
2012/07/09 18:31:16 indexer: received sha1-db70289fba129c80c14d013c15237aeb065f1883; type=application/json; camliType=claim; truncated=false

bsr

unread,
Jul 9, 2012, 9:51:52 PM7/9/12
to camli...@googlegroups.com, br...@danga.com
Brad.. works great.. thanks
Reply all
Reply to author
Forward
0 new messages