Sunday, September 8, 2024
HomeGolangGrafana error construct from supply - Getting Assist

Grafana error construct from supply – Getting Assist


Hey!

I’m making an attempt to construct grafana from supply in Home windows 10 (64-bit) and sadly i’m having the next error.

Any concept what’s unsuitable with it?

Regards

It’s possible you’ll wish to test the grafana construct directions

Hey and thanks on your reply!

I’ve already checked grafana construct directions and sadly i’ve received the identical drawback as talked about Grafana constructing from supply error (undefined: server.Initialize) – #8 by zahrazare313 – Set up – Grafana Labs Group Boards
Wire software is put in in $GOPATH/bin/wire.exe and this path can be added to my surroundings system path

Any concept that might assist me?

Regards

That error making an attempt to run make is probably going a part of the issue. Have you ever put in make? Sorry I don’t use home windows so can’t actually assist a lot with that.

You may additionally wish to ask on the grafana people because it seems (to me) that this isn’t particularly a go problem, however a problem getting the grafana construct going. Thx! Sorry I couldn’t be extra useful.

I’ve simply put in make for home windows

and nonetheless the identical error relating to Home windows 10 (Grafana constructing from supply error (undefined: server.Initialize) – #7 by tomschirgi – Set up – Grafana Labs Group Boards)

make gen-go

i get the error: File *.sh not discovered.
process_begin: CreateProcess(NULL, # Set up binary/ries utilizing Go 1.14+ construct command. That is utilizing bwplotka/bingo-controlled, separate go module with pinned dependencies., …)

Positively i’ll ship a suggestions (Grafana workforce), however i’m not positive in keeping with the weblog submit!

Anybody who has compiled it through one other working system and afterwards construct it particularly for Win (32-bit model) through go surroundings variables? I feel that it could assist me so much!

go_env

Regards

You would possibly strive constructing below cygwin: it appears varied widespread utilities required will not be current, resembling tr and grep. If reminiscence serves, Microsoft additionally has “discover”, which would be the cause it’s failing.

I constructed console stage purposes below cygwin that additionally ran on the cloud and mirrored the output (apart from some floating level) with out points, however haven’t constructed graphically oriented packages, and that will take some mingw magic.

I put in Cygwin (C:cygwin64) as talked about and that i received the next error

Moreover i received not the anticipated suggestions from grafana help workforce as they supply ticket help just for business options.

Sadly i’ll say it once more and sorry for that. Anybody who has compiled it through one other working system and afterwards construct it particularly for Win (32-bit model) through go surroundings variables?

I feel that it could assist me so much!

Regards

I lastly managed to run with out drawback make gen-go command through Cygwin and the next trace for Variables.mk

I’ve already procuded the next file (wire-ν0.5.0) through make gen-go

sadly i cannot proceed to the next step because of this error

and naturally nonetheless the identical error

Any concept ?

Regards

I downgraded golang model from 1.20 to 1.14 and luckily i don’t see the above error any extra, however one thing that has to do with go-sqlite model that i connect you

In your higher comfort i ship you the next hyperlink to my go.mod file.

Regards once more

Hey!

I lastly managed to get an answer for it through eradicating the next
exclude github.com/mattn/go-sqlite3 v2.0.3+incompatible
from go.mod.

Sadly i get the next error when i attempt to compile it in Home windows 10

In your personal comfort, i connect you the script output from Cygwin

go run construct.go construct
Model: 10.1.0, Linux Model: 10.1.0, Package deal Iteration: 1693311946pre
constructing binaries construct
constructing grafana ./pkg/cmd/grafana
rm -r ./bin/windows-amd64/grafana.exe
rm -r ./bin/windows-amd64/grafana.exe.md5
go construct -ldflags -w -X fundamental.model=10.1.0-pre -X fundamental.commit=unknown-dev -X ma
in.buildstamp=1693311949 -X fundamental.buildBranch=fundamental -buildmode=exe -o ./bin/window
s-amd64/grafana.exe ./pkg/cmd/grafana
go: discovering module for package deal k8s.io/client-go/util/keyutil
go: discovering module for package deal k8s.io/client-go/listers/flowcontrol/v1beta3
go: discovering module for package deal k8s.io/client-go/applyconfigurations/flowcontrol/
v1beta3
go: discovering module for package deal k8s.io/apimachinery/pkg/util/clock
go: discovering module for package deal k8s.io/client-go/dynamic/dynamicinformer
go: discovering module for package deal k8s.io/client-go/instruments/occasions
go: discovering module for package deal k8s.io/client-go/kubernetes/typed/flowcontrol/v1b
eta3
go: discovering module for package deal k8s.io/api/batch/v2alpha1
go: discovering module for package deal k8s.io/client-go/listers/admissionregistration/v1
go: discovering module for package deal k8s.io/api/settings/v1alpha1
go: discovering module for package deal k8s.io/client-go/instruments/cache/synctrack
go: discovering module for package deal k8s.io/client-go/applyconfigurations/meta/v1
....pkgmodgolang.orgxcrypto@v0.11.0curve25519curve25519_go120.go:9:8: pa
ckage crypto/ecdh isn't in GOROOT (c:gosrccryptoecdh)
....pkgmodgithub.comgrafanagrafana-plugin-sdk-go@v0.165.0buildcommon.go:
5:2: package deal embed isn't in GOROOT (c:gosrcembed)
....pkgmodgithub.comgrafanagrafana-azure-sdk-go@v1.7.0aztokenproviderret
riever_clientsecret.go:8:2: construct constraints exclude all Go recordsdata in C:UsersK
Asimakopoulosgopkgmodgithub.com!azureazure-sdk-for-gosdkazcore@v1.2.0
....pkgmodgithub.comgrafanagrafana-azure-sdk-go@v1.7.0aztokenproviderret
riever_clientsecret.go:9:2: construct constraints exclude all Go recordsdata in C:UsersK
Asimakopoulosgopkgmodgithub.com!azureazure-sdk-for-gosdkazcore@v1.2.0cl
oud
....pkgmodgithub.comgrafanagrafana-azure-sdk-go@v1.7.0aztokenproviderret
riever_clientsecret.go:10:2: construct constraints exclude all Go recordsdata in C:Customers
KAsimakopoulosgopkgmodgithub.com!azureazure-sdk-for-gosdkazcore@v1.2.0p
olicy
....pkgmodgithub.comgrafanagrafana-azure-sdk-go@v1.7.0aztokenproviderret
riever_clientsecret.go:11:2: construct constraints exclude all Go recordsdata in C:Customers
KAsimakopoulosgopkgmodgithub.com!azureazure-sdk-for-gosdkazidentity@v1.2
.0
pkgextensionsmain.go:7:2: construct constraints exclude all Go recordsdata in C:UsersK
Asimakopoulosgopkgmodgithub.com!azureazure-sdk-for-gosdkkeyvaultazkeys@
v0.9.0
....pkgmodgithub.comgrafanakindsys@v0.0.0-20230508162304-452481b63482bind
_composable.go:3:8: discovered packages thema (assignable.go) and fundamental (magefile.go)
in C:UsersKAsimakopoulosgopkgmodgithub.comgrafanathema@v0.0.0-2023071215
3715-375c1b45f3ed
....pkgmodgithub.commattngo-runewidth@v0.0.13runewidth.go:6:2: discovered pack
ages uniseg (doc.go) and fundamental (gen_breaktest.go) in C:UsersKAsimakopoulosgop
kgmodgithub.comrivouniseg@v0.3.4
....pkgmodgithub.com!microsoftgo-winio@v0.6.0tools.go:5:8: import "golang
.org/x/instruments/cmd/stringer" is a program, not an importable package deal
....pkgmodgo.opentelemetry.iocontribsamplersjaegerremote@v0.9.0internal
proto-genjaeger-idlprotoapi_v2sampling.pb.go:11:2: ambiguous import: discovered p
ackage google.golang.org/genproto/googleapis/api/annotations in a number of modules
:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisapiannotations)
        google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisa
pi@v0.0.0-20230530153820-e85fd2cbaebcannotations)
....pkgmodgithub.comgooglecel-go@v0.12.6checkerdeclsdecls.go:21:2: ambi
guous import: discovered package deal google.golang.org/genproto/googleapis/api/expr/v1alp
ha1 in a number of modules:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisapiexprv1alpha1)
        google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisa
pi@v0.0.0-20230530153820-e85fd2cbaebcexprv1alpha1)
....pkgmodgithub.comgrpc-ecosystemgrpc-gatewayv2@v2.16.0runtimehandler.
go:11:2: ambiguous import: discovered package deal google.golang.org/genproto/googleapis/a
pi/httpbody in a number of modules:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisapihttpbody)
        google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisa
pi@v0.0.0-20230530153820-e85fd2cbaebchttpbody)
....pkgmodgithub.comgoogleapisgax-gov2@v2.7.1apierrorinternalprotoerr
or.pb.go:27:2: ambiguous import: discovered package deal google.golang.org/genproto/google
apis/rpc/code in a number of modules:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisrpccode)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisr
laptop@v0.0.0-20230530153820-e85fd2cbaebccode)
....pkgmodgo.opentelemetry.iootelexportersotlpotlptraceotlptracegrpc@v1
.14.0client.go:23:2: ambiguous import: discovered package deal google.golang.org/genproto
/googleapis/rpc/errdetails in a number of modules:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisrpcerrdetails)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisr
laptop@v0.0.0-20230530153820-e85fd2cbaebcerrdetails)
....pkgmodgoogle.golang.orggrpc@v1.45.0statusstatus.go:35:2: ambiguous im
port: discovered package deal google.golang.org/genproto/googleapis/rpc/standing in a number of
 modules:
        google.golang.org/genproto v0.0.0-20230526203410-71b5a4ffd15e (C:Customers
KAsimakopoulosgopkgmodgoogle.golang.orggenproto@v0.0.0-20220421151946-72621
c1f0bd3googleapisrpcstatus)
        google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cb
aebc (C:UsersKAsimakopoulosgopkgmodgoogle.golang.orggenprotogoogleapisr
laptop@v0.0.0-20230530153820-e85fd2cbaebcstatus)
....pkgmodgolang.orgxnet@v0.10.0http2transport.go:19:2: package deal io/fs is
 not in GOROOT (c:gosrciofs)
....pkgmodk8s.ioclient-go@v9.0.0+incompatiblekubernetesschemeregister.go
:36:2: module k8s.io/api@newest discovered (v0.28.1), however doesn't comprise package deal k8
s.io/api/batch/v2alpha1
....pkgmodk8s.ioclient-go@v9.0.0+incompatiblekubernetesschemeregister.go
:49:2: module k8s.io/api@newest discovered (v0.28.1), however doesn't comprise package deal k8
s.io/api/settings/v1alpha1
....pkgmodk8s.ioclient-go@v9.0.0+incompatibleutilflowcontrolbackoff.go:2
3:2: module k8s.io/apimachinery@newest discovered (v0.28.1), however doesn't comprise pac
kage k8s.io/apimachinery/pkg/util/clock
....pkgmodk8s.ioapiserver@v0.27.1pkgutilflowcontrolapf_controller.go:54
:2: module k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise package deal
k8s.io/client-go/applyconfigurations/flowcontrol/v1beta3
....pkgmodgithub.comgrafanagrafana-apiserver@v0.0.0-20230713001719-88a9ed4
1992dpkgclientapplyconfigurationkindsv1grafanaresourcedefinition.go:10:2:
module k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise package deal k8s.
io/client-go/applyconfigurations/meta/v1
....pkgmodk8s.ioapiserver@v0.27.1pkgadmissionpluginvalidatingadmissionp
olicycontroller_reconcile.go:42:2: module k8s.io/client-go@newest discovered (v1.5.2
), however doesn't comprise package deal k8s.io/client-go/dynamic/dynamicinformer
....pkgmodk8s.ioapiserver@v0.27.1pkgutilflowcontrolapf_controller.go:55
:2: module k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise package deal
k8s.io/client-go/kubernetes/typed/flowcontrol/v1beta3
....pkgmodk8s.ioapiserver@v0.27.1pkgadmissionconfigurationmutating_webh
ook_manager.go:29:2: module k8s.io/client-go@newest discovered (v1.5.2), however doesn't
 comprise package deal k8s.io/client-go/listers/admissionregistration/v1
....pkgmodk8s.ioapiserver@v0.27.1pkgutilflowcontrolapf_controller.go:56
:2: module k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise package deal
k8s.io/client-go/listers/flowcontrol/v1beta3
....pkgmodk8s.ioapiserver@v0.27.1pkgadmissionpluginvalidatingadmissionp
olicyinternalgenericcontroller.go:34:2: module k8s.io/client-go@newest discovered
(v1.5.2), however doesn't comprise package deal k8s.io/client-go/instruments/cache/synctrack
....pkgmodk8s.ioapiserver@v0.27.1pkgserverdynamiccertificatestlsconfig.
go:31:2: module k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise pac
kage k8s.io/client-go/instruments/occasions
....pkgmodk8s.ioapiserver@v0.27.1pkgserveroptionsserving.go:36:2: modul
e k8s.io/client-go@newest discovered (v1.5.2), however doesn't comprise package deal k8s.io/cl
ient-go/util/keyutil
....pkgmodgithub.comgrafanathema@v0.0.0-20230712153715-375c1b45f3edloadl
oad.go:9:2: package deal testing/fstest isn't in GOROOT (c:gosrctestingfstest)
exit standing 1
exit standing 1

Any concept that might assist me?

Regards

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments