-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/home/runner/work/gnmic/gnmic/pkg/loaders/file_loader/file_loader.go:201: [file_loader] failed to read targets file #301
Comments
That error means the request timed out. There could be many reasons for that.
|
but how will i check from the gnmic server/container/pod ? curl is not available and even i am unable to do apk add curl there goroutine 1 [running]: It seems we can not pass ?token=token value in the url |
If your http server does not have TLS enabled try with a url with scheme |
No , we need to use https only, but i already set the skip-verify: true |
can you share your loader config here, so we are on the same page? |
|
maybe replace that |
@karimra url parsing works fine for the url https://<gitlab.com>/api/v4/projects/222/repository/files/test%2ftargets.yaml/raw?private_token=23122432424 |
That depends on your setup, that's out of scope of gnmic. |
@karimra I am able to do the curl from the test pod and as well as from kubernetes nodes . it seems gnmic pods dont allow to install curl to test it from there. |
On the node that you are running your gnmic pod you can run curl on the node but in network namespace of the gnmic pod which should tell you if you have some type of issue due to name resolution and/or pod network policy etc. https://www.redhat.com/sysadmin/container-namespaces-nsenter Also if the URL works with gnmic outside the pod then the issue is not with gnmic but with your environment ... |
@peejaychilds @karimra Can gnmi file loader is able to fetch the file from gilab? |
From the node where gnmi pods are runing, able to curl and get the result from the same gnmi namespace i created a test pod and tried curl that is also working |
Hi , I am using gnmi file loader to load remote file and i get the error
/home/runner/work/gnmic/gnmic/pkg/loaders/file_loader/file_loader.go:201: [file_loader] failed to read targets file: Get "https://l/raw?private_token=generated token value": context deadline exceeded
hwever i am able to get the content of the file using curl
@karimra Please help.
The text was updated successfully, but these errors were encountered: