Resolving Issues on GoHarbor/Harbor (CNCF)

Harbor is an open source trusted cloud native registry project that stores, signs, and scans content. Harbor extends the open source Docker Distribution by adding the functionalities usually required by users such as security, identity and management. Having a registry closer to the build and run environment can improve the image transfer efficiency. Harbor supports replication of images between registries, and also offers advanced security features such as user management, access control and activity auditing.

Error Picture:

ERROR: worker.fetch - LOADING Redis is loading the dataset in memory

Solution:

$ docker ps |grep -i redis
$ docker exec -it <container_id_or_name> bash
redis-cli FLUSHDB
redis-cli -n DB_NUMBER FLUSHDB
redis-cli -n DB_NUMBER FLUSHDB ASYNC
redis-cli FLUSHALL
redis-cli FLUSHALL ASYNC

Error Picture:

Solution:

\d replication_execution;
update replication_execution set status = 'Succeed',total = '1', end_time = now()

Error Picture:

Solution:

# Copy the certificate
$ cp /opt/harbor/ssl/xyz.crt.pem /var/harbor/data/secret/cert/server.crt
# Copy the key
$ cp /opt/harbor/ssl/xyz.key.pem /var/harbor/data/secret/cert/server.key
$ docker ps  |grep goharbor  |grep "nginx -g" | awk '{print $1}'
c1498j072f44
27f4lg4db7a6
$ docker restart c1498j072f44 27f4lg4db7a6

Error Picture: (Update 2021–03–18)

ERROR: dead_pool_reaper.reap - MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk.

Solution

$ redis-cli config 
127.0.0.1:6379> set stop-writes-on-bgsave-error no

Error Picture: (Update 2021–11–15)

harbor.scanner-adapter/vulnerability-database-updated-at:05/7/20, 7:40 AM

Solution

trivy-adapter:
[...]
volumes:
- type: bind
read_only: true
source: /var/run/docker.sock
target: /var/run/docker.sock
[...]
$ docker exec -it trivy-adapter trivy image debian:10
2021-11-15T08:08:13.413Z INFO Need to update DB
2021-11-15T08:08:13.413Z INFO Downloading DB...24.71 MiB / 24.71 MiB [--------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 11.25 MiB p/s 3s2021-11-15T08:08:18.599Z INFO Detecting Debian vulnerabilities...
harbor.scanner-adapter/vulnerability-database-updated-at:11/15/21, 7:40 AM

Sources

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store