Actions
Bug #38280
openFollowing the quickstart instructions on Debian 12 leads to missing database
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Platform is Debian 12, default created by google compute engine. I followed the directions on https://theforeman.org/manuals/3.14/quickstart_guide.html and the install failed. It created the `foreman` user but not the `foreman` database. Re-running the installer had the same problem.
binford2k@classroom-testing-debian-2:~$ sudo apt-get -y install ca-certificates Reading package lists... Done Building dependency tree... Done Reading state information... Done ca-certificates is already the newest version (20230311). 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. binford2k@classroom-testing-debian-2:~$ wget https://apt.puppet.com/puppet8-release-bookworm.deb --2025-03-11 01:29:29-- https://apt.puppet.com/puppet8-release-bookworm.deb Resolving apt.puppet.com (apt.puppet.com)... 108.138.94.77, 108.138.94.57, 108.138.94.23, ... Connecting to apt.puppet.com (apt.puppet.com)|108.138.94.77|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 11542 (11K) [application/vnd.debian.binary-package] Saving to: ‘puppet8-release-bookworm.deb’ puppet8-release-bookworm.de 100%[==========================================>] 11.27K --.-KB/s in 0s 2025-03-11 01:29:29 (88.6 MB/s) - ‘puppet8-release-bookworm.deb’ saved [11542/11542] binford2k@classroom-testing-debian-2:~$ sudo apt install ./puppet8-release-bookworm.deb Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'puppet8-release' instead of './puppet8-release-bookworm.deb' The following NEW packages will be installed: puppet8-release 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 0 B/11.5 kB of archives. After this operation, 10.2 kB of additional disk space will be used. Get:1 /home/binford2k/puppet8-release-bookworm.deb puppet8-release all 1.0.0-9bookworm [11.5 kB] Selecting previously unselected package puppet8-release. (Reading database ... 69853 files and directories currently installed.) Preparing to unpack .../puppet8-release-bookworm.deb ... Unpacking puppet8-release (1.0.0-9bookworm) ... Setting up puppet8-release (1.0.0-9bookworm) ... binford2k@classroom-testing-debian-2:~$ sudo wget https://deb.theforeman.org/foreman.asc -O /etc/apt/trusted.gpg.d/foreman.asc echo "deb http://deb.theforeman.org/ bookworm 3.14" | sudo tee /etc/apt/sources.list.d/foreman.list echo "deb http://deb.theforeman.org/ plugins 3.14" | sudo tee -a /etc/apt/sources.list.d/foreman.list --2025-03-11 01:29:46-- https://deb.theforeman.org/foreman.asc Resolving deb.theforeman.org (deb.theforeman.org)... 151.101.2.49, 151.101.66.49, 151.101.130.49, ... Connecting to deb.theforeman.org (deb.theforeman.org)|151.101.2.49|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 2460 (2.4K) [text/plain] Saving to: ‘/etc/apt/trusted.gpg.d/foreman.asc’ /etc/apt/trusted.gpg.d/fore 100%[==========================================>] 2.40K --.-KB/s in 0s 2025-03-11 01:29:46 (20.9 MB/s) - ‘/etc/apt/trusted.gpg.d/foreman.asc’ saved [2460/2460] deb http://deb.theforeman.org/ bookworm 3.14 deb http://deb.theforeman.org/ plugins 3.14 binford2k@classroom-testing-debian-2:~$ sudo apt update Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B] Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B] Hit:7 https://packages.cloud.google.com/apt google-compute-engine-bookworm-stable InRelease Hit:3 https://deb.debian.org/debian bookworm InRelease Hit:4 https://deb.debian.org/debian bookworm-updates InRelease Hit:5 https://deb.debian.org/debian bookworm-backports InRelease Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease Get:8 http://deb.theforeman.org bookworm InRelease [25.6 kB] Get:9 http://deb.theforeman.org plugins InRelease [39.9 kB] Hit:10 https://packages.cloud.google.com/apt cloud-sdk-bookworm InRelease Get:11 http://apt.puppet.com bookworm InRelease [56.5 kB] Hit:12 https://packages.cloud.google.com/apt google-cloud-ops-agent-bookworm-2 InRelease Get:13 http://deb.theforeman.org bookworm/3.14 amd64 Packages [22.6 kB] Get:14 http://deb.theforeman.org plugins/3.14 amd64 Packages [13.9 kB] Get:15 http://apt.puppet.com bookworm/puppet8 all Packages [2660 B] Get:16 http://apt.puppet.com bookworm/puppet8 amd64 Packages [50.8 kB] Fetched 212 kB in 3s (78.5 kB/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 9 packages can be upgraded. Run 'apt list --upgradable' to see them. binford2k@classroom-testing-debian-2:~$ apt install foreman-installer E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? binford2k@classroom-testing-debian-2:~$ sudo !! sudo apt install foreman-installer Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: fonts-lato javascript-common libjs-jquery libncurses6 libruby libruby3.1 puppet-agent rake ruby ruby-ansi ruby-clamp ruby-hashie ruby-highline ruby-kafo ruby-kafo-parsers ruby-kafo-wizards ruby-little-plugger ruby-logging ruby-multi-json ruby-net-telnet ruby-oj ruby-powerbar ruby-rubygems ruby-sdbm ruby-webrick ruby-xmlrpc ruby3.1 rubygems-integration unzip zip Suggested packages: apache2 | lighttpd | httpd ri ruby-dev ruby-activesupport bundler The following NEW packages will be installed: fonts-lato foreman-installer javascript-common libjs-jquery libncurses6 libruby libruby3.1 puppet-agent rake ruby ruby-ansi ruby-clamp ruby-hashie ruby-highline ruby-kafo ruby-kafo-parsers ruby-kafo-wizards ruby-little-plugger ruby-logging ruby-multi-json ruby-net-telnet ruby-oj ruby-powerbar ruby-rubygems ruby-sdbm ruby-webrick ruby-xmlrpc ruby3.1 rubygems-integration unzip zip 0 upgraded, 31 newly installed, 0 to remove and 9 not upgraded. Need to get 47.7 MB of archives. After this operation, 178 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B] Get:12 http://deb.theforeman.org bookworm/3.14 amd64 ruby-clamp all 1.3.2-1~tfm+1+debian12 [16.7 kB] Get:13 http://deb.theforeman.org bookworm/3.14 amd64 ruby-kafo-parsers all 1.2.1-1+debian12 [7072 B] Get:14 http://deb.theforeman.org bookworm/3.14 amd64 ruby-kafo-wizards all 0.0.2-1+debian12 [8248 B] Get:15 http://deb.theforeman.org bookworm/3.14 amd64 ruby-kafo all 7.6.0-1+debian12 [42.6 kB] Get:2 https://deb.debian.org/debian bookworm/main amd64 fonts-lato all 2.0-2.1 [2696 kB] Get:31 http://deb.theforeman.org bookworm/3.14 amd64 foreman-installer all 3.14.0~rc2-1+debian12 [1224 kB] Get:3 https://deb.debian.org/debian bookworm/main amd64 rubygems-integration all 1.18 [6704 B] Get:4 https://deb.debian.org/debian bookworm/main amd64 rake all 13.0.6-3 [83.9 kB] Get:5 https://deb.debian.org/debian bookworm/main amd64 ruby-net-telnet all 0.2.0-1 [13.1 kB] Get:6 https://deb.debian.org/debian bookworm/main amd64 ruby-webrick all 1.8.1-1 [51.4 kB] Get:7 https://deb.debian.org/debian bookworm/main amd64 ruby-xmlrpc all 0.3.2-2 [24.4 kB] Get:8 https://deb.debian.org/debian bookworm/main amd64 libruby amd64 1:3.1 [4972 B] Get:9 https://deb.debian.org/debian bookworm/main amd64 ruby-sdbm amd64 1.0.0-5+b1 [15.4 kB] Get:10 https://deb.debian.org/debian bookworm/main amd64 libncurses6 amd64 6.4-4 [103 kB] Get:11 https://deb.debian.org/debian bookworm/main amd64 libruby3.1 amd64 3.1.2-7+deb12u1 [5400 kB] Get:16 https://deb.debian.org/debian bookworm/main amd64 ruby3.1 amd64 3.1.2-7+deb12u1 [663 kB] Get:17 https://deb.debian.org/debian bookworm/main amd64 ruby-rubygems all 3.3.15-2 [293 kB] Get:18 https://deb.debian.org/debian bookworm/main amd64 ruby amd64 1:3.1 [5868 B] Get:19 https://deb.debian.org/debian bookworm/main amd64 ruby-highline all 2.0.3-2 [61.7 kB] Get:20 https://deb.debian.org/debian bookworm/main amd64 ruby-little-plugger all 1.1.4-1.1 [7408 B] Get:21 https://deb.debian.org/debian bookworm/main amd64 ruby-multi-json all 1.14.1-2 [20.4 kB] Get:22 https://deb.debian.org/debian bookworm/main amd64 ruby-logging all 2.2.2-1 [59.0 kB] Get:23 https://deb.debian.org/debian bookworm/main amd64 ruby-ansi all 1.5.0-1.1 [36.0 kB] Get:24 https://deb.debian.org/debian bookworm/main amd64 ruby-hashie all 5.0.0-2 [47.4 kB] Get:25 https://deb.debian.org/debian bookworm/main amd64 ruby-powerbar all 1.0.18-1 [7482 B] Get:26 https://deb.debian.org/debian bookworm/main amd64 javascript-common all 11+nmu1 [6260 B] Get:27 https://deb.debian.org/debian bookworm/main amd64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [326 kB] Get:28 https://deb.debian.org/debian bookworm/main amd64 ruby-oj amd64 3.14.2-1 [189 kB] Get:29 https://deb.debian.org/debian bookworm/main amd64 unzip amd64 6.0-28 [166 kB] Get:30 https://deb.debian.org/debian bookworm/main amd64 zip amd64 3.0-13 [230 kB] Get:32 http://apt.puppet.com bookworm/puppet8 amd64 puppet-agent amd64 8.10.0-1bookworm [35.8 MB] Fetched 47.7 MB in 3s (16.9 MB/s) Extracting templates from packages: 100% Selecting previously unselected package fonts-lato. (Reading database ... 69858 files and directories currently installed.) Preparing to unpack .../00-fonts-lato_2.0-2.1_all.deb ... Unpacking fonts-lato (2.0-2.1) ... Selecting previously unselected package rubygems-integration. Preparing to unpack .../01-rubygems-integration_1.18_all.deb ... Unpacking rubygems-integration (1.18) ... Selecting previously unselected package rake. Preparing to unpack .../02-rake_13.0.6-3_all.deb ... Unpacking rake (13.0.6-3) ... Selecting previously unselected package ruby-net-telnet. Preparing to unpack .../03-ruby-net-telnet_0.2.0-1_all.deb ... Unpacking ruby-net-telnet (0.2.0-1) ... Selecting previously unselected package ruby-webrick. Preparing to unpack .../04-ruby-webrick_1.8.1-1_all.deb ... Unpacking ruby-webrick (1.8.1-1) ... Selecting previously unselected package ruby-xmlrpc. Preparing to unpack .../05-ruby-xmlrpc_0.3.2-2_all.deb ... Unpacking ruby-xmlrpc (0.3.2-2) ... Selecting previously unselected package libruby:amd64. Preparing to unpack .../06-libruby_1%3a3.1_amd64.deb ... Unpacking libruby:amd64 (1:3.1) ... Selecting previously unselected package ruby-sdbm:amd64. Preparing to unpack .../07-ruby-sdbm_1.0.0-5+b1_amd64.deb ... Unpacking ruby-sdbm:amd64 (1.0.0-5+b1) ... Selecting previously unselected package libncurses6:amd64. Preparing to unpack .../08-libncurses6_6.4-4_amd64.deb ... Unpacking libncurses6:amd64 (6.4-4) ... Selecting previously unselected package libruby3.1:amd64. Preparing to unpack .../09-libruby3.1_3.1.2-7+deb12u1_amd64.deb ... Unpacking libruby3.1:amd64 (3.1.2-7+deb12u1) ... Selecting previously unselected package ruby3.1. Preparing to unpack .../10-ruby3.1_3.1.2-7+deb12u1_amd64.deb ... Unpacking ruby3.1 (3.1.2-7+deb12u1) ... Selecting previously unselected package ruby-rubygems. Preparing to unpack .../11-ruby-rubygems_3.3.15-2_all.deb ... Unpacking ruby-rubygems (3.3.15-2) ... Selecting previously unselected package ruby. Preparing to unpack .../12-ruby_1%3a3.1_amd64.deb ... Unpacking ruby (1:3.1) ... Selecting previously unselected package ruby-clamp. Preparing to unpack .../13-ruby-clamp_1.3.2-1~tfm+1+debian12_all.deb ... Unpacking ruby-clamp (1.3.2-1~tfm+1+debian12) ... Selecting previously unselected package ruby-highline. Preparing to unpack .../14-ruby-highline_2.0.3-2_all.deb ... Unpacking ruby-highline (2.0.3-2) ... Selecting previously unselected package ruby-kafo-parsers. Preparing to unpack .../15-ruby-kafo-parsers_1.2.1-1+debian12_all.deb ... Unpacking ruby-kafo-parsers (1.2.1-1+debian12) ... Selecting previously unselected package ruby-kafo-wizards. Preparing to unpack .../16-ruby-kafo-wizards_0.0.2-1+debian12_all.deb ... Unpacking ruby-kafo-wizards (0.0.2-1+debian12) ... Selecting previously unselected package ruby-little-plugger. Preparing to unpack .../17-ruby-little-plugger_1.1.4-1.1_all.deb ... Unpacking ruby-little-plugger (1.1.4-1.1) ... Selecting previously unselected package ruby-multi-json. Preparing to unpack .../18-ruby-multi-json_1.14.1-2_all.deb ... Unpacking ruby-multi-json (1.14.1-2) ... Selecting previously unselected package ruby-logging. Preparing to unpack .../19-ruby-logging_2.2.2-1_all.deb ... Unpacking ruby-logging (2.2.2-1) ... Selecting previously unselected package ruby-ansi. Preparing to unpack .../20-ruby-ansi_1.5.0-1.1_all.deb ... Unpacking ruby-ansi (1.5.0-1.1) ... Selecting previously unselected package ruby-hashie. Preparing to unpack .../21-ruby-hashie_5.0.0-2_all.deb ... Unpacking ruby-hashie (5.0.0-2) ... Selecting previously unselected package ruby-powerbar. Preparing to unpack .../22-ruby-powerbar_1.0.18-1_all.deb ... Unpacking ruby-powerbar (1.0.18-1) ... Selecting previously unselected package ruby-kafo. Preparing to unpack .../23-ruby-kafo_7.6.0-1+debian12_all.deb ... Unpacking ruby-kafo (7.6.0-1+debian12) ... Selecting previously unselected package puppet-agent. Preparing to unpack .../24-puppet-agent_8.10.0-1bookworm_amd64.deb ... Unpacking puppet-agent (8.10.0-1bookworm) ... Selecting previously unselected package foreman-installer. Preparing to unpack .../25-foreman-installer_3.14.0~rc2-1+debian12_all.deb ... Unpacking foreman-installer (3.14.0~rc2-1+debian12) ... Selecting previously unselected package javascript-common. Preparing to unpack .../26-javascript-common_11+nmu1_all.deb ... Unpacking javascript-common (11+nmu1) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../27-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... Selecting previously unselected package ruby-oj:amd64. Preparing to unpack .../28-ruby-oj_3.14.2-1_amd64.deb ... Unpacking ruby-oj:amd64 (3.14.2-1) ... Selecting previously unselected package unzip. Preparing to unpack .../29-unzip_6.0-28_amd64.deb ... Unpacking unzip (6.0-28) ... Selecting previously unselected package zip. Preparing to unpack .../30-zip_3.0-13_amd64.deb ... Unpacking zip (3.0-13) ... Setting up javascript-common (11+nmu1) ... Setting up ruby-clamp (1.3.2-1~tfm+1+debian12) ... Setting up fonts-lato (2.0-2.1) ... Setting up ruby-hashie (5.0.0-2) ... Setting up ruby-highline (2.0.3-2) ... Setting up unzip (6.0-28) ... Setting up rubygems-integration (1.18) ... Setting up zip (3.0-13) ... Setting up libncurses6:amd64 (6.4-4) ... Setting up ruby-net-telnet (0.2.0-1) ... Setting up ruby-webrick (1.8.1-1) ... Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... Setting up ruby-xmlrpc (0.3.2-2) ... Setting up puppet-agent (8.10.0-1bookworm) ... Created symlink /etc/systemd/system/multi-user.target.wants/pxp-agent.service → /lib/systemd/system/pxp-agent.service. Created symlink /etc/systemd/system/multi-user.target.wants/puppet.service → /lib/systemd/system/puppet.service. Removed "/etc/systemd/system/multi-user.target.wants/pxp-agent.service". Setting up libruby:amd64 (1:3.1) ... Setting up rake (13.0.6-3) ... Setting up ruby-sdbm:amd64 (1.0.0-5+b1) ... Setting up libruby3.1:amd64 (3.1.2-7+deb12u1) ... Setting up ruby-oj:amd64 (3.14.2-1) ... Setting up ruby3.1 (3.1.2-7+deb12u1) ... Setting up ruby (1:3.1) ... Setting up ruby-kafo-parsers (1.2.1-1+debian12) ... Setting up ruby-little-plugger (1.1.4-1.1) ... Setting up ruby-ansi (1.5.0-1.1) ... Setting up ruby-multi-json (1.14.1-2) ... Setting up ruby-rubygems (3.3.15-2) ... Setting up ruby-powerbar (1.0.18-1) ... Setting up ruby-kafo-wizards (0.0.2-1+debian12) ... Setting up ruby-logging (2.2.2-1) ... Setting up ruby-kafo (7.6.0-1+debian12) ... Setting up foreman-installer (3.14.0~rc2-1+debian12) ... Processing triggers for libc-bin (2.36-9+deb12u9) ... Processing triggers for man-db (2.11.2-2) ... binford2k@classroom-testing-debian-2:~$ ping $(hostname -f) PING classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal (10.138.0.9) 56(84) bytes of data. 64 bytes from classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal (10.138.0.9): icmp_seq=1 ttl=64 time=0.047 ms 64 bytes from classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal (10.138.0.9): icmp_seq=2 ttl=64 time=0.042 ms 64 bytes from classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal (10.138.0.9): icmp_seq=3 ttl=64 time=0.051 ms 64 bytes from classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal (10.138.0.9): icmp_seq=4 ttl=64 time=0.083 ms ^C --- classroom-testing-debian-2.us-west1-a.c.zippy-cab-449217-f2.internal ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3071ms rtt min/avg/max/mdev = 0.042/0.055/0.083/0.016 ms binford2k@classroom-testing-debian-2:~$ sudo foreman-installer 2025-03-11 01:31:10 [NOTICE] [root] Loading installer configuration. This will take some time. 2025-03-11 01:31:17 [NOTICE] [root] Running installer with log based terminal output at level NOTICE. 2025-03-11 01:31:17 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions. 2025-03-11 01:31:19 [NOTICE] [checks] System checks passed 2025-03-11 01:31:20 [NOTICE] [configure] Starting system configuration. 2025-03-11 01:41:31 [NOTICE] [configure] 250 configuration steps out of 1252 steps complete. 2025-03-11 01:42:02 [NOTICE] [configure] 500 configuration steps out of 1255 steps complete. 2025-03-11 01:42:23 [NOTICE] [configure] 750 configuration steps out of 1384 steps complete. 2025-03-11 01:43:11 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2025-03-11 01:43:11 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2025-03-11 01:43:50 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2025-03-11 01:43:50 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2025-03-11 01:44:08 [NOTICE] [configure] 1000 configuration steps out of 1410 steps complete. 2025-03-11 01:44:09 [NOTICE] [configure] 1250 configuration steps out of 1410 steps complete. 2025-03-11 01:44:24 [NOTICE] [configure] System configuration has finished. Error 1: Puppet Exec resource 'foreman-rake-db:migrate' failed. Logs: /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate] Adding autorequire relationship with User[foreman] Starting to evaluate the resource (970 of 1410) Failed to call refresh: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] Evaluated in 79.48 seconds Exec[foreman-rake-db:migrate](provider=posix) Executing check '/usr/sbin/foreman-rake db:abort_if_pending_migrations' Executing '/usr/sbin/foreman-rake db:migrate' Executing check '/usr/sbin/foreman-rake db:abort_if_pending_migrations' Executing '/usr/sbin/foreman-rake db:migrate' /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless rake aborted! ActiveRecord::NoDatabaseError: We could not find your database: foreman. Which can be found in the database configuration file located at config/database.yml. To resolve this issue: - Did you create the database for this app, or delete it? You may need to create your database. - Has the database name changed? Check your database.yml config has the correct database name. To create your database, run: bin/rails db:create /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:81:in `rescue in new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:343:in `block (3 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `each' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `flat_map' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Caused by: PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "foreman" does not exist /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:709:in `async_connect_or_reset' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:844:in `connect_to_hosts' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:772:in `new' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg.rb:63:in `connect' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:343:in `block (3 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `each' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `flat_map' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:abort_if_pending_migrations (See full trace by running task with --trace) rake aborted! ActiveRecord::NoDatabaseError: We could not find your database: foreman. Which can be found in the database configuration file located at config/database.yml. To resolve this issue: - Did you create the database for this app, or delete it? You may need to create your database. - Has the database name changed? Check your database.yml config has the correct database name. To create your database, run: bin/rails db:create /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:81:in `rescue in new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:343:in `block (3 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `each' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `flat_map' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Caused by: PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "foreman" does not exist /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:709:in `async_connect_or_reset' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:844:in `connect_to_hosts' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:772:in `new' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg.rb:63:in `connect' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:343:in `block (3 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `each' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `flat_map' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:340:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:abort_if_pending_migrations (See full trace by running task with --trace) /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns rake aborted! ActiveRecord::NoDatabaseError: We could not find your database: foreman. Which can be found in the database configuration file located at config/database.yml. To resolve this issue: - Did you create the database for this app, or delete it? You may need to create your database. - Has the database name changed? Check your database.yml config has the correct database name. To create your database, run: bin/rails db:create /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:81:in `rescue in new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Caused by: PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "foreman" does not exist /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:709:in `async_connect_or_reset' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:844:in `connect_to_hosts' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:772:in `new' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg.rb:63:in `connect' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:migrate (See full trace by running task with --trace) change from 'notrun' to ['0'] failed: '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] rake aborted! ActiveRecord::NoDatabaseError: We could not find your database: foreman. Which can be found in the database configuration file located at config/database.yml. To resolve this issue: - Did you create the database for this app, or delete it? You may need to create your database. - Has the database name changed? Check your database.yml config has the correct database name. To create your database, run: bin/rails db:create /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:81:in `rescue in new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Caused by: PG::ConnectionBad: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: database "foreman" does not exist /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:709:in `async_connect_or_reset' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:844:in `connect_to_hosts' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg/connection.rb:772:in `new' /usr/share/foreman/vendor/ruby/3.1.0/gems/pg-1.5.9/lib/pg.rb:63:in `connect' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `public_send' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:656:in `new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:700:in `checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:679:in `try_to_checkout_new_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:640:in `acquire_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:341:in `checkout' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:181:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_adapters/abstract/connection_handler.rb:211:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:313:in `retrieve_connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/connection_handling.rb:280:in `connection' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/tasks/database_tasks.rb:262:in `migrate' /usr/share/foreman/vendor/ruby/3.1.0/gems/activerecord-7.0.8.7/lib/active_record/railties/databases.rake:92:in `block (2 levels) in <top (required)>' /usr/share/foreman/vendor/ruby/3.1.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:migrate (See full trace by running task with --trace) 1 error was detected during installation. Please address the errors and re-run the installer to ensure the system is properly configured. Failing to do so is likely to result in broken functionality. The full log is at /var/log/foreman-installer/foreman.log
Files
Updated by Xyz 00777 23 days ago
Ben Ford wrote:
Platform is Debian 12, default created by google compute engine. I followed the directions on https://theforeman.org/manuals/3.14/quickstart_guide.html and the install failed. It created the `foreman` user but not the `foreman` database. Re-running the installer had the same problem.
[...]
also missing for redhat based package instruction. It feels like many information are missing for manual instructions.
Actions