DEV Community

Discussion on: Microservices with go-kit. Part 1

Collapse
 
ghoroubi profile image
Nima Ghoroubi

Hi Alex, thanks for your useful article, I cant run the project and got these errors :


Building bugs
Step 1/8 : FROM golang
---> be63d15101cb
Step 2/8 : RUN mkdir -p /go/src/ghoghnos.ir/bugTracker
---> Using cache
---> 1efb9ce59766
Step 3/8 : ADD . /go/src/ghoghnos.ir/bugTracker
---> Using cache
---> 391b43650c2e
Step 4/8 : WORKDIR /go/src/ghoghnos.ir/bugTracker/bugs
---> Using cache
---> 7bc6a3ec3222
Step 5/8 : RUN go get -t -v ./...
---> Running in 05432adea1bb
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
ignoring ../go.mod;
see 'go help modules'
github.com/go-kit/kit (download)

cd .; git clone github.com/go-kit/kit /go/src/github.com/go-kit/kit

Cloning into '/go/src/github.com/go-kit/kit'...
fatal: unable to access 'github.com/go-kit/kit/': Could not resolve host: github.com
package github.com/go-kit/kit/log: exit status 128
package github.com/go-kit/kit/endpoint: cannot find package "github.com/go-kit/kit/endpoint" in any of:
/usr/local/go/src/github.com/go-kit/kit/endpoint (from $GOROOT)
/go/src/github.com/go-kit/kit/endpoint (from $GOPATH)
package github.com/go-kit/kit/metrics: cannot find package "github.com/go-kit/kit/metrics" in any of:
/usr/local/go/src/github.com/go-kit/kit/metrics (from $GOROOT)
/go/src/github.com/go-kit/kit/metrics (from $GOPATH)
package github.com/go-kit/kit/transport/http: cannot find package "github.com/go-kit/kit/transport/http" in any of:
/usr/local/go/src/github.com/go-kit/kit/transport/http (from $GOROOT)
/go/src/github.com/go-kit/kit/transport/http (from $GOPATH)
package github.com/go-kit/kit/metrics/prometheus: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
/usr/local/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
package github.com/go-kit/kit/tracing/opentracing: cannot find package "github.com/go-kit/kit/tracing/opentracing" in any of:
/usr/local/go/src/github.com/go-kit/kit/tracing/opentracing (from $GOROOT)
/go/src/github.com/go-kit/kit/tracing/opentracing (from $GOPATH)
github.com/lightstep/lightstep-tracer-go (download)

cd .; git clone github.com/lightstep/lightstep-tra... /go/src/github.com/lightstep/lightstep-tracer-go

Cloning into '/go/src/github.com/lightstep/lightstep-tracer-go'...
fatal: unable to access 'github.com/lightstep/lightstep-tra... Could not resolve host: github.com
package github.com/lightstep/lightstep-tracer-go: exit status 128
github.com/oklog/oklog (download)

cd .; git clone github.com/oklog/oklog /go/src/github.com/oklog/oklog

Cloning into '/go/src/github.com/oklog/oklog'...
fatal: unable to access 'github.com/oklog/oklog/': Could not resolve host: github.com
package github.com/oklog/oklog/pkg/group: exit status 128
github.com/opentracing/opentracing-go (download)

cd .; git clone github.com/opentracing/opentracing-go /go/src/github.com/opentracing/opentracing-go

Cloning into '/go/src/github.com/opentracing/opentracing-go'...
fatal: unable to access 'github.com/opentracing/opentracing... Could not resolve host: github.com
package github.com/opentracing/opentracing-go: exit status 128
github.com/openzipkin/zipkin-go-opentracing (download)

cd .; git clone github.com/openzipkin/zipkin-go-op... /go/src/github.com/openzipkin/zipkin-go-opentracing

Cloning into '/go/src/github.com/openzipkin/zipkin-go-opentracing'...
fatal: unable to access 'github.com/openzipkin/zipkin-go-op... Could not resolve host: github.com
package github.com/openzipkin/zipkin-go-opentracing: exit status 128
github.com/prometheus/client_golang (download)

cd .; git clone github.com/prometheus/client_golang /go/src/github.com/prometheus/client_golang

Cloning into '/go/src/github.com/prometheus/client_golang'...
fatal: unable to access 'github.com/prometheus/client_golan... Could not resolve host: github.com
package github.com/prometheus/client_golang/prometheus: exit status 128
package github.com/prometheus/client_golang/prometheus/promhttp: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
/usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
Fetching sourcegraph.com/sourcegraph/appdas...
https fetch failed: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied
package sourcegraph.com/sourcegraph/appdash: unrecognized import path "sourcegraph.com/sourcegraph/appdash" (https fetch: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied)
Fetching sourcegraph.com/sourcegraph/appdas...
https fetch failed: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied
package sourcegraph.com/sourcegraph/appdash/opentracing: unrecognized import path "sourcegraph.com/sourcegraph/appdash/opentracing" (https fetch: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied)
ERROR: Service 'bugs' failed to build: The command '/bin/sh -c go get -t -v ./...' returned a non-zero code: 1
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/go-kit/kit/endpoint (from $GOPATH)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/go-kit/kit/metrics: cannot find package "github.com/go-kit/kit/metrics" in any of:
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /usr/local/go/src/github.com/go-kit/kit/metrics (from $GOROOT)
bash: syntax error near unexpected token
from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/go-kit/kit/metrics (from $GOPATH)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/go-kit/kit/transport/http: cannot find package "github.com/go-kit/kit/transport/http" in any of:
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /usr/local/go/src/github.com/go-kit/kit/transport/http (from $GOROOT)
bash: syntax error near unexpected token
from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/go-kit/kit/transport/http (from $GOPATH)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/go-kit/kit/metrics/prometheus: cannot find package "github.com/go-kit/kit/metrics/prometheus" in any of:
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /usr/local/go/src/github.com/go-kit/kit/metrics/prometheus (from $GOROOT)
bash: syntax error near unexpected token
from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/go-kit/kit/metrics/prometheus (from $GOPATH)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/go-kit/kit/tracing/opentracing: cannot find package "github.com/go-kit/kit/tracing/opentracing" in any of:
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /usr/local/go/src/github.com/go-kit/kit/tracing/opentracing (from $GOROOT)
bash: syntax error near unexpected token
from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/go-kit/kit/tracing/opentracing (from $GOPATH)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ github.com/lightstep/lightstep-tracer-go (download)
bash: syntax error near unexpected token
download'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ # cd .; git clone github.com/lightstep/lightstep-tra... /go/src/github.com/lightstep/lightstep-tracer-go
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Cloning into '/go/src/github.com/lightstep/lightstep-tracer-go'...
bash: Cloning: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ fatal: unable to access 'github.com/lightstep/lightstep-tra... Could not resolve host: github.com
bash: fatal:: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/lightstep/lightstep-tracer-go: exit status 128
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ github.com/oklog/oklog (download)
bash: syntax error near unexpected token download'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ # cd .; git clone https://github.com/oklog/oklog /go/src/github.com/oklog/oklog
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Cloning into '/go/src/github.com/oklog/oklog'...
bash: Cloning: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ fatal: unable to access 'https://github.com/oklog/oklog/': Could not resolve host: github.com
bash: fatal:: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/oklog/oklog/pkg/group: exit status 128
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ github.com/opentracing/opentracing-go (download)
bash: syntax error near unexpected token
download'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ # cd .; git clone github.com/opentracing/opentracing-go /go/src/github.com/opentracing/opentracing-go
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Cloning into '/go/src/github.com/opentracing/opentracing-go'...
bash: Cloning: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ fatal: unable to access 'github.com/opentracing/opentracing... Could not resolve host: github.com
bash: fatal:: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/opentracing/opentracing-go: exit status 128
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ github.com/openzipkin/zipkin-go-opentracing (download)
bash: syntax error near unexpected token download'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ # cd .; git clone https://github.com/openzipkin/zipkin-go-opentracing /go/src/github.com/openzipkin/zipkin-go-opentracing
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Cloning into '/go/src/github.com/openzipkin/zipkin-go-opentracing'...
bash: Cloning: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ fatal: unable to access 'https://github.com/openzipkin/zipkin-go-opentracing/': Could not resolve host: github.com
bash: fatal:: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/openzipkin/zipkin-go-opentracing: exit status 128
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ github.com/prometheus/client_golang (download)
bash: syntax error near unexpected token
download'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ # cd .; git clone github.com/prometheus/client_golang /go/src/github.com/prometheus/client_golang
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Cloning into '/go/src/github.com/prometheus/client_golang'...
bash: Cloning: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ fatal: unable to access 'github.com/prometheus/client_golan... Could not resolve host: github.com
bash: fatal:: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/prometheus/client_golang/prometheus: exit status 128
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package github.com/prometheus/client_golang/prometheus/promhttp: cannot find package "github.com/prometheus/client_golang/prometheus/promhttp" in any of:
bash: package: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /usr/local/go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOROOT)
bash: syntax error near unexpected token from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ /go/src/github.com/prometheus/client_golang/prometheus/promhttp (from $GOPATH)
bash: syntax error near unexpected token
from'
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Fetching sourcegraph.com/sourcegraph/appdas...
bash: Fetching: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ https fetch failed: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied
bash: https: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package sourcegraph.com/sourcegraph/appdash: unrecognized import path "sourcegraph.com/sourcegraph/appdash" (https fetch: Get sourcegraph.com/sourcegraph/appdas... dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied)
bash: syntax error near unexpected token ('
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ Fetching https://sourcegraph.com/sourcegraph/appdash/opentracing?go-get=1
bash: Fetching: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ https fetch failed: Get https://sourcegraph.com/sourcegraph/appdash/opentracing?go-get=1: dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied
bash: https: command not found
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ package sourcegraph.com/sourcegraph/appdash/opentracing: unrecognized import path "sourcegraph.com/sourcegraph/appdash/opentracing" (https fetch: Get https://sourcegraph.com/sourcegraph/appdash/opentracing?go-get=1: dial tcp: lookup sourcegraph.com on 4.2.2.4:53: dial udp 4.2.2.4:53: socket: permission denied)
bash: syntax error near unexpected token
('
mr-ghoroubi@mr-ghoroubi-PC:~/workspace/src/ghoghnos.ir/bugTracker$ ERROR: Service 'bugs' failed to build: The command '/bin/sh -c go get -t -v ./...' returned a non-zero code: 1
bash: ERROR:: command not found

Collapse
 
plutov profile image
Alex Pliutau
Collapse
 
amirzaidi2002 profile image
cessna

HI Nima did you get passed this failed to build: The command '/bin/sh -c go get -t -v ./... error

I am also stuck and my bugs service and other services are not getting built