Harbor: admin-server does not go up

Created on 31 Dec 2018  ·  3Comments  ·  Source: goharbor/harbor

Hi,

I've upgraded to 1.7.0, now the admin server does not go up, nothing in the log that can help is there any way to have more log ?

Dec 31 14:30:32 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:32Z [INFO] initializing system configurations...
Dec 31 14:30:32 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:32Z [INFO] Registering database: type-PostgreSQL host-postgresql port-5432 databse-registry sslmode-"disable"
Dec 31 14:30:33 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:33Z [ERROR] [utils.go:101]: failed to connect to tcp://postgresql:5432, retry after 2 seconds :dial tcp 172.18.0.6:5432: i/o timeout
Dec 31 14:30:35 172.18.0.1 adminserver[1080]: [ORM]2018/12/31 13:30:35 register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:35 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:35Z [FATAL] [main.go:45]: failed to initialize the system: register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [INFO] initializing system configurations...
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [INFO] Registering database: type-PostgreSQL host-postgresql port-5432 databse-registry sslmode-"disable"
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: [ORM]2018/12/31 13:30:36 register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [FATAL] [main.go:45]: failed to initialize the system: register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [INFO] initializing system configurations...
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [INFO] Registering database: type-PostgreSQL host-postgresql port-5432 databse-registry sslmode-"disable"
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: [ORM]2018/12/31 13:30:36 register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:36 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:36Z [FATAL] [main.go:45]: failed to initialize the system: register db Ping `default`, pq: the database system is starting up
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] initializing system configurations...
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] Registering database: type-PostgreSQL host-postgresql port-5432 databse-registry sslmode-"disable"
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] Register database completed
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] Upgrading schema for pgsql ...
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] No change in schema, skip.
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] the path of json configuration storage: /etc/adminserver/config/config.json
Dec 31 14:30:37 172.18.0.1 adminserver[1080]: 2018-12-31T13:30:37Z [INFO] the path of key used by key provider: /etc/adminserver/key
CONTAINER ID                                                       IMAGE                                    COMMAND                                               CREATED             STATUS                             PORTS                                                              NAMES
bd73bdce91ba6338d7ae2e4a1d70aa570cf5b5e48c0d3e49a65e6a25b9092400   goharbor/nginx-photon:v1.7.0             "nginx -g 'daemon off;'"                              3 minutes ago       Up 2 minutes (healthy)             0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:4443->4443/tcp   nginx
f3e7723e45f73442b0e02debc05a6cd6fbe8364cbafbe5096e1f3ed874d9e3f7   goharbor/harbor-jobservice:v1.7.0        "/harbor/start.sh"                                    3 minutes ago       Up 37 seconds                                                                                         harbor-jobservice
33305d13a8397224b0c6c0c90dd5a08233b61ce0a2cd93b176b53ad3daa65911   goharbor/harbor-portal:v1.7.0            "nginx -g 'daemon off;'"                              3 minutes ago       Up 3 minutes (healthy)             80/tcp                                                             harbor-portal
8b9a90495aced037dbc9b1217db15616649e7d98768e0d3e3f90396c8afad794   goharbor/harbor-core:v1.7.0              "/harbor/start.sh"                                    3 minutes ago       Up 58 seconds (health: starting)                                                                      harbor-core
c26e1a68143cf44c9d857bad475bbbf510a959fed17f040b14a93383beaef3eb   goharbor/clair-photon:v2.0.7-v1.7.0      "/docker-entrypoint.sh"                               3 minutes ago       Up 2 minutes (healthy)             6060-6061/tcp                                                      clair
5b82b71b2b26c3c6da409c0b155fdc4a444e1c0a250b45d52f642f826adfcb88   goharbor/registry-photon:v2.6.2-v1.7.0   "/entrypoint.sh /etc/registry/config.yml"             3 minutes ago       Up 3 minutes (healthy)             5000/tcp                                                           registry
ee48f0719b579e4dfbf861010f7167820aaa2b1c7bf3e3adc8ce916f89ea622d   goharbor/redis-photon:v1.7.0             "docker-entrypoint.sh redis-server /etc/redis.conf"   3 minutes ago       Up 3 minutes                       6379/tcp                                                           redis
a7233a90352ab51eb56b3ceef586574c85faf2361c99228068ad1129800692cb   goharbor/harbor-db:v1.7.0                "/entrypoint.sh postgres"                             3 minutes ago       Up 3 minutes (healthy)             5432/tcp                                                           harbor-db
7c1b0e91e501358b01fd93b1497c25be335c0cc6adb9811d08071a4ed006a4a4   goharbor/harbor-adminserver:v1.7.0       "/harbor/start.sh"                                    3 minutes ago       Up 2 minutes (unhealthy)                                                                              harbor-adminserver
2e23a08f0f701cb54995cbf3be25e517d7c31a8ed0097f1ddfb66a3b0b82d3b7   goharbor/harbor-registryctl:v1.7.0       "/harbor/start.sh"                                    3 minutes ago       Up 3 minutes (healthy)                                                                                registryctl
979a11c9a6369c9828f3af28306a74857b3101ce542bbf14212f16317346dcae   goharbor/harbor-log:v1.7.0               "/bin/sh -c /usr/local/bin/start.sh"                  3 minutes ago       Up 3 minutes (healthy)             127.0.0.1:1514->10514/tcp                                          harbor-log
NETWORK ID          NAME                  DRIVER              SCOPE
c59fb4b0ce57        bridge                bridge              local
cd442f5f242b        harbor_harbor         bridge              local
530455588bdb        harbor_harbor-clair   bridge              local
9cf9bdb6ae9b        host                  host                local
773aebfe9bac        none                  null                local
staled

All 3 comments

It was a database corruption, I've restored and upgrade again it's now working. Don't know why and we need more log :)

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Closing since the problem is gone.

Was this page helpful?
0 / 5 - 0 ratings