New install harbor v2.9.0 or v2.9.1 in centos 7.6 error:DB init error: popen failure: Cannot allocate memory
it seem as https://github.com/goharbor/harbor/issues/19141, but not. my docker version already is 20.10.22 ( >= 20.10.10)
Our docker version and docker-compose version met requirement.
docker version
Client: Docker Engine - Community
Version: 20.10.22
API version: 1.41
Go version: go1.18.9
Git commit: 3a2c30b
Built: Thu Dec 15 22:30:24 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.22
API version: 1.41 (minimum version 1.12)
Go version: go1.18.9
Git commit: 42c8b31
Built: Thu Dec 15 22:28:33 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.3
GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b
runc:
Version: 1.0.0-rc92
GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker-compose version
docker-compose version 1.28.4, build cabd5cfb
docker-py version: 4.4.3
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
when i starting harbor, some of container always restarting.
Name Command State Ports
------------------------------------------------------------------
harbor-core /harbor/entrypoint.sh Restarting
harbor-db /docker-entrypoint.sh 13 14 Restarting
harbor-jobservice /harbor/entrypoint.sh Restarting
harbor-log /bin/sh -c /usr/local/bin/ ... Up (healthy) 127.0.0.1:1514->10514/tcp
harbor-portal nginx -g daemon off; Up (healthy)
nginx nginx -g daemon off; Up (healthy) 0.0.0.0:80->8080/tcp,:::80->8080/tcp
redis redis-server /etc/redis.conf Restarting
registry /home/harbor/entrypoint.sh Up (healthy)
registryctl /home/harbor/start.sh Restarting
docker logs harbor-db can find error log.
init DB, DB version:14
popen failure: Cannot allocate memory
initdb: error: The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/pgsql/14/bin/initdb".
Check your installation.
harbor.yam just only update below.
# The IP address or hostname to access admin UI and registry service.
# DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname: 172.16.132.53
# http related config
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 80
# https related config
#https:
# # https port for harbor, default is 443
# port: 443
# # The path of cert and key files for nginx
# certificate: /your/certificate/path
# private_key: /your/private/key/path
any suggestion for the problem?
Harbor's pipelines are all running in Ubuntu, maybe we'll try this in centos 7.6 sometime.
I had the same problem on Debian. Upgrading docker-ce to the latest version fixed it for me
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
this issue still exists now. version is 2.9.2。
harbor-jobservice, habor-core, registryctl, redis, harbor-db were under retarting status.
init DB, DB version:14 popen failure: Cannot allocate memory initdb: error: The program "postgres" is needed by initdb but was not found in the same directory as "/usr/pgsql/14/bin/initdb". Check your installation.
OS: centos7.6
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.
Has this problem been resolved? I also encountered the same problem