apache / openwhisk-runtime-python

Apache OpenWhisk Runtime Python supports Apache OpenWhisk functions written in Python
https://openwhisk.apache.org/
Apache License 2.0
51 stars 70 forks source link

build image error #94

Closed ningyougang closed 3 years ago

ningyougang commented 4 years ago

when executed ./gradlew core:python2ActionLoop:distDocker, reported below error

go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/rs/zerolog v1.19.0
go: finding github.com/sirupsen/logrus v1.6.0
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
go: finding github.com/rs/xid v1.2.1
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/stretchr/objx v0.1.0
go: golang.org/x/sys@v0.0.0-20190422165155-953cdadca894: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/76a8992ccba6d77c6bcf031ff2b6d821cf232e4ad8d1f2362404fbd0a798d846: exit status 128:
        error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
        fatal: the remote end hung up unexpectedly
        fatal: early EOF
        fatal: index-pack failed
go: error loading module requirements

This codes leads to the error: https://oss.navercorp.com/lambda/lambda-runtime-python/blob/master/core/python2ActionLoop/Dockerfile#L24 : go build main/proxy.go

I created a go.12 container, and executed above command manually, the problem still exist

docker run -it --name go_container golang:1.12 bash
root@e009a60daf3f:/go# GO_PROXY_GITHUB_USER=apache
root@e009a60daf3f:/go# GO_PROXY_GITHUB_BRANCH=master
...
root@e009a60daf3f:/src# go build main/proxy.go
go: finding github.com/rs/zerolog v1.19.0
go: finding github.com/sirupsen/logrus v1.6.0
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e
go: finding github.com/rs/xid v1.2.1
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: finding golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/stretchr/objx v0.1.0
go: golang.org/x/sys@v0.0.0-20190422165155-953cdadca894: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/76a8992ccba6d77c6bcf031ff2b6d821cf232e4ad8d1f2362404fbd0a798d846: exit status 128:
    error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
go: error loading module requirements
root@e009a60daf3f:/src# go get golang.org/x/sys@v0.0.0-20190422165155-953cdadca894
go: finding golang.org/x/net v0.0.0-20190620200207-3b0461eec859
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: finding golang.org/x/sys v0.0.0-20190422165155-953cdadca894
go: golang.org/x/net@v0.0.0-20190620200207-3b0461eec859: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/4a22365141bc4eea5d5ac4a1395e653f2669485db75ef119e7bbec8e19b12a21: exit status 128:
    error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
go: golang.org/x/sys@v0.0.0-20190422165155-953cdadca894: git fetch -f https://go.googlesource.com/sys refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/76a8992ccba6d77c6bcf031ff2b6d821cf232e4ad8d1f2362404fbd0a798d846: exit status 128:
    error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
go: error loading module requirements

Due to our client side didn't modify code, so the problem may come from server side.

dgrove-oss commented 4 years ago

OpenWhisk dropped support for python2 since it hit EOL. GoLang 1.12 is also past EOL.

dgrove-oss commented 3 years ago

We've dropped the python2 runtimes; closing.