-
Notifications
You must be signed in to change notification settings - Fork 83
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
receiving http error: 400 #113
Comments
Hello,
and i have the same error :
here my dockercli.go files
and dockercli_test.go
|
Hey,
For some weird reason you have to copy my source in the original directory because some paths are hardcoded somewhere.
Currently I only have access to my phone else I could provide you with my binary.
Am 20.03.2018 10:49 schrieb dawaj71 <notifications@github.com>:
Hello,
Thanks for your answer, i pulled with this command
git clone -b fix-temp-path https://github.com/glookie1/clairctl.git
and i have the same error :
2018-03-20 09:46:52.472923 D | config: No config file used
2018-03-20 09:46:52.473545 D | dockercli: docker image to save: serverweb:latest
2018-03-20 09:46:52.473584 D | dockercli: saving in: /tmp/clairctl/serverweb/latest/blobs
2018-03-20 09:47:02.196738 I | config: retrieving interface for local IP
2018-03-20 09:47:02.196848 D | config: no interface provided, looking for docker0
2018-03-20 09:47:02.197882 D | server: Update local server port from "0" to "50153"
2018-03-20 09:47:02.197936 I | server: Starting Server on X.X.X.X
2018-03-20 09:47:02.202660 I | config: retrieving interface for local IP
2018-03-20 09:47:02.202709 D | config: no interface provided, looking for docker0
2018-03-20 09:47:02.203060 I | clair: using http://X.X.X.X/local as local url
2018-03-20 09:47:02.203123 I | clair: Pushing Layer 1/2 [313a85ae8f22]
2018-03-20 09:47:02.203412 D | clair: Saving 313a85ae8f22ccda740b507b12894c4695ae3f75d819ad8cc31e33f413c47809[https:///v2]
2018-03-20 09:47:02.212524 I | clair: adding layer 1/2 [313a85ae8f22]: receiving http error: 400
client quit unexpectedly
2018-03-20 09:47:02.213402 C | cmd: pushing image "serverweb:latest": receiving http error: 400
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#113 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMVr_p69xfaC-PxymBMaxY2mfGaaMohxks5tgMKKgaJpZM4SkZis>.
|
Thanks for your time. I don't understand the
You mean that I have to download it and paste it in my directory instead of using git clone ? PS : I'm not in this directory btw '$GOPATH/src/github.com/jgsqware/clairctl" PS1; I tried to gitclone the master branch from jsqawe and just replace the 2 files changed in /docker/dockercli and build with dockerfile and it does not work |
Yes
I didn't have time to debug the issue so it currently is as is.
Am 21.03.2018 09:05 schrieb dawaj71 <notifications@github.com>:
Thanks for your time.
I don't understand the
you have to copy my source in the original directory because some paths are hardcoded somewhere
You mean that I have to download it and paste it in my directory instead of using git clone ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#113 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AMVr_hKQFgsk4m3WNWrsS-in6s8D-YCRks5tgfukgaJpZM4SkZis>.
|
Ok so what I did is : copy the master branch from the jqsware projet and change only the 2 files that are affected by your pull request. Same error ^^ I have time no worries if you don't it is ok :-) PS: in the docker file i changed ARG CLAIRCTL_VERSION=${CLAIRCTL_VERSION:-master} by ARG CLAIRCTL_VERSION=${CLAIRCTL_VERSION:-fix-temp-master} PS2:
PS3: now it doesnt work for every images not just for some images like before |
@dawaj7 my issue is the same as you. let me know if you had found out the way to fix. thanks Update: use v1.2.6 in https://github.com/jgsqware/clairctl/releases temporary fix my problem |
I always have my images tagged with the full name (registry/namespace/name:tag) - it might not work if you only have set a name for your image... I also always have to push the image first before I can generate a report.
Can you try to tag your image with a domain & namespace as well? |
I also meet this problem.My config file below:
When i run clairctl analyze -l --log-level debug centos:
Is that anything wrong with my config file? |
Did you push your image before you triggered the analyze?
|
I too am having similar issues. |
Now is ok with my clairctl.I pull the latest clairctl resource code and compile.It works. |
I am also getting HTTP 400s while doing clairctl push or clairctl analyze with images that are publically available on dockerhub. The issue appears to me that clairctl is not honoring http_proxy or https_proxy variables (and likely, no_proxy too). Clairctl version 1.2.8 None of the machines (either the clair server, which I run as a containerized instance), nor the clairctl client have direct non-proxy access to the real-world. I am able to run clairctl pull without any problems, just push and analyze don't work. My ~/clairctl.yaml contains the following: clair:
luser@bigbox ~ $ http_proxy=http://myproxyserver.domain.net:8080 https_proxy=http://myproxyserver.domain.net:8080 clairctl push rancher/dns:v0.15.3
Clair has it both as environment variables passed via launch, as well as in it's config.yaml, so if I'm missing it somewhere I have no idea where I'm supposed to set it.
/usr/bin/docker run --net bridge -m 0b --net=host --userns=host -e http_proxy=http://myproxyserver.domain.net:8080 -e https_proxy=http://myproxyserver.domain.net:8080 -e no_proxy=localhost,*.domain.net -p 6060-6061:6060-6061 -v /opt/data/clair_config:/config \
--name clair \
clair
And the tail part of my clair-config lists the proxy server:
{stock stuff at the top}
I feel this error is with the clairctl client, since I'm able to pull vulnerability data from the Internet via the proxy server. |
Hello,
As you can see with the title i got this error "receiving http error: 400" with some images that i want to scan, but with others images it scans well and without errors.
Both kind of images are local that i pull from my registry before i do the scan, the command that i use for the scan is : clairctl analyze -l animage
I used this command to see what are the logs :
clairctl analyze -l --log-level debug animage
and here the logs from a scan without errors
here my docker compose file :
I have no errors from the logs of the three containers (postgres clair and clairctl)
The text was updated successfully, but these errors were encountered: