You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2020/04/01 13:12:33 UTC
[GitHub] [trafficcontrol] tkald opened a new issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
tkald opened a new issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582
<!--
************ STOP!! ************
If this issue identifies a security vulnerability, DO NOT submit it! Instead, contact
the Apache Software Foundation Security Team at security@trafficcontrol.apache.org and follow the
guidelines at https://www.apache.org/security/ regarding vulnerability disclosure.
-->
<!--
- For *SUPPORT QUESTIONS*, use the
[Traffic Control slack channels](https://traffic-control-cdn.slack.com) or [Traffic Control mailing lists](http://trafficcontrol.apache.org/mailing_lists/).
- Before submitting, please **SEARCH GITHUB** for a similar issue or PR. -->
## I'm submitting a ...
<!-- (check all that apply with "[x]") -->
<!--- security vulnerability (STOP!! - see above)-->
- [x] bug report
- [ ] new feature / enhancement request
- [ ] improvement request (usability, performance, tech debt, etc.)
- [ ] other <!--(Please do not submit support requests here - see above)-->
## Traffic Control components affected ...
<!-- (check all that apply with "[x]") -->
- [ ] CDN in a Box
- [ ] Documentation
- [ ] Grove
- [ ] Traffic Control Client
- [ ] Traffic Monitor
- [ ] Traffic Ops
- [ ] Traffic Ops ORT
- [ ] Traffic Portal
- [ ] Traffic Router
- [x] Traffic Stats
- [ ] Traffic Vault
- [ ] unknown
## Current behavior:
<!-- Describe how the bug manifests / how the current features are insufficient. -->
```
Can not build rpm
WORKSPACE: /root/trafficcontrol
BUILD_NUMBER: 10411.92a14286
RHEL_VERSION: el7
TC_VERSION: 4.0.0
Initializing the build area.
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
GOPATH:
go version go1.13.6 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/lib/golang"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build261879571=/tmp/go-build -gno-record-gcc-switches"
traffic_stats.go:41:2: cannot find package "github.com/influxdata/influxdb/client/v2" in any of:
/usr/lib/golang/src/github.com/influxdata/influxdb/client/v2 (from $GOROOT)
/root/go/src/github.com/influxdata/influxdb/client/v2 (from $GOPATH)
Could not build traffic_stats binary
go get -u github.com/influxdata/influxdb/client/v2
package github.com/influxdata/influxdb/client/v2: cannot find package "github.com/influxdata/influxdb/client/v2" in any of:
/usr/lib/golang/src/github.com/influxdata/influxdb/client/v2 (from $GOROOT)
/root/go/src/github.com/influxdata/influxdb/client/v2 (from $GOPATH)
```
## Expected / new behavior:
<!-- Describe what the behavior would be without the bug / how the feature would improve Traffic Control -->
Build rpm-s without failing
## Minimal reproduction of the problem with instructions:
<!--
If the current behavior is a bug or you can illustrate your feature request better with an example,
please provide the *STEPS TO REPRODUCE* and include the applicable TC version.
-->
## Anything else:
<!-- e.g. stacktraces, related issues, suggestions how to fix -->
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] ocket8888 commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-607348960
So the influxdb client is "vendored" into the repository in `vendor/github.com/influxdata/influxdb/client/v2`. Do you still have that directory in the root of your repository?
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] rawlinp commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
rawlinp commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-607937424
> go version go1.13.6
We build with go1.11.13 currently -- does it build with _that_ version?
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] tkald commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
tkald commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-610059812
Thank you!
From git 4.0 branch build succeeds :)
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] tkald commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
tkald commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-609971709
No it does not for me:
```
/root/trafficcontrol/traffic_stats/build/build_rpm.sh
git is /usr/bin/git
rpmbuild is /usr/bin/rpmbuild
go is /usr/bin/go
Build environment has been verified.
==================================================
WORKSPACE: /root/trafficcontrol
BUILD_NUMBER: 10411.92a14286
RHEL_VERSION: el7
TC_VERSION: 4.0.0
--------------------------------------------------
Initializing the build area.
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/go/bin
GOPATH: /root/go/src
go version go1.11 linux/amd64
GOARCH="amd64"
GOBIN="/root/go/bin"
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go/src"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build093726363=/tmp/go-build -gno-record-gcc-switches"
github.com/influxdata/influxdb/pkg/escape
github.com/influxdata/influxdb/models
github.com/influxdata/influxdb/client/v2
_/root/trafficcontrol/traffic_stats
# _/root/trafficcontrol/traffic_stats
./traffic_stats.go:316:27: cannot use cdn (type string) as type *string in assignment
./traffic_stats.go:317:37: cannot use "all" (type string) as type *string in assignment
./traffic_stats.go:318:30: cannot use "daily_maxgbps" (type string) as type *string in assignment
./traffic_stats.go:319:29: cannot use strconv.FormatFloat(value, 'f', 2, 64) (type string) as type *float64 in assignment
./traffic_stats.go:320:31: cannot use time.Now().Format(time.RFC3339) (type string) as type time.Time in assignment
./traffic_stats.go:321:28: cannot use statTime.Format("2006-01-02") (type string) as type *time.Time in assignment
./traffic_stats.go:376:25: cannot use cdn (type string) as type *string in assignment
./traffic_stats.go:377:35: cannot use "all" (type string) as type *string in assignment
./traffic_stats.go:378:28: cannot use "daily_bytesserved" (type string) as type *string in assignment
./traffic_stats.go:379:27: cannot use strconv.FormatFloat(bytesServedTB, 'f', 2, 64) (type string) as type *float64 in assignment
./traffic_stats.go:379:27: too many errors
Could not build traffic_stats binary
```
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] rawlinp edited a comment on issue #4582: Can't
build traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
rawlinp edited a comment on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-610026137
Ah, directly calling `build_rpm.sh` is not really supported these days unfortunately -- it may or may not work. The supported way of building rpms today is via the `pkg` script (which depends on Docker), e.g. `./pkg traffic_stats_build`.
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] tkald commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
tkald commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-607788807
Yes I have.
Copied it to the `/root/go/src/github.com/influxdata/influxdb/client/v2` and getting another error now.
```
git is /usr/bin/git
rpmbuild is /usr/bin/rpmbuild
go is /usr/bin/go
Build environment has been verified.
==================================================
WORKSPACE: /root/trafficcontrol
BUILD_NUMBER: 10411.92a14286
RHEL_VERSION: el7
TC_VERSION: 4.0.0
--------------------------------------------------
Initializing the build area.
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
GOPATH:
go version go1.13.6 linux/amd64
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/lib/golang"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build627917589=/tmp/go-build -gno-record-gcc-switches"
github.com/apache/trafficcontrol/vendor/github.com/lib/pq/oid
github.com/apache/trafficcontrol/lib/go-log
github.com/apache/trafficcontrol/vendor/github.com/go-ozzo/ozzo-validation
github.com/apache/trafficcontrol/vendor/github.com/jmoiron/sqlx/reflectx
github.com/apache/trafficcontrol/vendor/github.com/asaskevich/govalidator
github.com/apache/trafficcontrol/lib/go-util
github.com/apache/trafficcontrol/vendor/github.com/jmoiron/sqlx
github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/pkg/escape
github.com/apache/trafficcontrol/lib/go-rfc
github.com/apache/trafficcontrol/vendor/github.com/go-ozzo/ozzo-validation/is
github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/models
github.com/apache/trafficcontrol/vendor/github.com/lib/pq
github.com/cihub/seelog/archive/gzip
github.com/apache/trafficcontrol/lib/go-tc/tovalidate
github.com/cihub/seelog/archive
github.com/apache/trafficcontrol/vendor/github.com/influxdata/influxdb/client/v2
github.com/cihub/seelog/archive/tar
github.com/cihub/seelog/archive/zip
github.com/influxdata/influxdb/pkg/escape
github.com/cihub/seelog
github.com/influxdata/influxdb/models
github.com/apache/trafficcontrol/lib/go-tc
github.com/influxdata/influxdb/client/v2
github.com/apache/trafficcontrol/traffic_ops/client
_/root/trafficcontrol/traffic_stats
# _/root/trafficcontrol/traffic_stats
./traffic_stats.go:316:27: cannot use cdn (type string) as type *string in assignment
./traffic_stats.go:317:37: cannot use "all" (type string) as type *string in assignment
./traffic_stats.go:318:30: cannot use "daily_maxgbps" (type string) as type *string in assignment
./traffic_stats.go:319:29: cannot use strconv.FormatFloat(value, 'f', 2, 64) (type string) as type *float64 in assignment
./traffic_stats.go:320:31: cannot use time.Now().Format(time.RFC3339) (type string) as type time.Time in assignment
./traffic_stats.go:321:28: cannot use statTime.Format("2006-01-02") (type string) as type *time.Time in assignment
./traffic_stats.go:376:25: cannot use cdn (type string) as type *string in assignment
./traffic_stats.go:377:35: cannot use "all" (type string) as type *string in assignment
./traffic_stats.go:378:28: cannot use "daily_bytesserved" (type string) as type *string in assignment
./traffic_stats.go:379:27: cannot use strconv.FormatFloat(bytesServedTB, 'f', 2, 64) (type string) as type *float64 in assignment
./traffic_stats.go:379:27: too many errors
Could not build traffic_stats binary
```
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] rawlinp commented on issue #4582: Can't build
traffic stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
rawlinp commented on issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582#issuecomment-610026137
Ah, directly calling `build_rpm.sh` is not really supported these days unfortunately -- it may or may not work. The supported way of building rpms today is via the `pkg` script (which depends on Docker), e.g. `pkg traffic_stats_build`.
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [trafficcontrol] tkald closed issue #4582: Can't build traffic
stats - github.com/influxdata/influxdb/client/v2 missing
Posted by GitBox <gi...@apache.org>.
tkald closed issue #4582: Can't build traffic stats - github.com/influxdata/influxdb/client/v2 missing
URL: https://github.com/apache/trafficcontrol/issues/4582
----------------------------------------------------------------
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
With regards,
Apache Git Services