Error while upgrading from 18.3 to 18.4 (Checking PostgreSQL executables: NOT OK)
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
I have an error while upgrading to 18.4.
Checking PostgreSQL executables: NOT OK
Terminal logs:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 1 459 Mo dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de :1 https://packages.gitlab.com/gitlab/gitlab-ce/debian bookworm/main amd64 gitlab-ce amd64 18.4.0-ce.0 [1 459 MB]
1 459 Mo réceptionnés en 21s (71,1 Mo/s)
(Lecture de la base de données... 141527 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../gitlab-ce_18.4.0-ce.0_amd64.deb ...
gitlab preinstall: Automatically backing up only the GitLab SQL database (excluding everything else!)
2025-09-25 11:53:55 UTC -- Dumping database ...
2025-09-25 11:53:55 UTC -- Dumping PostgreSQL database gitlabhq_production ...
2025-09-25 11:54:00 UTC -- [DONE]
2025-09-25 11:54:00 UTC -- Dumping database ... done
2025-09-25 11:54:00 UTC -- Dumping repositories ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping uploads ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping builds ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping artifacts ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping pages ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping lfs objects ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping terraform states ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping container registry images ... [DISABLED]
2025-09-25 11:54:00 UTC -- Dumping packages ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping ci secure files ... [SKIPPED]
2025-09-25 11:54:00 UTC -- Dumping external diffs ... [SKIPPED]
2025-09-25 11:54:01 UTC -- Creating backup archive: 1758801235_2025_09_25_18.4.0_gitlab_backup.tar ...
2025-09-25 11:54:01 UTC -- Creating backup archive: 1758801235_2025_09_25_18.4.0_gitlab_backup.tar ... done
2025-09-25 11:54:01 UTC -- Uploading backup archive to remote storage ... [SKIPPED]
2025-09-25 11:54:01 UTC -- Deleting old backups ... [SKIPPED]
2025-09-25 11:54:01 UTC -- Deleting tar staging files ...
2025-09-25 11:54:01 UTC -- Cleaning up /var/opt/gitlab/backups/backup_information.yml
2025-09-25 11:54:01 UTC -- Cleaning up /var/opt/gitlab/backups/db
2025-09-25 11:54:01 UTC -- Deleting tar staging files ... done
2025-09-25 11:54:01 UTC -- Deleting backups/tmp ...
2025-09-25 11:54:01 UTC -- Deleting backups/tmp ... done
2025-09-25 11:54:01 UTC -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data
and are not included in this backup. You will need these files to restore a backup.
Please back them up manually.
2025-09-25 11:54:01 UTC -- Backup 1758801235_2025_09_25_18.4.0 is done.
2025-09-25 11:54:01 UTC -- Deleting backup and restore PID file at [/opt/gitlab/embedded/service/gitlab-rails/tmp/backup_restore.pid] ... done
gitlab preinstall: Automatically backing up /etc/gitlab
Running configuration backup
Creating configuration backup archive: gitlab_config_1758801242_2025_09_25.tar
/etc/gitlab/
/etc/gitlab/gitlab-secrets.json
/etc/gitlab/ssl/
/etc/gitlab/ssl/gitlab.emaxilde.net.key
/etc/gitlab/ssl/gitlab.emaxilde.net.crt
/etc/gitlab/trusted-certs/
/etc/gitlab/gitlab.rb
Configuration backup archive complete: /etc/gitlab/config_backup/gitlab_config_1758801242_2025_09_25.tar
Keeping all older configuration backups
Dépaquetage de gitlab-ce (18.4.0-ce.0) sur (18.4.0-ce.0) ...
Paramétrage de gitlab-ce (18.4.0-ce.0) ...
Checking PostgreSQL executables:[2025-09-25T13:55:12+02:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embed
ded (One version per cookbook)
Cinc Client, version 18.3.0
Patents: https://www.chef.io/patents
Infra Phase starting
[2025-09-25T13:55:12+02:00] INFO: *** Cinc Client 18.3.0 ***
[2025-09-25T13:55:12+02:00] INFO: Platform: x86_64-linux
[2025-09-25T13:55:12+02:00] INFO: Cinc-client pid: 14174
[2025-09-25T13:55:13+02:00] INFO: Setting the run_list to ["recipe[gitlab::config]", "recipe[postgresql::bin]"] from CLI options
[2025-09-25T13:55:13+02:00] INFO: Run List is [recipe[gitlab::config], recipe[postgresql::bin]]
[2025-09-25T13:55:13+02:00] INFO: Run List expands to [gitlab::config, postgresql::bin]
[2025-09-25T13:55:13+02:00] INFO: Starting Cinc Client Run for vm1100.pve.home.arpa
[2025-09-25T13:55:13+02:00] INFO: Running start handlers
[2025-09-25T13:55:13+02:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab::config", "postgresql::bin"]
[2025-09-25T13:55:14+02:00] INFO: Loading cookbooks [gitlab@0.0.1, postgresql@0.1.0, package@0.1.0, logrotate@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]
[2025-09-25T13:55:14+02:00] INFO: Removing cookbooks/gitlab-base/metadata.rb from the cache; its cookbook is no longer needed on this client.
[2025-09-25T13:55:14+02:00] INFO: Removing cookbooks/gitlab-base/recipes/config.rb from the cache; its cookbook is no longer needed on this client
.
[2025-09-25T13:55:14+02:00] INFO: Removing cookbooks/gitlab-base/recipes/default.rb from the cache; its cookbook is no longer needed on this clien
t.
Synchronizing cookbooks:
- gitlab (0.0.1)
- postgresql (0.1.0)
- package (0.1.0)
- logrotate (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)
Installing cookbook gem dependencies:
Compiling cookbooks...
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:
================================================================================
Recipe Compile Error
================================================================================
Chef::Exceptions::RecipeNotFound
--------------------------------
could not find recipe config for cookbook gitlab
System Info:
------------
chef_version=18.3.0
platform=debian
platform_version=12
ruby=ruby 3.2.8 (2025-03-26 revision 13f495dc2c) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
Running handlers:
[2025-09-25T13:55:15+02:00] ERROR: Running exception handlers
Running handlers complete
[2025-09-25T13:55:15+02:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 03 seconds
[2025-09-25T13:55:15+02:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2025-09-25T13:55:15+02:00] FATAL: ---------------------------------------------------------------------------------------
[2025-09-25T13:55:15+02:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2025-09-25T13:55:15+02:00] FATAL: ---------------------------------------------------------------------------------------
[2025-09-25T13:55:15+02:00] FATAL: Chef::Exceptions::RecipeNotFound: could not find recipe config for cookbook gitlab
Checking PostgreSQL executables: NOT OK
Could not update PostgreSQL executables.
Shutting down all GitLab services except those needed for migrations
cinc-stacktrace.out
Chef::Exceptions::RecipeNotFound: could not find recipe config for cookbook gitlab
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/cookbook_version.rb:207:in `load_recipe'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context.rb:429:in `load_recipe'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context/cookbook_compiler.rb:228:in `block in compile_recipes'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context/cookbook_compiler.rb:225:in `each'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context/cookbook_compiler.rb:225:in `compile_recipes'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context/cookbook_compiler.rb:109:in `compile'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/run_context.rb:259:in `load'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/policy_builder/expand_node_object.rb:103:in `setup_run_context'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/forwardable-1.3.3/lib/forwardable.rb:240:in `setup_run_context'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/client.rb:499:in `setup_run_context'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/client.rb:294:in `run'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/application.rb:305:in `run_with_graceful_exit_option'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/application.rb:281:in `block in run_chef_client'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/local_mode.rb:42:in `with_server_connectivity'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/application.rb:264:in `run_chef_client'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/application/base.rb:354:in `run_application'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-18.3.0/lib/chef/application.rb:67:in `run'
/opt/gitlab/embedded/lib/ruby/gems/3.2.0/gems/chef-bin-18.3.0/bin/cinc-client:25:in `<top (required)>'
/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems.rb:319:in `load'
/opt/gitlab/embedded/lib/ruby/site_ruby/3.2.0/rubygems.rb:319:in `activate_and_load_bin_path'
I've cleaned cookbooks cache and done a reconfigure (Ok) and then a reinstall (error still persists).
But everything seems to be working fine despite this upprade error. Weird!
Edited by 🤖 GitLab Bot 🤖