PostgreSQL inside Gitlab docker container has errors after disk runs out of space

Our Gitlab installation ran out of disk space, and after more space was added, it cannot run again. It’s probably a postgresql issue, as the log shows these lines:

==> /var/log/gitlab/postgresql/current <==
2023-06-01_07:49:44.61610 FATAL:  lock file "postmaster.pid" is empty
2023-06-01_07:49:44.61612 HINT:  Either another server is starting, or the lock file is the remnant of a previous server startup crash.

==> /var/log/gitlab/sidekiq/current <==
{"severity":"INFO","time":"2023-06-01T07:49:47.682Z","message":"A worker terminated, shutting down the cluster"}

==> /var/log/gitlab/postgres-exporter/current <==
2023-06-01_07:49:48.58160 ts=2023-06-01T07:49:48.580Z caller=collector.go:196 level=error msg="collector failed" name=bgwriter duration_seconds=0.000115105 err="dial unix /var/opt/gitlab/postgresql/.s.PGSQL.5432: connect: no such file or directory"
2023-06-01_07:49:48.58164 ts=2023-06-01T07:49:48.580Z caller=server.go:74 level=info msg="Established new database connection" fingerprint=/var/opt/gitlab/postgresql:5432
2023-06-01_07:49:48.58166 ts=2023-06-01T07:49:48.581Z caller=collector.go:196 level=error msg="collector failed" name=database duration_seconds=6.7367e-05 err="dial unix /var/opt/gitlab/postgresql/.s.PGSQL.5432: connect: no such file or directory"

==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2023-06-01T07:49:49Z","uri":""}

==> /var/log/gitlab/postgres-exporter/current <==
2023-06-01_07:49:49.58175 ts=2023-06-01T07:49:49.581Z caller=postgres_exporter.go:714 level=error err="Error opening connection to database (host=/var/opt/gitlab/postgresql%20user=gitlab-psql%20database=gitlabhq_production): dial unix /var/opt/gitlab/postgresql/.s.PGSQL.5432: connect: no such file or directory"

==> /var/log/gitlab/gitlab-exporter/current <==
2023-06-01_07:49:49.84500 E, [2023-06-01T07:49:49.844946 #370] ERROR -- : Error connecting to the database: could not connect to server: No such file or directory
2023-06-01_07:49:49.84502 	Is the server running locally and accepting
2023-06-01_07:49:49.84503 	connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
2023-06-01_07:49:49.84504 
2023-06-01_07:49:49.84737 E, [2023-06-01T07:49:49.847334 #370] ERROR -- : Error connecting to the database: could not connect to server: No such file or directory
2023-06-01_07:49:49.84738 	Is the server running locally and accepting
2023-06-01_07:49:49.84739 	connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
2023-06-01_07:49:49.84740 
2023-06-01_07:49:49.84924 E, [2023-06-01T07:49:49.849201 #370] ERROR -- : Error connecting to the database: could not connect to server: No such file or directory
2023-06-01_07:49:49.84925 	Is the server running locally and accepting
2023-06-01_07:49:49.84926 	connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
2023-06-01_07:49:49.84926 
2023-06-01_07:49:49.88796 127.0.0.1 - - [01/Jun/2023:07:49:49 UTC] "GET /database HTTP/1.1" 200 0
2023-06-01_07:49:49.88834 - -> /database

==> /var/log/gitlab/gitlab-exporter/current <==
2023-06-01_07:49:52.22971 127.0.0.1 - - [01/Jun/2023:07:49:51 UTC] "GET /sidekiq HTTP/1.1" 200 85552
2023-06-01_07:49:52.23024 - -> /sidekiq

==> /var/log/gitlab/sidekiq/current <==
{"severity":"INFO","time":"2023-06-01T07:49:57.234Z","message":"Starting cluster with 1 processes"}
{"severity":"INFO","time":"2023-06-01T07:49:57.393Z","message":"Starting metrics server on port 8082"}

==> /var/log/gitlab/postgresql/current <==
2023-06-01_07:49:57.93183 FATAL:  lock file "postmaster.pid" is empty
2023-06-01_07:49:57.93185 HINT:  Either another server is starting, or the lock file is the remnant of a previous server startup crash.

==> /var/log/gitlab/gitlab-exporter/current <==
2023-06-01_07:49:58.73363 127.0.0.1 - - [01/Jun/2023:07:49:58 UTC] "GET /ruby HTTP/1.1" 200 1081
2023-06-01_07:49:58.73505 - -> /ruby

==> /var/log/gitlab/gitlab-workhorse/current <==
{"correlation_id":"","duration_ms":0,"error":"badgateway: failed to receive response: dial unix /var/opt/gitlab/gitlab-rails/sockets/gitlab.socket: connect: connection refused","level":"error","method":"GET","msg":"","time":"2023-06-01T07:49:59Z","uri":""}

==> /var/log/gitlab/postgres-exporter/current <==
2023-06-01_07:50:04.58133 ts=2023-06-01T07:50:04.580Z caller=postgres_exporter.go:714 level=error err="Error opening connection to database (host=/var/opt/gitlab/postgresql%20user=gitlab-psql%20database=gitlabhq_production): dial unix /var/opt/gitlab/postgresql/.s.PGSQL.5432: connect: no such file or directory"

==> /var/log/gitlab/gitlab-exporter/current <==
2023-06-01_07:50:04.85154 E, [2023-06-01T07:50:04.849432 #370] ERROR -- : Error connecting to the database: could not connect to server: No such file or directory
2023-06-01_07:50:04.85157 	Is the server running locally and accepting
2023-06-01_07:50:04.85158 	connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?

==> /var/log/gitlab/gitlab-rails/application_json.log <==
{"severity":"WARN","time":"2023-06-01T07:50:05.918Z","correlation_id":null,"message":"Cached record for ApplicationSetting couldn't be loaded, falling back to uncached record: could not connect to server: No such file or directory\n\tIs the server running locally and accepting\n\tconnections on Unix domain socket \"/var/opt/gitlab/postgresql/.s.PGSQL.5432\"?\n"}

The version of Gitlab is 15.11.2-ce.0, im using the docker version, run from a docker-compose file that looks like this:

version: '3.3'
services:
  gitlab-ce:
    ports:
    - '443:443'
    - '80:80'
    #- '2222:22'
    restart: always
    environment:
      GITLAB_SKIP_UNMIGRATED_DATA_CHECK: "true"
      GITLAB_OMNIBUS_CONFIG: |
              external_url 'http://gitlab.example.local'
              letsencrypt['enable'] = false
              #letsencrypt['contact_emails'] = ['gitlab@example.local']
              nginx['redirect_http_to_https'] = false
              gitlab_rails['time_zone'] = 'Europe/Zagreb'
              gitlab_rails['gitlab_email_enabled'] = true
              gitlab_rails['gitlab_email_from'] = 'gitlab@example.local'
              gitlab_rails['gitlab_email_display_name'] = 'Gitlab'
              gitlab_rails['gitlab_email_reply_to'] = 'noreply@example.local'
              registry['enable'] = false
              gitlab_rails['ldap_enabled'] = true
              gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
                main:
                  label: 'Gitlab'
                  host: '10.10.0.10'
                  port: 389
                  uid: 'sAMAccountName'
                  method: 'plain'
                  bind_dn: 'CN=Gitlab,OU=Users,DC=example,DC=local'
                  password: 'passw0rd'
                  active_directory: true
                  allow_username_or_email_login: true
                  block_auto_created_users: false
                  base: 'DC=example,DC=local'
                  user_filter: ''
              EOS
              gitlab_rails['omniauth_enabled'] = true
              gitlab_rails['omniauth_allow_single_sign_on'] = false
              gitlab_rails['omniauth_block_auto_created_users'] = true
              gitlab_rails['omniauth_providers'] = []
              gitlab_rails['manage_backup_path'] = true
              gitlab_rails['backup_path'] = "/var/opt/gitlab/backups"
              gitlab_rails['smtp_enable'] = true
              gitlab_rails['smtp_address'] = "mail.example.local"
              gitlab_rails['smtp_domain'] = "mail.example.local"
              gitlab_rails['smtp_port'] = 587
              gitlab_rails['smtp_user_name'] = "gitlab@example.local"
              gitlab_rails['smtp_password'] = "passw0rd"
              gitlab_rails['smtp_enable_starttls_auto'] = true
              gitlab_rails['smtp_authentication'] = "login"
              gitlab_rails['gitlab_shell_ssh_port'] = 2222
              gitlab_rails['smtp_openssl_verify_mode'] = 'none'
    volumes:
    - '/srv/gitlab/config:/etc/gitlab'
    - '/srv/gitlab/logs:/var/log/gitlab'
    - '/srv/gitlab/data:/var/opt/gitlab'
    - '/srv/gitlab/backup:/var/opt/gitlab/backups'
    image: 'gitlab/gitlab-ce:15.11.2-ce.0'

From looking at the web it seemed like postgre thinks there is another one running, so I tried renaming the .s.PGSQL.5432 and the .s.PGSQL.5432.lock file in the /var/opt/gitlab/postgresql/ folder, but accidentally managed to delete the .s.PGSQL.5432 file. It seems that is now also creating errors.

Any ideas of how to come back from this?

Thanks.

If I stop, reconfigure, and start inside the docker container, everything looks great:

# gitlab-ctl stop
ok: down: alertmanager: 0s, normally up
ok: down: gitaly: 0s, normally up
ok: down: gitlab-exporter: 1s, normally up
ok: down: gitlab-kas: 0s, normally up
ok: down: gitlab-workhorse: 0s, normally up
ok: down: logrotate: 1s, normally up
ok: down: nginx: 0s, normally up
ok: down: postgres-exporter: 0s, normally up
ok: down: postgresql: 1s, normally up, want up
ok: down: prometheus: 0s, normally up
ok: down: puma: 1s, normally up
ok: down: redis: 0s, normally up
ok: down: redis-exporter: 0s, normally up
ok: down: sidekiq: 1s, normally up
ok: down: sshd: 0s, normally up

Left only logs of recipes for postgresql:

# gitlab-ctl reconfigure
[2023-06-01T09:59:25+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook)
Cinc Client, version 17.10.0
Patents: https://www.chef.io/patents
Infra Phase starting
[2023-06-01T09:59:25+00:00] INFO: *** Cinc Client 17.10.0 ***
[2023-06-01T09:59:25+00:00] INFO: Platform: x86_64-linux
[2023-06-01T09:59:25+00:00] INFO: Cinc-client pid: 131417
[2023-06-01T09:59:27+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2023-06-01T09:59:27+00:00] INFO: Run List is [recipe[gitlab]]
[2023-06-01T09:59:27+00:00] INFO: Run List expands to [gitlab]
[2023-06-01T09:59:27+00:00] INFO: Starting Cinc Client Run for aaa634a3fa7b
[2023-06-01T09:59:27+00:00] INFO: Running start handlers
[2023-06-01T09:59:27+00:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab"]
[2023-06-01T09:59:28+00:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.7, acme@4.1.6, crond@0.1.0]
Synchronizing cookbooks:
  - redis (0.1.0)
  - registry (0.1.0)
  - mattermost (0.1.0)
  - postgresql (0.1.0)
  - consul (0.1.0)
  - gitlab (0.0.1)
  - praefect (0.1.0)
  - gitlab-pages (0.1.0)
  - logrotate (0.1.0)
  - nginx (0.1.0)
  - package (0.1.0)
  - crond (0.1.0)
  - gitlab-kas (0.1.0)
  - monitoring (0.1.0)
  - runit (5.1.7)
  - acme (4.1.6)
  - letsencrypt (0.1.0)
  - gitaly (0.1.0)
Installing cookbook gem dependencies:
Compiling cookbooks...
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:

Recipe: postgresql::bin
  * ruby_block[check_postgresql_version] action run (skipped due to not_if)
  * ruby_block[check_postgresql_version_is_deprecated] action run (skipped due to not_if)
  * ruby_block[Link postgresql bin files to the correct version] action run (skipped due to only_if)
  * template[/opt/gitlab/etc/gitlab-psql-rc] action create (up to date)
Recipe: postgresql::user
  * account[Postgresql user and group] action create (up to date)
  * directory[/var/opt/gitlab/postgresql] action create (up to date)
  * file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
Recipe: postgresql::sysctl
  * gitlab_sysctl[kernel.shmmax] action create
    * directory[create /etc/sysctl.d for kernel.shmmax] action create (skipped due to only_if)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (skipped due to only_if)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (skipped due to only_if)
    * execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing)
     (up to date)
  * gitlab_sysctl[kernel.shmall] action create
    * directory[create /etc/sysctl.d for kernel.shmall] action create (skipped due to only_if)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (skipped due to only_if)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (skipped due to only_if)
    * execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing)
     (up to date)
  * gitlab_sysctl[kernel.sem] action create
    * directory[create /etc/sysctl.d for kernel.sem] action create (skipped due to only_if)
    * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (skipped due to only_if)
    * link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (skipped due to only_if)
    * execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing)
     (up to date)
Recipe: postgresql::enable
  * directory[/var/opt/gitlab/postgresql] action create (up to date)
  * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  * directory[/var/log/gitlab/postgresql] action create (up to date)
  * directory[/var/opt/gitlab/postgresql/data] action create (up to date)
  * execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run (skipped due to not_if)
  * file[/var/opt/gitlab/postgresql/data/server.crt] action create (up to date)
  * file[/var/opt/gitlab/postgresql/data/server.key] action create (up to date)
  * postgresql_config[gitlab] action create
    * template[/var/opt/gitlab/postgresql/data/postgresql.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/runtime.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/pg_hba.conf] action create (up to date)
    * template[/var/opt/gitlab/postgresql/data/pg_ident.conf] action create (up to date)
     (up to date)
Recipe: postgresql::standalone
  * service[postgresql] action nothing (skipped due to action :nothing)
  * runit_service[postgresql] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/postgresql] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/log] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/log/main] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_postgresql] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/postgresql/config] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgresql/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/postgresql/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/postgresql/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/postgresql/control] action create (up to date)
    * template[/opt/gitlab/sv/postgresql/control/t] action create (up to date)
    * link[/opt/gitlab/init/postgresql] action create (up to date)
    * file[/opt/gitlab/sv/postgresql/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/postgresql] action create (up to date)
    * ruby_block[wait for postgresql service socket] action run (skipped due to not_if)
    * directory[/opt/gitlab/service/postgresql/supervise] action create (up to date)
    * directory[/opt/gitlab/service/postgresql/log/supervise] action create (up to date)
    * file[/opt/gitlab/service/postgresql/supervise/ok] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/log/supervise/ok] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/supervise/status] action touch[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] owner changed to 996
[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] group changed to 996

      - change owner from 'root' to 'gitlab-psql'
      - change group from 'root' to 'gitlab-psql'[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/supervise/status] updated atime and mtime to 2023-06-01 09:59:43 +0000

      - update utime on file /opt/gitlab/service/postgresql/supervise/status
    * file[/opt/gitlab/service/postgresql/log/supervise/status] action touch[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] owner changed to 996
[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] group changed to 996

      - change owner from 'root' to 'gitlab-psql'
      - change group from 'root' to 'gitlab-psql'[2023-06-01T09:59:43+00:00] INFO: file[/opt/gitlab/service/postgresql/log/supervise/status] updated atime and mtime to 2023-06-01 09:59:43 +0000

      - update utime on file /opt/gitlab/service/postgresql/log/supervise/status
    * file[/opt/gitlab/service/postgresql/supervise/control] action touch (skipped due to only_if)
    * file[/opt/gitlab/service/postgresql/log/supervise/control] action touch (skipped due to only_if)
    * file[/var/log/gitlab/postgresql/current] action touch (skipped due to only_if)

  * database_objects[postgresql] action create
    * postgresql_user[gitlab] action create
      * execute[create gitlab postgresql user] action run (skipped due to only_if)
       (up to date)
    * postgresql_user[gitlab_replicator] action create
      * execute[create gitlab_replicator postgresql user] action run (skipped due to only_if)
      * execute[set options for gitlab_replicator postgresql user] action run (skipped due to only_if)
       (up to date)
    * postgresql_database[gitlabhq_production] action create
      * execute[create database gitlabhq_production] action run (skipped due to not_if)
       (up to date)
    * postgresql_extension[pg_trgm] action enable
      * postgresql_query[enable pg_trgm extension] action run (skipped due to only_if)
       (up to date)
    * postgresql_extension[btree_gist] action enable
      * postgresql_query[enable btree_gist extension] action run (skipped due to only_if)
       (up to date)
     (up to date)
  * version_file[Create version file for PostgreSQL] action create
    * file[/var/opt/gitlab/postgresql/VERSION] action create (up to date)
     (up to date)
  * ruby_block[warn pending postgresql restart] action run (skipped due to only_if)
  * execute[reload postgresql] action nothing (skipped due to action :nothing)
  * execute[start postgresql] action nothing (skipped due to action :nothing)

Recipe: gitlab::database_migrations
  * ruby_block[check remote PG version] action nothing (skipped due to action :nothing)
  * rails_migration[gitlab-rails] action run
    * bash_hide_env[migrate gitlab-rails database] action run (skipped due to not_if)
     (up to date)

Recipe: monitoring::postgres-exporter
  * directory[/var/log/gitlab/postgres-exporter] action create (up to date)
  * directory[/var/opt/gitlab/postgres-exporter] action create (up to date)
  * env_dir[/opt/gitlab/etc/postgres-exporter/env] action create
    * directory[/opt/gitlab/etc/postgres-exporter/env] action create (up to date)
    * file[/opt/gitlab/etc/postgres-exporter/env/SSL_CERT_DIR] action create (up to date)
    * file[/opt/gitlab/etc/postgres-exporter/env/DATA_SOURCE_NAME] action create (up to date)
     (up to date)
  * service[postgres-exporter] action nothing (skipped due to action :nothing)
  * runit_service[postgres-exporter] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/postgres-exporter] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/log] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/log/main] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/log/config] action create (up to date)
    * ruby_block[verify_chown_persisted_on_postgres-exporter] action nothing (skipped due to action :nothing)
    * link[/var/log/gitlab/postgres-exporter/config] action create (up to date)
    * template[/opt/gitlab/sv/postgres-exporter/log/run] action create (up to date)
    * directory[/opt/gitlab/sv/postgres-exporter/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for postgres-exporter service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/postgres-exporter/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/postgres-exporter/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/postgres-exporter/control] action create (up to date)
    * link[/opt/gitlab/init/postgres-exporter] action create (up to date)
    * file[/opt/gitlab/sv/postgres-exporter/down] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/postgres-exporter] action create (up to date)
    * ruby_block[wait for postgres-exporter service socket] action run (skipped due to not_if)
    * file[/var/log/gitlab/postgres-exporter/current] action touch (skipped due to only_if)
     (up to date)
  * template[/var/opt/gitlab/postgres-exporter/queries.yaml] action create (up to date)
  * consul_service[postgres-exporter] action delete
    * file[/var/opt/gitlab/consul/config.d/postgres-exporter-service.json] action delete (up to date)
     (up to date)

Recipe: gitlab::database_reindexing_disable
  * crond_job[database-reindexing] action delete
    * file[/var/opt/gitlab/crond/database-reindexing] action delete (up to date)
     (up to date)
[2023-06-01T09:59:47+00:00] INFO: Cinc Client Run complete in 20.053310513 seconds
# gitlab-ctl start
ok: run: alertmanager: (pid 131718) 0s
ok: run: gitaly: (pid 131722) 0s
ok: run: gitlab-exporter: (pid 131725) 0s
ok: run: gitlab-kas: (pid 131730) 0s
ok: run: gitlab-workhorse: (pid 131733) 0s
ok: run: logrotate: (pid 131740) 0s
ok: run: nginx: (pid 131748) 0s
ok: run: postgres-exporter: (pid 131754) 0s
ok: run: postgresql: (pid 131770) 0s
ok: run: prometheus: (pid 131772) 0s
ok: run: puma: (pid 131774) 0s
ok: run: redis: (pid 131781) 0s
ok: run: redis-exporter: (pid 131785) 0s
ok: run: sidekiq: (pid 131787) 0s
ok: run: sshd: (pid 131799) 0s

The postgresql isn’t starting. You can see that in the log. Stop GitLab and all it’s components and remove the postmaster.pid. Try to start everything again.

1 Like

Thank you, that was simple but effective.