icclab / cyclops-dashboard

Angularjs UI for Cyclops framework
Apache License 2.0
10 stars 10 forks source link

issue installing gatekeeper #2

Closed andreaguarise closed 8 years ago

andreaguarise commented 8 years ago

Hi,

I'm evaluating your software within the technology scouting phase for the billing aspects of a research project on cloud computing of the Italian Institute for Nuclear Physics (INFN). Your software seems to be interesting and promising, and in the last couple of day I tried to hav it working on a testbed. Unfortunetely since yesterday I'm nont abel to install the dashboard.

While installing the gatekeeper I receive this error trace:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes ./install.sh: line 68: 25759 Segmentation fault (core dumped) go get done. compiling and installing the package auth-utils.go:26:2: cannot find package "code.google.com/p/gcfg" in any of: /usr/src/pkg/code.google.com/p/gcfg (from $GOROOT) /home/ubuntu/go/src/code.google.com/p/gcfg (from $GOPATH) auth-utils.go:28:2: cannot find package "github.com/gorilla/mux" in any of: /usr/src/pkg/github.com/gorilla/mux (from $GOROOT) /home/ubuntu/go/src/github.com/gorilla/mux (from $GOPATH) auth.go:32:2: cannot find package "github.com/mattn/go-sqlite3" in any of: /usr/src/pkg/github.com/mattn/go-sqlite3 (from $GOROOT) /home/ubuntu/go/src/github.com/mattn/go-sqlite3 (from $GOPATH) done. starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it. The executable is located at: /home/ubuntu/go/bin/auth-utils ./install.sh: line 80: auth-utils: command not found

Can you please help me fix this?

The OS is: Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty

Tank in advance!

Cheers, Andrea Guarise

piyush82 commented 8 years ago

Hi Andrea,

Sometimes (although rarely) go get command which basically fetches the dependent libraries from remote repositories fails because the repos don't respond in time or if you don't have internet connectivity.

Can you kindly simply try the 'go get' command again manually and see if it fixes the issue?

Kind regards, Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 8:49 AM, andreaguarise notifications@github.com wrote:

Hi,

I'm evaluating your software within the technology scouting phase for the billing aspects of a research project on cloud computing of the Italian Institute for Nuclear Physics (INFN) Your software seems to be interesting and promising, and in the last couple of day I tried to hav it working on a testbed Unfortunetely since yesterday I'm nont abel to install the dashboard

While installing the gatekeeper I receive this error trace:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes /installsh: line 68: 25759 Segmentation fault (core dumped) go get done compiling and installing the package auth-utilsgo:26:2: cannot find package "codegooglecom/p/gcfg" in any of: /usr/src/pkg/codegooglecom/p/gcfg (from $GOROOT) /home/ubuntu/go/src/codegooglecom/p/gcfg (from $GOPATH) auth-utilsgo:28:2: cannot find package "githubcom/gorilla/mux" in any of: /usr/src/pkg/githubcom/gorilla/mux (from $GOROOT) /home/ubuntu/go/src/githubcom/gorilla/mux (from $GOPATH) authgo:32:2: cannot find package "githubcom/mattn/go-sqlite3" in any of: /usr/src/pkg/githubcom/mattn/go-sqlite3 (from $GOROOT) /home/ubuntu/go/src/githubcom/mattn/go-sqlite3 (from $GOPATH) done starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it The executable is located at: /home/ubuntu/go/bin/auth-utils /installsh: line 80: auth-utils: command not found

Can you please help me fix this?

The OS is: Distributor ID: Ubuntu Description: Ubuntu 14043 LTS Release: 1404 Codename: trusty

Tank in advance!

Cheers, Andrea Guarise

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/2.

piyush82 commented 8 years ago

Dear Andrea,

I was able to replicate your problem. The issue was the gcfg module was no longer available from google code repositories. I have changed the location to github repository for gcfg and it seems to be working now.

You can redeploy gatekeeper and hopefully it should work.

Kind regards, Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 9:09 AM, Piyush Harsh harh@zhaw.ch wrote:

Hi Andrea,

Sometimes (although rarely) go get command which basically fetches the dependent libraries from remote repositories fails because the repos don't respond in time or if you don't have internet connectivity.

Can you kindly simply try the 'go get' command again manually and see if it fixes the issue?

Kind regards, Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 8:49 AM, andreaguarise notifications@github.com wrote:

Hi,

I'm evaluating your software within the technology scouting phase for the billing aspects of a research project on cloud computing of the Italian Institute for Nuclear Physics (INFN) Your software seems to be interesting and promising, and in the last couple of day I tried to hav it working on a testbed Unfortunetely since yesterday I'm nont abel to install the dashboard

While installing the gatekeeper I receive this error trace:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes /installsh: line 68: 25759 Segmentation fault (core dumped) go get done compiling and installing the package auth-utilsgo:26:2: cannot find package "codegooglecom/p/gcfg" in any of: /usr/src/pkg/codegooglecom/p/gcfg (from $GOROOT) /home/ubuntu/go/src/codegooglecom/p/gcfg (from $GOPATH) auth-utilsgo:28:2: cannot find package "githubcom/gorilla/mux" in any of: /usr/src/pkg/githubcom/gorilla/mux (from $GOROOT) /home/ubuntu/go/src/githubcom/gorilla/mux (from $GOPATH) authgo:32:2: cannot find package "githubcom/mattn/go-sqlite3" in any of: /usr/src/pkg/githubcom/mattn/go-sqlite3 (from $GOROOT) /home/ubuntu/go/src/githubcom/mattn/go-sqlite3 (from $GOPATH) done starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it The executable is located at: /home/ubuntu/go/bin/auth-utils /installsh: line 80: auth-utils: command not found

Can you please help me fix this?

The OS is: Distributor ID: Ubuntu Description: Ubuntu 14043 LTS Release: 1404 Codename: trusty

Tank in advance!

Cheers, Andrea Guarise

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/2.

andreaguarise commented 8 years ago

HI Piyush,

Thanks for the fast answer. I just checked out the code from scratch and the original issue is fixed. Unfortunately now the build stops with another error:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes github.com/mattn/go-sqlite3 Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. compiling and installing the package github.com/mattn/go-sqlite3 Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it. The executable is located at: /home/ubuntu/go/bin/auth-utils install.sh: line 80: auth-utils: command not found

Cheers, Andrea

piyush82 commented 8 years ago

Dear Andrea,

Looks like you are having trouble cloning these git repos. You can do this manually also.

Under the go/src/github.com/ folder simply clone mattn/go-sqlite3 code repo and also for other dependencies whose git clone fails.

Make sure that you create the author's folder first inside the src folder.

So after cloning manuall, the folder path should look like: go/src/ github.com/mattn/go-sqlite3/

Let me know how it goes.

BR, Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 9:51 AM, andreaguarise notifications@github.com wrote:

HI Piyush,

Thanks for the fast answer. I just checked out the code from scratch and the original issue is fixed. Unfortunately now the build stops with another error:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes github.com/mattn/go-sqlite3

Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. compiling and installing the package github.com/mattn/go-sqlite3

Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it. The executable is located at: /home/ubuntu/go/bin/auth-utils install.sh: line 80: auth-utils: command not found

Cheers, Andrea

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/2#issuecomment-176066624 .

piyush82 commented 8 years ago

Also if you are doing things manually, do not forget to 'source $HOME/.profile' before attempting "go get" and "go install" commands.

Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ

[Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 10:04 AM, Piyush Harsh harh@zhaw.ch wrote:

Dear Andrea,

Looks like you are having trouble cloning these git repos. You can do this manually also.

Under the go/src/github.com/ folder simply clone mattn/go-sqlite3 code repo and also for other dependencies whose git clone fails.

Make sure that you create the author's folder first inside the src folder.

So after cloning manuall, the folder path should look like: go/src/ github.com/mattn/go-sqlite3/

Let me know how it goes.

BR, Piyush


Dr. Piyush Harsh, Ph.D. Researcher, InIT Cloud Computing Lab Zurich University of Applied Sciences (ZHAW) [Site] http://piyush-harsh.info [Google-Scholar] https://scholar.google.ch/citations?hl=en&user=kaSUIp8AAAAJ [Research Lab] blog.zhaw.ch/icclab Fax: +41(0)58.935.7403 GPG Keyid: 9C5A8838

On Thu, Jan 28, 2016 at 9:51 AM, andreaguarise notifications@github.com wrote:

HI Piyush,

Thanks for the fast answer. I just checked out the code from scratch and the original issue is fixed. Unfortunately now the build stops with another error:

getting all code dependencies for auth-utils now, be patient ~ 1-2 minutes github.com/mattn/go-sqlite3

Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. compiling and installing the package github.com/mattn/go-sqlite3

Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte Go type not supported in export: [0]byte done. starting the auth-service next, you can start using it at port :8000 use Ctrl+c to stop it. The executable is located at: /home/ubuntu/go/bin/auth-utils install.sh: line 80: auth-utils: command not found

Cheers, Andrea

— Reply to this email directly or view it on GitHub https://github.com/icclab/cyclops-dashboard/issues/2#issuecomment-176066624 .

andreaguarise commented 8 years ago

Ok, I've figured out what this issue was:

The dependencies where correctly cloned, but I had gccgo-go package installed on the machine, and this (probably with an older version of go) was masking the 1.4.2 go version needed by one of the dependencies. Now gatekeeper correctly builds and starts.

I think you can close the issue.

Thank you very much!

Andrea

piyush82 commented 8 years ago

Issue resolved!