Harbor installation error 502 bad gateway [How to Solve]

Viewing the /var/log/harbor/adminserver.log log reports the following errors

Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] initializing system configurations…

Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] the path of json configuration storage: /etc/adminserver/config/config.json

Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [DEBUG] [driver_json.go:46]: path of configuration file: /etc/adminserver/config/config.json

Dec 25 02:39:18 172.18.0.1 adminserver[2641]: 2017-12-25T07:39:18Z [INFO] the path of key used by key provider: /etc/adminserver/key

Method 1:

Set the permissions and set the owner of the secretkey file in the directory

[root@localhost harbor]# chown 10000:10000 /mycre/secretkey

Then execute

docker-compose down

docker-compose up -d

 

Method 2:

Restore the path to set the secretkey_path to /data

Switch to the harbor installation directory and do the following

[root@localhost harbor]#docker-compose down

[root@localhost harbor]#rm -rf /data/secretkey

 

[root@localhost harbor]#./prepare

[root@localhost harbor]#docker-compose up –d

Similar Posts: