influxdb-relay icon indicating copy to clipboard operation
influxdb-relay copied to clipboard

install fails

Open JulianXin opened this issue 4 years ago • 12 comments

go get -u github.com/influxdata/influxdb-relay package github.com/influxdata/influxdb/v2/pkg/escape: cannot find package "githu b.com/influxdata/influxdb/v2/pkg/escape" in any of: /usr/local/go/src/github.com/influxdata/influxdb/v2/pkg/escape (from $GO ROOT) /root/go/src/github.com/influxdata/influxdb/v2/pkg/escape (from $GOPATH)

Centos7.5 golang:1.5.4(I also have tried 1.7.6 and 1.14.2)

I am not good at golang. The used package has been removed or changed dir?

JulianXin avatar May 07 '20 07:05 JulianXin

@JulianXin thanks for the issue. not a lot of activity in this repo lately, but maybe someone from the community can help here.

russorat avatar May 08 '20 16:05 russorat

It seems that refactoring would be the problem for influx v2, but the current one for Centos is v1.8. Does anyone know what can be done to actually install influxdb-relay on Centos at the moment?

vgrozev avatar Jul 14 '20 18:07 vgrozev

There's two options for this. We either update the readme or just add a go.mod file.

I kind of favor adding go.mod but I'm hesitant to change any code or dependencies.

If you want to install this with a more recent version of Go, you'll have to add GO111MODULE=off as an environment variable when building. You will also need to use godeps to retrieve the specific versions of the dependencies.

jsternberg avatar Jul 14 '20 19:07 jsternberg

I have the same issue, GO111MODULE=off didn't help. What should I do with godeps, can you please send exact steps how can I install relay? Any workaround will help. Thank you.

go get -u github.com/influxdata/influxdb-relay

/opt/go/src/github.com/influxdata/influxdb/models/points.go:18:2: code in directory /opt/go/src/github.com/influxdata/influxdb/pkg/escape expects import "github.com/influxdata/influxdb/pkg/escape"

karalov avatar Jul 14 '20 21:07 karalov

yes, GO111MODULE=off, does not to fix it for me either, so I cannot get the code in order to use 'godeps' on it. ... on the other hand I am not in depth familiar with GO, so I might be doing something wrong.

vgrozev avatar Jul 16 '20 17:07 vgrozev

You should give a try to https://github.com/veepee-oss/influxdb-relay.

rockyluke avatar Jul 17 '20 10:07 rockyluke

@vgrozev I just merged a change to add a go.mod file to this repository so that the install would be easier. Can you give it another try? This time the GO111MODULE value should be either not set or set to on.

@rockyluke thanks for bringing that fork to our attention! We're giving it an active look to see how we could better integrate community changes to the upstream repository.

jsternberg avatar Jul 17 '20 15:07 jsternberg

@jsternberg Thanks, it seems that it installs ok now and the systemd process I have seem to work OK. Thanks. @rockyluke I looked at that fork in the past, but although it seems they are adding cool features and it is actively maintained, the config file syntax is changed so much that it will require a lot of work on my side to accommodate at the moment.

vgrozev avatar Jul 17 '20 16:07 vgrozev

@jsternberg I will be happy to help you backporting some simple features we added.

@vgrozev sadly we had to change the whole configuration file 😢 on the other hand we implemented some nice features.

rockyluke avatar Jul 17 '20 20:07 rockyluke

tried all suggestions, none of them is working. Please help out here

xiuqinzhao avatar Nov 09 '20 06:11 xiuqinzhao

tried all suggestions, none of them is working. Please help out here

Relay is not supported anymore and is not recommended by influx support. Try to use telegraf instead.

karalov avatar Nov 09 '20 22:11 karalov

Relay is not supported anymore and is not recommended by influx support.

Is there an official statement on that? Telegraf and the influxdb-relay do very different things.

jhg03a avatar Nov 09 '20 22:11 jhg03a