Skip to content
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

private registry - error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "\n\n\n #8203

Closed
nshaik99 opened this issue Jul 2, 2019 · 5 comments
Assignees
Labels
more-info-needed The issue author need to provide more details and context to the issue Stale

Comments

@nshaik99
Copy link

nshaik99 commented Jul 2, 2019

This is working:
I have created harbor with clair , can successfully push the images directly using backend node name.

THIS IS NOT WORKING:
I have created harbor with clair
a)docker-compose down
b) updated hostname with nginx url name
c) commented proxy_set_header X-Forwarded-Proto $scheme;
from common/config/nginx/nginx.conf
d) docker-compose up -d

docker login
Username : username
Password:
Login Succeeded

IMAGE PUSH FAILING

docker push /hello-world:latest
The push refers to repository [repository name/hello-world]
af0b15c8625b: Preparing
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\n\t\t\n\n\t\t\n\t\t\t<title></title>\n\t\t\t\n\t\t\n\n\t\t\n\n\t\t\n\n\t\t\n\t\n\t\n\n\n\n\n"

please help us

@ninjadq
Copy link
Member

ninjadq commented Jul 3, 2019

is backend node name an IP address? and you want to use another nginx in front of harbor as an LB? If you are in this scenario, you can try to set the exeternal_url in harbor.yml

@nshaik99
Copy link
Author

nshaik99 commented Jul 3, 2019

Thank you for the response.

these steps I followed
1)# docker-compose down
2) updated harbor.yml with external_url: http://
I left hostname:
3)docker-compose up -d

still the same issue:
a) UI still works with external nginx url
b) docker login with external nginx url success

but docker push failed
docker push /hello-world:latest
The push refers to repository [/hello-world]
af0b15c8625b: Preparing
error parsing HTTP 404 response body: invalid character '<' looking for beginning of value: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\n\t\t\n\n\t\t\n\t\t\t<title></title>\n\t\t\t<meta content="1; url=/c" http-equiv="refresh" />\n\t\t\n\n\t\t<body onload="javascript:location.replace('/c')">\n\n\t\t\n\n\t\t\n\t\n\t\n\n\n\n\n"

@nshaik99
Copy link
Author

nshaik99 commented Jul 3, 2019

tried other way using netscalar vip got different issue

configured netscalar vip infront of harbor node real IP.

everything works with harbor node real IP.

with vip, URL open the harbour login page but not going anywhere after entering credentials, no error .. nothing.

@reasonerjt reasonerjt added the more-info-needed The issue author need to provide more details and context to the issue label Jul 30, 2019
@ninjadq
Copy link
Member

ninjadq commented Aug 21, 2019

@nshaik99 after you change the config file, you need run prepare script between docker-compose down and up

@stale
Copy link

stale bot commented Nov 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Nov 19, 2019
@stale stale bot closed this as completed Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed The issue author need to provide more details and context to the issue Stale
Projects
None yet
Development

No branches or pull requests

3 participants