Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Docker 以root用户身份运行的CRIT主管(配置文件中没有用户)\将sameersbn/gitlab升级到最新版本_Docker_Docker Compose_Gitlab - Fatal编程技术网

Docker 以root用户身份运行的CRIT主管(配置文件中没有用户)\将sameersbn/gitlab升级到最新版本

Docker 以root用户身份运行的CRIT主管(配置文件中没有用户)\将sameersbn/gitlab升级到最新版本,docker,docker-compose,gitlab,Docker,Docker Compose,Gitlab,我正在尝试将我的gitlab版本从11.5.0升级到12.3.2。 我的旧docker-compose.yml文件中的postgreSQL图像标记是:postgreSQL 9.5-1 我试过: 要升级,我执行了以下步骤: 拉redis:4.0.9-2 拉动postgresql:10-2 拉动gitlab:12.3.2 在docker compose down之后,我更新了docker compose.yml中的图像标签,然后运行: docker编写 gitlab已成功运行,但它没有显示我的项目

我正在尝试将我的
gitlab
版本从
11.5.0
升级到
12.3.2
。 我的旧docker-compose.yml文件中的postgreSQL图像标记是:
postgreSQL 9.5-1

我试过:

要升级,我执行了以下步骤:

  • 拉redis:4.0.9-2
  • 拉动postgresql:10-2
  • 拉动gitlab:12.3.2
  • docker compose down
    之后,我更新了docker compose.yml中的图像标签,然后运行:

    docker编写

    gitlab已成功运行,但它没有显示我的项目和用户,似乎没有连接 到数据库卷或数据库迁移不好

    这是我的gitlab容器完整日志:

    error that i think its the issue couse : CRIT Supervisor running as root (no user in config file)
    
    [root@localhost docker-gitlab-master]# docker logs ed6f439c9bad
    Loading /etc/docker-gitlab/runtime/env-defaults
    Initializing logdir...
    Initializing datadir...
    Installing configuration templates...
    Configuring gitlab...
    Configuring gitlab::database.......
    Configuring gitlab::redis
    Configuring gitlab::secrets...
    Configuring gitlab::sidekiq...
    Configuring gitlab::gitaly...
    Configuring gitlab::monitoring...
    Configuring gitlab::gitlab-workhorse...
    Configuring gitlab::unicorn...
    Configuring gitlab::timezone...
    Configuring gitlab::rack_attack...
    Configuring gitlab::ci...
    Configuring gitlab::artifacts...
    Configuring gitlab::lfs...
    Configuring gitlab::uploads...
    Configuring gitlab::mattermost...
    Configuring gitlab::project_features...
    Configuring gitlab::oauth...
    Configuring gitlab::ldap...
    Configuring gitlab::cron_jobs...
    Configuring gitlab::backups...
    Configuring gitlab::backups::schedule...
    Configuring gitlab::registry...
    Configuring gitlab::pages...
    Configuring gitlab::sentry...
    Configuring gitlab-shell...
    Configuring nginx...
    Configuring nginx::gitlab...
    Migrating database...
    2019-10-02 11:00:25,265 CRIT Supervisor running as root (no user in config file)
    2019-10-02 11:00:25,265 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
    2019-10-02 11:00:25,266 INFO Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
    2019-10-02 11:00:25,289 INFO RPC interface 'supervisor' initialized
    2019-10-02 11:00:25,290 CRIT Server 'unix_http_server' running without any HTTP authentication checking
    2019-10-02 11:00:25,290 INFO supervisord started with pid 605
    2019-10-02 11:00:26,292 INFO spawned: 'gitaly' with pid 626
    2019-10-02 11:00:26,295 INFO spawned: 'gitlab-workhorse' with pid 627
    2019-10-02 11:00:26,297 INFO spawned: 'unicorn' with pid 628
    2019-10-02 11:00:26,299 INFO spawned: 'sidekiq' with pid 629
    2019-10-02 11:00:26,302 INFO spawned: 'nginx' with pid 630
    2019-10-02 11:00:26,305 INFO spawned: 'sshd' with pid 634
    2019-10-02 11:00:26,308 INFO spawned: 'cron' with pid 639
    2019-10-02 11:00:27,716 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:00:27,716 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    NOTICE: trigger "trigger_84853438aac0" for relation "epics" does not exist, skipping
    Clearing cache...
    2019-10-02 11:01:16,126 WARN received SIGTERM indicating exit request
    2019-10-02 11:01:16,127 INFO waiting for gitaly, gitlab-workhorse, unicorn, sidekiq, nginx, sshd, cron to die
    2019-10-02 11:01:16,128 INFO stopped: cron (terminated by SIGTERM)
    2019-10-02 11:01:16,128 INFO stopped: sshd (exit status 0)
    2019-10-02 11:01:16,134 INFO stopped: nginx (exit status 0)
    2019-10-02 11:01:18,802 INFO stopped: sidekiq (exit status 0)
    2019-10-02 11:01:18,806 INFO stopped: gitlab-workhorse (terminated by SIGTERM)
    2019-10-02 11:01:19,392 INFO stopped: unicorn (exit status 0)
    2019-10-02 11:01:19,392 INFO waiting for gitaly to die
    2019-10-02 11:01:19,418 INFO stopped: gitaly (exit status 0)
    2019-10-02 11:01:19,733 CRIT Supervisor running as root (no user in config file)
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/cron.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/gitaly.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/gitlab-workhorse.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/groups.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/mail_room.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/nginx.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/sidekiq.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/sshd.conf" during parsing
    2019-10-02 11:01:19,733 INFO Included extra file "/etc/supervisor/conf.d/unicorn.conf" during parsing
    2019-10-02 11:01:19,741 INFO RPC interface 'supervisor' initialized
    2019-10-02 11:01:19,742 CRIT Server 'unix_http_server' running without any HTTP authentication checking
    2019-10-02 11:01:19,742 INFO supervisord started with pid 1
    2019-10-02 11:01:20,745 INFO spawned: 'gitaly' with pid 822
    2019-10-02 11:01:20,748 INFO spawned: 'gitlab-workhorse' with pid 823
    2019-10-02 11:01:20,751 INFO spawned: 'unicorn' with pid 824
    2019-10-02 11:01:20,753 INFO spawned: 'sidekiq' with pid 825
    2019-10-02 11:01:20,755 INFO spawned: 'nginx' with pid 826
    2019-10-02 11:01:20,757 INFO spawned: 'sshd' with pid 828
    2019-10-02 11:01:20,759 INFO spawned: 'cron' with pid 832
    2019-10-02 11:01:21,785 INFO success: gitaly entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: gitlab-workhorse entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: unicorn entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: sidekiq entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    2019-10-02 11:01:21,785 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
    
    有什么想法吗