You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/09/22 03:47:18 UTC

[GitHub] [apisix-dashboard] spacewander opened a new issue #500: Failed to compile dashboard

spacewander opened a new issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [x] Question or discussion
   - [ ] Bug
   - [ ] Requirements
   - [ ] Feature or performance improvement
   - [ ] Other
   
   ___
   
   This issue is migrated from https://github.com/apache/apisix/issues/2272
   > #2. I tried to build dashboard, go build needs to import following:
   "github.com/apisix/manager-api/conf"
   "github.com/apisix/manager-api/log"
   "github.com/apisix/manager-api/route"
   However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.
   
   > #3, Since I could not move forward with #2, I tried to do docker for the dashboard. again it failed with timed-out for what it looked like that something to with GoProxy tried to dial tcp 119.28.201.50:443 I tried to see what the ip address seemed to be un-resolvable. I m from US and didnt think I needed GoProxy. so please advise on this as well.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] MrLightSpeed0 commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
MrLightSpeed0 commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-699739985


   Hello. I was following the steps mentioned on this page: https://github.com/apache/apisix-dashboard
   I was at this step 4 Build 
    cd api && go build -o ../manager-api . && cd ..
    and got following error:
   `main.go:24:2: cannot find package "github.com/apisix/manager-api/conf" in any of:
           /usr/src/github.com/apisix/manager-api/conf (from $GOROOT)
           /root/go/src/github.com/apisix/manager-api/conf (from $GOPATH)
   main.go:25:2: cannot find package "github.com/apisix/manager-api/log" in any of:
           /usr/src/github.com/apisix/manager-api/log (from $GOROOT)
           /root/go/src/github.com/apisix/manager-api/log (from $GOPATH)
   main.go:26:2: cannot find package "github.com/apisix/manager-api/route" in any of:
           /usr/src/github.com/apisix/manager-api/route (from $GOROOT)
           /root/go/src/github.com/apisix/manager-api/route (from $GOPATH)`
   what do I need to set for $GOPATH and $GOROOT. I am running this as root. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697117973


   > Hi I disabled the GoProxy. but got the same error. so it is for something else. I am behind a company proxy and I do have http_proxy and https_proxy set up in the system since I was able to do: "go get github.com/something" to download with no issue. no sure why this "dial tcp..." failed... Thank you.
   > 
   > ```
   > 
   > go: github.com/api7/apitest@v1.4.9: Get https://proxy.golang.org/github.com/api7/apitest/@v/v1.4.9.mod: dial tcp 172.217.4.49:443: connect: network is unreachable
   > ERROR: Service 'manager' failed to build: The command '/bin/sh -c mkdir /go/manager-api     && go build -o /go/manager-api/manager-api     && mv /go/src/github.com/apisix/manager-api/build.sh /go/manager-api/     && mv /go/src/github.com/apisix/manager-api/conf/conf_preview.json /go/manager-api/conf.json     && rm -rf /go/src/github.com/apisix/manager-api     && rm -rf /etc/localtime     && ln -s  /usr/share/zoneinfo/Hongkong /etc/localtime     && dpkg-reconfigure -f noninteractive tzdata' returned a non-zero code: 1
   > ```
   
   It works fine on my machine. I think it's a network issue. you could set `https://goproxy.cn` as `GOPROXY` (in https://github.com/apache/apisix-dashboard/blob/master/api/Dockerfile#L23-L24) and try again.
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698428810


   Still don't know how to resolve this issue :(
   
   @MrLightSpeed0 Could you please provide a detailed installation steps? so I could try to reproduce this issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697089282






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] MrLightSpeed0 commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
MrLightSpeed0 commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697081400


   Hi I disabled the GoProxy. but got the same error. so it is for something else. I am behind a company proxy and I do have http_proxy and https_proxy set up in the system since I was able to do: "go get github.com/something" to download with no issue. no sure why this "dial tcp..." failed...  Thank you.
   
   ``` ---> Running in 4ac697c8d207
   
   go: github.com/api7/apitest@v1.4.9: Get https://proxy.golang.org/github.com/api7/apitest/@v/v1.4.9.mod: dial tcp 172.217.4.49:443: connect: network is unreachable
   ERROR: Service 'manager' failed to build: The command '/bin/sh -c mkdir /go/manager-api     && go build -o /go/manager-api/manager-api     && mv /go/src/github.com/apisix/manager-api/build.sh /go/manager-api/     && mv /go/src/github.com/apisix/manager-api/conf/conf_preview.json /go/manager-api/conf.json     && rm -rf /go/src/github.com/apisix/manager-api     && rm -rf /etc/localtime     && ln -s  /usr/share/zoneinfo/Hongkong /etc/localtime     && dpkg-reconfigure -f noninteractive tzdata' returned a non-zero code: 1
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698331203






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-707546221


   I think it's not a bug. 
   more like doc guidance issue.
   @MrLightSpeed0  had you enable `go module`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-701310603


   ok, we will test and resolve this issue before 1.6 release.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-701310987


   but could @nic-chen give some suggestions about this issue? not sure if it's a bug or a tricky issue 🤔


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698331203


   > Hello you said the dial tcp error was related to my network. I will check on that. that is the for question #3 (build with docker). what about #2, could you please help on that? copy it here for your quick reference:
   > 
   > #2. I tried to build dashboard, go build needs to import following:
   > "github.com/apisix/manager-api/conf"
   > "github.com/apisix/manager-api/log"
   > "github.com/apisix/manager-api/route"
   > However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.
   
   @nic-chen Please take a look at this one.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697117973


   > Hi I disabled the GoProxy. but got the same error. so it is for something else. I am behind a company proxy and I do have http_proxy and https_proxy set up in the system since I was able to do: "go get github.com/something" to download with no issue. no sure why this "dial tcp..." failed... Thank you.
   > 
   > ```
   > 
   > go: github.com/api7/apitest@v1.4.9: Get https://proxy.golang.org/github.com/api7/apitest/@v/v1.4.9.mod: dial tcp 172.217.4.49:443: connect: network is unreachable
   > ERROR: Service 'manager' failed to build: The command '/bin/sh -c mkdir /go/manager-api     && go build -o /go/manager-api/manager-api     && mv /go/src/github.com/apisix/manager-api/build.sh /go/manager-api/     && mv /go/src/github.com/apisix/manager-api/conf/conf_preview.json /go/manager-api/conf.json     && rm -rf /go/src/github.com/apisix/manager-api     && rm -rf /etc/localtime     && ln -s  /usr/share/zoneinfo/Hongkong /etc/localtime     && dpkg-reconfigure -f noninteractive tzdata' returned a non-zero code: 1
   > ```
   
   It works fine on my machine. I think it's a network issue. you could set `https://goproxy.cn` as `GOPROXY` (in https://github.com/apache/apisix-dashboard/blob/master/api/Dockerfile#L23-L24) and try again.
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698364579


   > Hello you said the dial tcp error was related to my network. I will check on that. that is the for question #3 (build with docker). what about #2, could you please help on that? copy it here for your quick reference:
   > 
   > #2. I tried to build dashboard, go build needs to import following:
   > "github.com/apisix/manager-api/conf"
   > "github.com/apisix/manager-api/log"
   > "github.com/apisix/manager-api/route"
   > However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.
   
   `github.com/apisix/manager-api` is  `apisix-dashboard/api`
   please take a look at :
   https://github.com/apache/apisix-dashboard/blob/master/api/go.mod#L1
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697089282


   ping @nic-chen 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] MrLightSpeed0 commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
MrLightSpeed0 commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698318131


   Hello you said the dial tcp error was related to my network. I will check on that. that is the for question #3 (build with docker). what about #2, could you please help on that? copy it here for your quick reference:
   
   #2. I tried to build dashboard, go build needs to import following:
   "github.com/apisix/manager-api/conf"
   "github.com/apisix/manager-api/log"
   "github.com/apisix/manager-api/route"
   However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-696484794


   CC @MrLightSpeed0


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698364579


   > Hello you said the dial tcp error was related to my network. I will check on that. that is the for question #3 (build with docker). what about #2, could you please help on that? copy it here for your quick reference:
   > 
   > #2. I tried to build dashboard, go build needs to import following:
   > "github.com/apisix/manager-api/conf"
   > "github.com/apisix/manager-api/log"
   > "github.com/apisix/manager-api/route"
   > However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.
   
   `github.com/apisix/manager-api` is  `apisix-dashboard/api`
   please take a look at :
   https://github.com/apache/apisix-dashboard/blob/master/api/go.mod#L1
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] MrLightSpeed0 commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
MrLightSpeed0 commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-697081400


   Hi I disabled the GoProxy. but got the same error. so it is for something else. I am behind a company proxy and I do have http_proxy and https_proxy set up in the system since I was able to do: "go get github.com/something" to download with no issue. no sure why this "dial tcp..." failed...  Thank you.
   
   ``` ---> Running in 4ac697c8d207
   
   go: github.com/api7/apitest@v1.4.9: Get https://proxy.golang.org/github.com/api7/apitest/@v/v1.4.9.mod: dial tcp 172.217.4.49:443: connect: network is unreachable
   ERROR: Service 'manager' failed to build: The command '/bin/sh -c mkdir /go/manager-api     && go build -o /go/manager-api/manager-api     && mv /go/src/github.com/apisix/manager-api/build.sh /go/manager-api/     && mv /go/src/github.com/apisix/manager-api/conf/conf_preview.json /go/manager-api/conf.json     && rm -rf /go/src/github.com/apisix/manager-api     && rm -rf /etc/localtime     && ln -s  /usr/share/zoneinfo/Hongkong /etc/localtime     && dpkg-reconfigure -f noninteractive tzdata' returned a non-zero code: 1
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] MrLightSpeed0 commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
MrLightSpeed0 commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-698318131


   Hello you said the dial tcp error was related to my network. I will check on that. that is the for question #3 (build with docker). what about #2, could you please help on that? copy it here for your quick reference:
   
   #2. I tried to build dashboard, go build needs to import following:
   "github.com/apisix/manager-api/conf"
   "github.com/apisix/manager-api/log"
   "github.com/apisix/manager-api/route"
   However I kept getting the errors saying those cannot found. I even tried to do, say: go get github.com/apisix/manager-api/conf, etc. they could not be found. I searched the github and unable to find them. Please advise on this.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan closed issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] spacewander commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-696484794


   CC @MrLightSpeed0


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500#issuecomment-708853757


   Please enable Go module


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan closed issue #500: Failed to compile dashboard

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #500:
URL: https://github.com/apache/apisix-dashboard/issues/500


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org