aws-es-proxy icon indicating copy to clipboard operation
aws-es-proxy copied to clipboard

build on EC2 failed with error

Open liangruibupt opened this issue 5 years ago • 5 comments

[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 avatar Aug 14 '19 11:08 liangruibupt

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

liangruibupt avatar Aug 14 '19 14:08 liangruibupt

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 avatar Aug 16 '19 08:08 liangruibupt

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

liangruibupt avatar Aug 16 '19 08:08 liangruibupt

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.

abutaha avatar Aug 19 '19 06:08 abutaha

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

jewdore avatar Oct 18 '19 07:10 jewdore