Bug 2277393
| Summary: | Upgrade from Satellite 6.14.3 to 6.15.0 fails with a /usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | arivera |
| Component: | Upgrades | Assignee: | Eric Helms <ehelms> |
| Status: | CLOSED MIGRATED | QA Contact: | Griffin Sullivan <gsulliva> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.15.0 | CC: | ahumbe, bkielhol, ehelms, ekohlvan, gformisa, gsulliva, jbhatia, osousa, saydas, smajumda |
| Target Milestone: | 6.15.1 | Keywords: | MigratedToJIRA, Triaged, Upgrades |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-foreman_maintain-1.4.5. | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-06 17:35:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Hello, Can you please share the kernel parameters set in grubenv file? # cat /boot/grub2/grubenv We want to confirm if you have ipv6.disable=1 set on kernelopts line. Hello, Yes, the kernel parameter ipv6.disable=1 is present in the grubenv file. Hi, Disabling IPv6 at the kernel level by using ipv6.disable=1 is not recommended. It is observed from other customers upgrading to 6.15 that disabling IPv6 properly as per the steps mentioned in KCS : https://access.redhat.com/solutions/5045841 and then attempt to upgrade the satellite server was completed successfully. Can you please try below steps: 1. Take a snapshot backup of the Satellite VM at hypervisor level 2. Follow the KCS article to disable IPv6 properly 3. Remove the old entry "ipv6.disable=1 " from kernel options in the file /boot/grub2/grubenv 4. Try to execute satellite-installer to complete the upgrade and share your observations. Also, let us know if you have already reported any support case if not already created, we recommend you to open it. The steps provided fixed the problem. I suggest that satellite-maintain upgrade check SHOULD have a way of identifying this instead of waiting to run the upgrade. Then having the upgrade fail leaving Satellite in a broken state. I wonder what is different from the upstream Foreman, as I have been upgraded from Foreman 3.7->3.8>3.9 all the way to 3.11 and the same with Katello and I have not seen this behavior. Servers built from the same provisioning template. I notice that Satellite 6.14 moved from foreman 3.7 to foreman 3.9 on Satellite 6.15. Hello, Thank you for the confirmation and good to know that the satellite was upgraded successfully to 6.15. As a next step, this will be discussed with the Satellite engineering team to add a pre-upgrade check. Leaving notes to self. Relevant bits from the traceback:
Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `new'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `connect_addrinfo'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:193:in `block in connect'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each_with_index'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `connect'
/usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:305:in `connect'
That's this code:
https://github.com/redis/redis-rb/blob/a7db87c4ee0c8e6ea02d138744cd6810d37a85fc/lib/redis/connection/ruby.rb#L147-L200
The connect in particular is interesting, since it appears to be doing the right thing: use getaddrinfo() and then try them each in order:
# From the man page for getaddrinfo(3):
#
# Normally, the application should try using the addresses in the
# order in which they are returned. The sorting function used
# within getaddrinfo() is defined in RFC 3484 [...].
#
addrinfo.each_with_index do |ai, i|
begin
return connect_addrinfo(ai, port, timeout)
rescue SystemCallError
# Raise if this was our last attempt.
raise if addrinfo.length == i + 1
end
end
In the traceback we can also see Errno::EAFNOSUPPORT is raised, which is this:
Errno::EAFNOSUPPORT.ancestors
=> [Errno::EAFNOSUPPORT, SystemCallError, StandardError, Exception, Object, PP::ObjectMixin, Kernel, BasicObject]
So it is a SystemCallError, which means it's not just the single addrinfo item, but actually it cycled through the entire loop.
Next steps should be to check what it's exactly connecting to and what it's returning. I'll see if I can dig that up from customer cases.
Some further digging:
I created a machine with ipv6.disabled=1:
# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-4.18.0-552.1.1.el8.x86_64 root=UUID=ea93bb39-c789-4213-afad-b7d9333c3ddb ro no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop ipv6.disable=1
# ip address show dev lo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
Also checking /etc/hosts:
# grep localhost /etc/hosts
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
So now I run the minimal Ruby code to get the addresses:
# ruby -rsocket -e "puts Socket.getaddrinfo('localhost', nil, Socket::AF_UNSPEC, Socket::SOCK_STREAM).inspect"
[["AF_INET", 0, "127.0.0.1", "127.0.0.1", 2, 1, 6], ["AF_INET6", 0, "::1", "::1", 10, 1, 6]]
As you can see, it returns both IPv4 and IPv6.
I didn't check Redis, but it's possible that Redis only attempts to listen on IPv6 localhost (which doesn't work).
If I remove the ::1 entry from /etc/hosts I get only IPv4, which I suspect is a workaround:
# ruby -rsocket -e "puts Socket.getaddrinfo('localhost', nil, Socket::AF_UNSPEC, Socket::SOCK_STREAM).inspect"
[["AF_INET", 0, "127.0.0.1", "127.0.0.1", 2, 1, 6]]
Still, we've agreed that ipv6.disable=1 is not supported so my recommendation is to implement a check prior to upgrading.
Verified on 6.15.1 snap 2.0 Automation for this BZ passed successfully in snap 2.0. Switching to verified. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: Upgrading from Satellite 6.14.3 to 6.15 fails with a /usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] error. Version-Release number of selected component (if applicable): 6.14.3 to 6.15.0 How reproducible: Every time Steps to Reproduce: 1.On Satellite 6.14.3: subscription-manager repos --enable \ satellite-maintenance-6.15-for-rhel-8-x86_64-rpms 2.dnf module enable satellite-maintenance:el8 3.satellite-maintain upgrade list-versions 4.satellite-maintain upgrade check --target-version 6.15 5. satellite-maintain upgrade run --target-version 6.15 Actual results: Installation fails during step 5 - satellite-maintain upgrade check --target-version 6.15 Including output Package versions are locked. Continuing with unlock. 2024-04-26 12:27:20 [NOTICE] [configure] Starting system configuration. 2024-04-26 12:27:52 [NOTICE] [configure] 250 configuration steps out of 1659 steps complete. 2024-04-26 12:28:02 [NOTICE] [configure] 500 configuration steps out of 2560 steps complete. 2024-04-26 12:28:02 [NOTICE] [configure] 750 configuration steps out of 2560 steps complete. 2024-04-26 12:28:03 [NOTICE] [configure] 1000 configuration steps out of 2560 steps complete. 2024-04-26 12:28:04 [NOTICE] [configure] 1250 configuration steps out of 2566 steps complete. 2024-04-26 12:28:06 [NOTICE] [configure] 1500 configuration steps out of 2568 steps complete. 2024-04-26 12:28:17 [NOTICE] [configure] 1750 configuration steps out of 2571 steps complete. 2024-04-26 12:28:18 [NOTICE] [configure] 2000 configuration steps out of 2577 steps complete. 2024-04-26 12:28:19 [NOTICE] [configure] 2250 configuration steps out of 2577 steps complete. 2024-04-26 12:29:38 [ERROR ] [configure] '/usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0] 2024-04-26 12:29:38 [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] 2024-04-26 12:30:52 [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] 2024-04-26 12:30:52 [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] 2024-04-26 12:33:08 [NOTICE] [configure] 2500 configuration steps out of 2577 steps complete. 2024-04-26 12:33:41 [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 (2331 of 2577) 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 149.02 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! Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `new' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `connect_addrinfo' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:193:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each_with_index' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:305:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:385:in `establish_connection' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:117:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:344:in `with_reconnect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:116:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:417:in `ensure_connected' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:269:in `block in process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:356:in `logging' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:268:in `process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:162:in `call' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:564:in `block in del' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `block in synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:563:in `del' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block (2 levels) in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:25:in `with' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:478:in `failsafe' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:417:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache.rb:170:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:487:in `block in delete' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `block in instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:486:in `delete' /usr/share/foreman/app/services/topbar_sweeper.rb:18:in `block in expire_cache_all_users' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `each' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `expire_cache_all_users' /usr/share/foreman/config/initializers/foreman.rb:35:in `block in <top (required)>' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `instance_exec' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `block in make_lambda' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `catch' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `block in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:199:in `block in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `block in invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `each' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:105:in `run_callbacks' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/reloader.rb:88:in `prepare!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /usr/share/gems/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:367:in `require_environment!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:533:in `block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:abort_if_pending_migrations => db:load_config => environment (See full trace by running task with --trace) rake aborted! Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `new' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `connect_addrinfo' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:193:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each_with_index' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:305:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:385:in `establish_connection' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:117:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:344:in `with_reconnect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:116:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:417:in `ensure_connected' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:269:in `block in process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:356:in `logging' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:268:in `process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:162:in `call' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:564:in `block in del' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `block in synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:563:in `del' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block (2 levels) in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:25:in `with' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:478:in `failsafe' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:417:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache.rb:170:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:487:in `block in delete' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `block in instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:486:in `delete' /usr/share/foreman/app/services/topbar_sweeper.rb:18:in `block in expire_cache_all_users' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `each' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `expire_cache_all_users' /usr/share/foreman/config/initializers/foreman.rb:35:in `block in <top (required)>' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `instance_exec' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `block in make_lambda' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `catch' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `block in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:199:in `block in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `block in invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `each' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:105:in `run_callbacks' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/reloader.rb:88:in `prepare!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /usr/share/gems/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:367:in `require_environment!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:533:in `block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:abort_if_pending_migrations => db:load_config => environment (See full trace by running task with --trace) /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns rake aborted! Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `new' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `connect_addrinfo' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:193:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each_with_index' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:305:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:385:in `establish_connection' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:117:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:344:in `with_reconnect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:116:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:417:in `ensure_connected' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:269:in `block in process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:356:in `logging' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:268:in `process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:162:in `call' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:564:in `block in del' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `block in synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:563:in `del' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block (2 levels) in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:25:in `with' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:478:in `failsafe' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:417:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache.rb:170:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:487:in `block in delete' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `block in instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:486:in `delete' /usr/share/foreman/app/services/topbar_sweeper.rb:18:in `block in expire_cache_all_users' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `each' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `expire_cache_all_users' /usr/share/foreman/config/initializers/foreman.rb:35:in `block in <top (required)>' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `instance_exec' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `block in make_lambda' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `catch' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `block in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:199:in `block in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `block in invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `each' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:105:in `run_callbacks' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/reloader.rb:88:in `prepare!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /usr/share/gems/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:367:in `require_environment!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:533:in `block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:migrate => db:load_config => environment (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! Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2) /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:21:in `initialize' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `new' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:151:in `connect_addrinfo' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:193:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `each_with_index' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:191:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/connection/ruby.rb:305:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:385:in `establish_connection' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:117:in `block in connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:344:in `with_reconnect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:116:in `connect' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:417:in `ensure_connected' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:269:in `block in process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:356:in `logging' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:268:in `process' /usr/share/gems/gems/redis-4.5.1/lib/redis/client.rb:162:in `call' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:564:in `block in del' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `block in synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:72:in `synchronize' /usr/share/gems/gems/redis-4.5.1/lib/redis.rb:563:in `del' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block (2 levels) in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:25:in `with' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:418:in `block in delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:478:in `failsafe' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/redis_cache_store.rb:417:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache/strategy/local_cache.rb:170:in `delete_entry' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:487:in `block in delete' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `block in instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/notifications.rb:205:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:726:in `instrument' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/cache.rb:486:in `delete' /usr/share/foreman/app/services/topbar_sweeper.rb:18:in `block in expire_cache_all_users' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `each' /usr/share/foreman/app/services/topbar_sweeper.rb:17:in `expire_cache_all_users' /usr/share/foreman/config/initializers/foreman.rb:35:in `block in <top (required)>' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `instance_exec' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:427:in `block in make_lambda' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:604:in `block (2 levels) in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `catch' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:603:in `block in default_terminator' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:199:in `block in halting' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `block in invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `each' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:512:in `invoke_before' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/callbacks.rb:105:in `run_callbacks' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/reloader.rb:88:in `prepare!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application/finisher.rb:124:in `block in <module:Finisher>' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `instance_exec' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:32:in `run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `block in run' /usr/share/foreman/config/initializers/0_print_time_spent.rb:17:in `benchmark' /usr/share/foreman/config/initializers/0_print_time_spent.rb:45:in `run' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:61:in `block in run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/initializable.rb:60:in `run_initializers' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:391:in `initialize!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `public_send' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/railtie.rb:207:in `method_missing' /usr/share/foreman/config/environment.rb:5:in `<top (required)>' /usr/share/gems/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /usr/share/gems/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `block in require' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:299:in `load_dependency' /usr/share/gems/gems/activesupport-6.1.7.6/lib/active_support/dependencies.rb:332:in `require' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:367:in `require_environment!' /usr/share/gems/gems/railties-6.1.7.6/lib/rails/application.rb:533:in `block in run_tasks_blocks' /usr/share/gems/gems/rake-13.0.1/exe/rake:27:in `<top (required)>' Tasks: TOP => db:migrate => db:load_config => environment (See full trace by running task with --trace) Expected results: Satellite upgraded to version 6.15.0 Additional info: I have replicated this issue in two different environments, Sandbox and test environments. Same result.