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

build on EC2 failed with error #50

Open
liangruibupt opened this issue Aug 14, 2019 · 5 comments
Open

build on EC2 failed with error #50

liangruibupt opened this issue Aug 14, 2019 · 5 comments

Comments

@liangruibupt
Copy link

liangruibupt commented Aug 14, 2019

[ec2-user@ip-172-16-2-169 aws-es-proxy]$ go version
warning: GOPATH set to GOROOT (/usr/lib/golang) has no effect
go version go1.9.4 linux/amd64

[ec2-user@ip-172-16-2-169 aws-es-proxy]$ glide -v
glide version v0.13.3

[ec2-user@ip-172-16-2-169 aws-es-proxy]$ glide install
[INFO]	Lock file (glide.lock) does not exist. Performing update.
[INFO]	Downloading dependencies. Please wait...
[INFO]	--> Fetching updates for github.com/aws/aws-sdk-go
[INFO]	--> Fetching updates for github.com/satori/go.uuid
[INFO]	--> Setting version for github.com/satori/go.uuid to 36e9d2ebbde5e3f13ab2e25625fd453271d6522e.
[INFO]	--> Detected semantic version. Setting version for github.com/aws/aws-sdk-go to v1.12.79
[INFO]	Resolving imports
[INFO]	--> Fetching bytes
[WARN]	Unable to checkout bytes
[ERROR]	Error looking for bytes: Cannot detect VCS
[INFO]	--> Fetching encoding/json
[WARN]	Unable to checkout encoding/json
[ERROR]	Error looking for encoding/json: Cannot detect VCS
[INFO]	--> Fetching flag
[WARN]	Unable to checkout flag
[ERROR]	Error looking for flag: Cannot detect VCS
[INFO]	--> Fetching fmt
[WARN]	Unable to checkout fmt
[ERROR]	Error looking for fmt: Cannot detect VCS
@liangruibupt
Copy link
Author

@abutaha could you please help guide me how to resolve this issue?

@liangruibupt
Copy link
Author

I can build on Mac, but failed on Amazon Linux 2 and Ubuntu
@abutaha cloud you please help on it.

ubuntu@ip-172-16-0-79:/usr/lib/go-1.10/src/github.com/abutaha/aws-es-proxy$ sudo su
root@ip-172-16-0-79:/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy# pwd
/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy
root@ip-172-16-0-79:/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy# export GOPATH=/usr/lib/go-1.10/
root@ip-172-16-0-79:/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy# glide install[INFO]	Lock file (glide.lock) does not exist. Performing update.
[INFO]	Downloading dependencies. Please wait...
[INFO]	--> Fetching github.com/aws/aws-sdk-go
[INFO]	--> Fetching github.com/satori/go.uuid
[INFO]	--> Setting version for github.com/satori/go.uuid to 36e9d2ebbde5e3f13ab2e25625fd453271d6522e.
[INFO]	--> Detected semantic version. Setting version for github.com/aws/aws-sdk-go to v1.12.79
[INFO]	Resolving imports
[INFO]	--> Fetching bytes
[WARN]	Unable to checkout bytes
[ERROR]	Error looking for bytes: Cannot detect VCS
[INFO]	--> Fetching encoding/json
[WARN]	Unable to checkout encoding/json
[ERROR]	Error looking for encoding/json: Cannot detect VCS
[INFO]	--> Fetching flag
[WARN]	Unable to checkout flag
[ERROR]	Error looking for flag: Cannot detect VCS
[INFO]	--> Fetching fmt
[WARN]	Unable to checkout fmt
[ERROR]	Error looking for fmt: Cannot detect VCS

@liangruibupt
Copy link
Author

root@ip-172-16-0-79:/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy# glide -v
glide version v0.13.1
root@ip-172-16-0-79:/usr/share/go-1.10/src/github.com/abutaha/aws-es-proxy# go version
warning: GOPATH set to GOROOT (/usr/lib/go-1.10/) has no effect
go version go1.10.4 linux/amd64

@abutaha
Copy link
Owner

abutaha commented Aug 19, 2019

Hi, try setting your GOPATH to another directory. From the warning message, it looks like GOPATH is set to GOROOT.

try the following:

mkdir /go-libs
export GOPATH=
/go-libs

then try again.

@jewdore
Copy link

jewdore commented Oct 18, 2019

if only for test purpose, suggest use aws es proxy by ec 2 https://github.com/jewdore/aws-es-proxy-by-ec2, fork from current repo

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

3 participants