-
Choerodon平台版本: 0.15.0
-
遇到问题的执行步骤:Harbor部署
-
文档地址:http://choerodon.io/zh/docs/installation-configuration/steps/install/parts/base/harbor/
-
环境信息(如:节点信息):
-
报错日志:部署harbor的过程中,redis和db的启动都出现了问题。
redis的日志:
Welcome to the Bitnami redis container
Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-redis
Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-redis/issues
WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
nami INFO Initializing redis
Error executing ‘postInstallation’: EEXIST: file already exists, symlink ‘/opt/bitnami/redis/conf’ -> ‘/opt/bitnami/redis/etc’
db的日志:
here1
hehe2
The files belonging to this database system will be owned by user “postgres”.
This user must also own the server process.
The database cluster will be initialized with locales
COLLATE: en_US.UTF-8
CTYPE: en_US.UTF-8
MESSAGES: C
MONETARY: C
NUMERIC: C
TIME: C
The default text search configuration will be set to “english”.
Data page checksums are disabled.
fixing permissions on existing directory /var/lib/postgresql/data … ok
creating subdirectories … ok
selecting default max_connections … 100
selecting default shared_buffers … 64MB
selecting dynamic shared memory implementation … posix
creating configuration files … ok
FATAL: could not read directory “pg_notify”: Unknown error 523
child process exited with exit code 1
initdb: removing contents of data directory “/var/lib/postgresql/data”
- 原因分析:
redis和db似乎都是文件问题,但是pv和相应的pvc都是harbor的install过程中新建的,不太理解文件挂载出现问题的原因
以及部署完整代码:
helm install c7n/harbor --set externalURL=http://hippiusdevfd.hand-china.com --set ingress.hosts.core=hippiusdevfd.hand-china.com --set database.internal.volumes.data.storageClass=“nfs-provisioner” --set registry.volumes.data.storageClass=“nfs-provisioner” --set redis.master.persistence.storageClass=“nfs-provisioner” --set harborAdminPassword=Harbor12345 --version 0.3.2 --name harbor --namespace hippius-dev
- 疑问:
提出您对于遇到和解决该问题时的疑问