相关文章推荐
正直的饺子  ·  怎么从html中提取xpath - CSDN文库·  1 年前    · 
闷骚的黑框眼镜  ·  Java通过httpclient获取cook ...·  1 年前    · 
鬼畜的可乐  ·  moment.js获取当前时间 - 简书·  2 年前    · 
有爱心的松球  ·  Mockito模拟进行单元测试 - ...·  2 年前    · 
英勇无比的仙人掌  ·  SuppressLint Class ...·  2 年前    · 
Code  ›  docker 私有方仓库下载镜像 报错:Invalid registry endpoint,为什么啊? - IT民工 的回答 -
data lib directory postgresql
https://www.zhihu.com/question/26718775/answer/2790985131
失恋的茶壶
2 年前
docker 私有方仓库下载镜像 报错:Invalid registry endpoint,为什么啊?
IT民工
IT民工
软件开发工程师

部署Harbor后,遇到宿主机重启,会导致Harbor重启失败;

问题,有:

1、数据目录已存在,但不是空的问题,

Dec 6 17:09:58 172.18.0.1 postgresql[31367]: initdb: error: directory "/var/lib/postgresql/data/pg13" exists but is not empty

Dec 6 17:09:58 172.18.0.1 postgresql[31367]: If you want to create a new database system, either remove or empty

Dec 6 17:09:58 172.18.0.1 postgresql[31367]: the directory "/var/lib/postgresql/data/pg13" or run initdb

Dec 6 17:09:58 172.18.0.1 postgresql[31367]: with an argument other than "/var/lib/postgresql/data/pg13".

Dec 6 17:10:00 172.18.0.1 postgresql[31367]: ls: cannot access '/var/lib/postgresql/data': Operation not permitted

这个问题,目前的处理方案是:直接删除对应的挂载数据的目录;再重新启动harbor;

这个处理方案,有的时候可以,有的时候不可以;且会导致已上传的数据丢失;

启动失败的时候,会出现以下问题:

2、数据目录没权限

Dec 6 17:13:24 172.18.0.1 postgresql[31367]: initdb: error: could not create directory "/var/lib/postgresql/data/pg13": Permission denied

Dec 6 17:13:24 172.18.0.1 postgresql[31367]: creating directory /var/lib/postgresql/data/pg13 ...

Dec 6 17:13:25 172.18.0.1 postgresql[31367]: ls: cannot access '/var/lib/postgresql/data': Operation not permitted

这个时候,只能重新安装harbor,才能重启harbor。


以上问题,有没有其他的解决方案,能够不用删除数据目录,能够不用重新安装?谢谢!

 
推荐文章
正直的饺子  ·  怎么从html中提取xpath - CSDN文库
1 年前
闷骚的黑框眼镜  ·  Java通过httpclient获取cookie模拟登录_java httpclient cookie-CSDN博客
1 年前
鬼畜的可乐  ·  moment.js获取当前时间 - 简书
2 年前
有爱心的松球  ·  Mockito模拟进行单元测试 - chinotan的个人空间 - OSCHINA - 中文开源技术交流社区
2 年前
英勇无比的仙人掌  ·  SuppressLint Class (Android.Annotation) | Microsoft Learn
2 年前
今天看啥   ·   Py中国   ·   codingpro   ·   小百科   ·   link之家   ·   卧龙AI搜索
删除内容请联系邮箱 2879853325@qq.com
Code - 代码工具平台
© 2024 ~ 沪ICP备11025650号