今天重启harbor,报错信息如下:
[root@harbor harbor]# docker-compose up -d harbor-log is up-to-date Starting harbor-portal ... error Starting registry ... Starting redis ... Starting registryctl ... Starting redis ... error ERROR: for harbor-portal Cannot start service portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused Starting harbor-db ... error Starting registry ... error ERROR: for harbor-db Cannot start service postgresql: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused ERROR: for registryctl Cannot start service registryctl: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused ERROR: for registry Cannot start service registry: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused ERROR: for portal Cannot start service portal: failed to initialize logging driver: dial tcp 127.0.0.1:1514: connect: connection refused .......
取消rsyslog.conf文件第19,20行注释,并将514改为1514
vim /etc/rsyslog.conf
取消注释并修改 $ModLoad imtcp $InputTCPServerRun 1514
接着重启rsyslog
systemctl restart rsyslog.service
重启harbor
docker-compose up -d