Harbor報錯:dial tcp 127.0.0.1:1514: connect: connection refused 解決


 

今天重啟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

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM