To test upgrade on my docker container i copied it in the docker-compose.yml. I also copied the docker files an changed conf in the gitlab.rb file. I changed domain and port as follows:
### OLD CONF gitlab: image: gitlab/gitlab-ce:14.9.0-ce.0 depends_on: - nginx-proxy - nginx-proxy-letsencrypt restart: always volumes: - './gitlab/config:/etc/gitlab' - './gitlab/logs:/var/log/gitlab' - './gitlab/data:/var/opt/gitlab'# volumes:# - ./gitlab:/etc/gitlab# - ./gitlab/backups:/var/opt/gitlab/backups# - ./gitlab/ssh:/etc/ssh# - ./gitlab/git-data:/var/opt/gitlab/git-data ports: - "10296:22" environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.mysite.biz' # letsencrypt letsencrypt['enabled'] = false # email gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = '' gitlab_rails['gitlab_email_display_name'] = 'Gitlab' gitlab_rails['gitlab_email_reply_to'] = 'admin@mysite.de' # backups gitlab_rails['backup_keep_time'] = 604800 # 7 days gitlab_rails['backup_upload_connection'] = { :provider => 'Local', :local_root => '/backup' } gitlab_rails['backup_upload_remote_directory'] = '.' # ssh gitlab_rails['gitlab_shell_ssh_port'] = 10296 # mailserver gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "mail.mysite.de" gitlab_rails['smtp_port'] = 587 gitlab_rails['smtp_user_name'] = "admin@mysite.de" gitlab_rails['smtp_password'] = "1234" gitlab_rails['smtp_domain'] = "mysite.de" gitlab_rails['smtp_authentication'] = "plain" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'] = false gitlab_rails['gitlab_email_from'] = 'admin@mysite.de' gitlab_rails['gitlab_email_reply_to'] = 'admin@mysite.de' VIRTUAL_HOST: gitlab.mysite.biz LETSENCRYPT_HOST: gitlab.mysite.biz container_name: gitlab logging: options: max-size: "100m" max-file: "2"### NEW CONF gitlab-new: image: gitlab/gitlab-ce:14.9.0-ce.0 depends_on: - nginx-proxy - nginx-proxy-letsencrypt restart: always volumes: - './gitlab-new/config:/etc/gitlab' - './gitlab-new/logs:/var/log/gitlab' - './gitlab-new/data:/var/opt/gitlab' ports: - "10297:22" environment: GITLAB_SKIP_UNMIGRATED_DATA_CHECK: 'true' GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab-new.mysite.biz' # letsencrypt letsencrypt['enabled'] = false # email gitlab_rails['gitlab_email_enabled'] = true gitlab_rails['gitlab_email_from'] = '' gitlab_rails['gitlab_email_display_name'] = 'Gitlab' gitlab_rails['gitlab_email_reply_to'] = 'admin@mysite.de' # backups gitlab_rails['backup_keep_time'] = 604800 # 7 days gitlab_rails['backup_upload_connection'] = { :provider => 'Local', :local_root => '/backup' } gitlab_rails['backup_upload_remote_directory'] = '.' # ssh gitlab_rails['gitlab_shell_ssh_port'] = 10297 # mailserver gitlab_rails['smtp_enable'] = true gitlab_rails['smtp_address'] = "mail.mysite.de" gitlab_rails['smtp_port'] = 587 gitlab_rails['smtp_user_name'] = "admin@mysite.de" gitlab_rails['smtp_password'] = "1234" gitlab_rails['smtp_domain'] = "mysite.de" gitlab_rails['smtp_authentication'] = "plain" gitlab_rails['smtp_enable_starttls_auto'] = true gitlab_rails['smtp_tls'] = false gitlab_rails['gitlab_email_from'] = 'admin@mysite.de' gitlab_rails['gitlab_email_reply_to'] = 'admin@mysite.de' VIRTUAL_HOST: gitlab-new.mysite.biz LETSENCRYPT_HOST: gitlab-new.mysite.biz container_name: gitlab-new logging: options: max-size: "100m" max-file: "2"
At fist running of "docker-compose up gitlab-new" the problem was that the folder opt/gitlab/embedded/service/gitlab-rails/log/ hadn't the right permissions on all log files. With chmod 0666 i solved this, but now i have the problem that my database postgresql wont start.The log:2023-02-17T10:56:28.663Z: Cached record for ApplicationSetting couldn't be loaded, falling back to uncached record: could not connect to server: Permission deniedIs the server running locally and acceptingconnections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
When i try to start postgresql it stays down with no message
Where at least can i find out more detailled information why the postgresql wont start? I cant find logs regarding this.
Also what could be the reason? you now know i tried to copy the same instance for keeping the data, could this be the reason and if yes, why?