Updated Harbor FAQs (markdown)

Yang Jiao 2022-08-03 15:55:52 +08:00
parent 9eb367e593
commit f09cf22a11
1 changed files with 10 additions and 9 deletions

@ -373,7 +373,17 @@ rm /data/redis/*
# Start the Harbor
# Then deleted charts should be removed from the Harbor, remain charts should be visible.
```
## Robot Account
1. Failed to edit System Robot Account of Cover all projects
A [regression issue](https://github.com/goharbor/harbor/issues/17249) was introduced in Harbor v2.5.3 which will cause the edit of the System Robot Account of Cover all projects to fail, you can use the following workaround to edit your System Robot Account
```
1. You need to know the name and secret of the System Robot Account you want to edit.
2. Delete this System Robot Account.
3. Create a new System Robot Account and enter your previous System Robot Account name and the fields(Expiration time, Description) you want to edit.
4. Refresh the secret of this System Robot Account to the previous secret.
5. This will not affect your System Robot Account usage because the name and secret are not changed.
```
# Create index for Harbor tables to improve performance
```
-- task
@ -406,13 +416,4 @@ DROP INDEX IF EXISTS idx_audit_log_op_time;
> cp -r /data/redis/* /data/redis_backup/
> rm -rf /data/redis/*
> docker-compose up -d
```
## Robot Account
1. Extend Robot Account Expiration Time by Modifying Database
```
1. Into the database
> docker exec -it harbor-db bash
> psql -U postgres -d registry
2. Update Robot Account Expiration Time
> update robot set expiresat = <expiresat>, duration = <duration> where id = <robot_account_id>;
```