harbor ui, still call clair API when clair not installed

Created on 30 May 2018  ·  17Comments  ·  Source: goharbor/harbor

harbor ui oper:
Projects > Repositories > library/myimage > images > mytag
image

the http request info:

Request URL: http://192.168.2.136/api/repositories/library/mysql/tags/5.7/vulnerability/details
Request Method: GET
Status Code: 503 Service Unavailable
Remote Address: 192.168.2.136:80
Referrer Policy: no-referrer-when-downgrade

harbor version: 1.5.0
docker version:
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:20:16 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:23:58 2018
OS/Arch: linux/amd64
Experimental: false

docker-compose version: docker-compose version 1.21.2, build a133471

in harbor.cfg, I only change the hostname

I can not find any help by check the logs in '/var/log/harbor' ,who can help me ,thranks!

areui community kinbug targe1.6.0

All 17 comments

Please help to upload the logs and harbor.cfg, and did you install the clair component?

thanks @wy65701436
I didn't install the clair component before, just run {harbor_path}/install.sh.
now I re-install it by {harbor_path}/install.sh --with-clair have resolved this problem, but there is a warn in the repositories list page.
image

backend status is:
image
what is wrong with this,though not effect use it.
虽然不影响使用,但是为什么呢,总觉得有警告不爽.

The warning is to tell the Clair dB is not ready yet. Actually, it’s pulling data in the backend and it needs several hour to be finished, and the warning will be disappeared once it done.

The tag should not be clicked when installing Harbor without Clair.
@ninjadq Please check the UI code. This works well in 1.4.

Thanks, it works well.

@QuSongtao There is a bug in Harbor, let's keep the issue open to track it. Thank you for your reporting.

Fixed in #5372

Hello,
I have the same error. Is there any solution without installing clair?

Thanks a lot.

@kpiedvelop can you please wipe all Harbor-related cookies, force a bypass of cache and let me know if you still see the issue?

@clouderati i have wiped all harbor cookies and bypassed the cacke.... The issue is the same..... Any other idea?

Hi @kpiedvelop – not completely certain. @zhoumeina can you ptal?

Hello,
I have the same error. Is there any solution without installing clair?
(Note: I was installed harbor which version is v1.5.3 release of offline with out installing clair)

Thanks a lot.

@hack0072008 here is the current issue: https://github.com/goharbor/harbor/issues/5975

@hack0072008 here is the current issue: https://github.com/goharbor/harbor/issues/5975

when i try to clean the cookie and login again, the error still exist, do you know the reason?

I have the same problem, too

I have the same problem, too

oh, thanks

@hack0072008 look at the referenced issue #5975

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pingcrosby picture pingcrosby  ·  3Comments

Hotege picture Hotege  ·  3Comments

reasonerjt picture reasonerjt  ·  3Comments

reasonerjt picture reasonerjt  ·  3Comments

mramanathan picture mramanathan  ·  3Comments