athens icon indicating copy to clipboard operation
athens copied to clipboard

Proxy gitlab subgroup project error with "no go-import meta tags "

Open redwolf2019 opened this issue 3 years ago • 1 comments

Describe the bug When I use athens v0.11.0 proxy gitlab subgroup project ,athens server and gitlab server was in same LAN network and can reach each other. but actually,i can't proxy to gitlab repo.here is error msg:

Error Message

INFO[5:04AM]: exit status 1: go list -m: xinao.undepartment.com@latest: unrecognized import path "xinao.undepartment.com": parse https://xinao.undepartment.com/?go-get=1: no go-import meta tags ()
        http-method=GET http-path=/xinao.undepartment.com/@v/list kind=Not Found module= operation=download.ListHandler ops=[download.ListHandler pool.List protocol.List vcsLister.List] request-id=f23602d3-a4e6-4a9d-8b9b-cd6bbd03e694 version= 
INFO[5:04AM]: incoming request  http-method=GET http-path=/xinao.undepartment.com/@v/list http-status=404 request-id=f23602d3-a4e6-4a9d-8b9b-cd6bbd03e694 

To Reproduce run go get failed:

export GOPROXY="http://192.168.0.252:3000"

go get -v xinao.undepartment.com/m8/backend-common/go-common
go get: module xinao.undepartment.com/m8/backend-common/go-common: reading http://192.168.0.252:3000/xinao.undepartment.com/m8/backend-common/go-common/@v/list: 404 Not Found

Expected behavior success download gitlab private repo

Environment (please complete the following information):

  • OS: Centos8 X64
  • Go version : 1.16.3
  • Proxy version : v0.11.0
  • Storage (fs/mongodb/s3 etc.) :local disk

Additional context

  • i am sure network was fine
  • gitlab server already config ssl,use nginx listen 443 to proxy gitlab http port
    • i am using self-signed SSL credential
  • gitlab server did not use default ssh port(22),i was use 1022 replace 22
  • run athens with docker
docker run -d --net=host \
    -v /home/docker-data/athens/storage:/data/athens  \
    -v /home/docker-data/athens/config:/config \
    -v /home/docker-data/athens/gitconfig/.gitconfig:/root/.gitconfig \
    -v /home/docker-data/athens/gitconfig/ssh-keys:/root/.ssh \
    -v /etc/nsswitch.conf:/etc/nsswitch.conf  \
    -e ATHENS_DISK_STORAGE_ROOT=/data/athens  \
    -e ATHENS_NETRC_PATH=/config/.netrc  \
    -e ATHENS_STORAGE_TYPE=disk  \
    -e ATHENS_DOWNLOAD_MODE=sync \
    -e ATHENS_GONOSUM_PATTERNS='xinao.git/*' \
    -e GOSUMDB="sum.golang.google.cn" \
    --name athens-proxy --add-host xinao.undepartment.com:192.168.0.222 \
    --restart always -p 0.0.0.0:3000:3000  gomods/athens:v0.11.0
  • .netrc file detail:
machine xinao.undepartment.com
login robot
password yqq3Q7ssMxX-hSK_sNvk

Look forward to your reply :)

redwolf2019 avatar Apr 21 '21 12:04 redwolf2019

I believe the same thing is happening with my setup. @redwolf2019 did you ever get this resolved?

umdstu avatar May 17 '22 14:05 umdstu