-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
HA Redis Cluster (cluster-mode enabled) Support : Service Unavailable 503 Error on Harbor #6075
Comments
I am pretty sure this is the problem because of external Redis cluster. I have tested by deploying the redis server. Harbor is working fine with single instance redis. So it will be helpful to have version compatibility and type of redis protocol supported by redis client through Harbor. |
@jakirpatel could you provide complete logs to help us better debug? |
@reasonerjt Here are ui.log:
Here what is the meaning of following lines :
I am not sure if the problem is connected with this issue: https://serverfault.com/questions/812156/redis-cluster-error-moved Is the redis client making the request to the right node ? In my case I have redis-cluster so the key can be anywhere in the cluster. How the harbor redis client make sure to retrive the key from the specific node? |
By |
I think it is changing the status depend on the ping response. Sometimes container becomes healthy and sometimes later it becomes unhealthy.
I observed that the job service container is restarted and I got the actual error response from the Jobservice log.
|
@reasonerjt @cd1989 |
@jakirpatel For the error occurred in the ui part, I think the reason may be that one described in the issue #4500. The UI framework beego does not support redis cluster, you need to specify a single node for UI. For the error in the job service, I'll take a look at it. |
I think the The official doc says:
Could you please try to config the db index in the redis_db_index = 0,0,0 |
Beego issue related to https://github.com/astaxie/beego/issues/1453 |
@steven-zou |
For time being I started using the standalone redis and skipped the cluster-mode redis. So let this issue open until the error get fixed.It will be really helpful if you provide some fix HA solution including redis. Any thoughts ? |
@reasonerjt @clouderati any opinion on this to be on the roadmap? Specifically how the harbor will be proceeding for HA mode? |
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. |
Fresh install of Harbor v2 in Kubernetes, same issue in HA setup, Redis Cluster is not working because it can't handle MOVED in session requests. Also it won't support Redis with Sentinel as it was stated in another issue. Attaching log if it helps
|
same error to me , harbor version 2.0.2 , can someone open the issue? |
@Danpiel I have the same problem. How did you solve it |
+1 |
1 similar comment
+1 |
@misteruly deployed redis as single node for now, so downtime while redis is unavailable |
I have deployed the Harbor. While loading the Harbor sometimes I am getting the service unavailable 503 error. Also, this happens during logging in or after logout.
In expected behavior, Harbor should return the 200 ok for the authentication with LDAP. I am not sure about the problem but I doubt if it is something related with Redis (In terms of cookies).
While inspecting my home page I observed two API's:
While logging out harbor made a request to these API's and they returned 503 - Service Unavailable. The more interesting thing is I am not sure if these API's relies on cookies. I can see no cookies in my browser while calling this.
Steps to reproduce the problem:
1.Deploy the Harbor with the notary, Clair, and chart
2.Enable LDAP
3. Use external Postgres, Redis for Harbor (Not containers)
4. Login with admin user (Inspect the browser network calls)
5. Logout from admin user (Inspect the browser network calls)
Versions:
Please specify the versions of the following systems.
Logs :
adminserver:
proxy log:
Error on UI:
FYI -- I edited the sensitive information in the proxy log. For Example ip represents IP of the machine.
The text was updated successfully, but these errors were encountered: