当前位置:网站首页>Harbor报错:dial tcp 127.0.0.1:1514: connect: connection refused 解决

Harbor报错:dial tcp 127.0.0.1:1514: connect: connection refused 解决

2020-12-07 17:04:40 何宇泽

 

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

  

 

版权声明
本文为[何宇泽]所创,转载请带上原文链接,感谢
https://www.cnblogs.com/heyongboke/p/14085945.html