Upgrade to Foreman 2.3/ Katello 3.18 Failed db:migrate

Problem:
I upgraded the packages for Foreman 2.2 and Katello 3.17 to Foreman 2.3 and Katello 3.18 and ran the installer.

At first I got these errors after which I restarted the Foreman server
First run:

2021-01-25 09:14:56 [NOTICE] [configure] 1100 out of 2323 done.
2021-01-25 09:15:01 [ERROR ] [configure] /Stage[main]/Pulpcore::Static/Pulpcore::Admin[collectstatic --noinput]/Exec[pulpcore-manager collectstatic --noinput]: Failed to call refresh: ‘pulpcore-manager collectstatic --noinput’ returned 1 instead of one of [0]
2021-01-25 09:15:01 [ERROR ] [configure] /Stage[main]/Pulpcore::Static/Pulpcore::Admin[collectstatic --noinput]/Exec[pulpcore-manager collectstatic --noinput]: ‘pulpcore-manager collectstatic --noinput’ returned 1 instead of one of [0]
2021-01-25 09:15:11 [NOTICE] [configure] 1200 out of 2325 done.
2021-01-25 09:15:12 [NOTICE] [configure] 1400 out of 2329 done.
2021-01-25 09:15:41 [NOTICE] [configure] 1500 out of 2329 done.
2021-01-25 09:15:41 [NOTICE] [configure] 1600 out of 2331 done.
2021-01-25 09:17:31 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2021-01-25 09:17:31 [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]
2021-01-25 09:18:40 [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]
2021-01-25 09:18:40 [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]
2021-01-25 09:19:09 [NOTICE] [configure] 1700 out of 2331 done.
2021-01-25 09:19:10 [NOTICE] [configure] 1800 out of 2331 done.
The I ran the installer again and got this:
2021-01-25 09:23:15 [NOTICE] [configure] 1500 out of 2317 done.
2021-01-25 09:23:15 [NOTICE] [configure] 1600 out of 2319 done.
2021-01-25 09:24:12 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2021-01-25 09:24:12 [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]
2021-01-25 09:24:41 [NOTICE] [configure] 1700 out of 2319 done.
2021-01-25 09:24:41 [NOTICE] [configure] 1800 out of 2319 done.
2021-01-25 09:24:41 [NOTICE] [configure] 1900 out of 2319 done.
2021-01-25 09:24:41 [NOTICE] [configure] 2000 out of 2319 done.
2021-01-25 09:24:41 [NOTICE] [configure] 2100 out of 2319 done.
2021-01-25 09:24:42 [NOTICE] [configure] 2200 out of 2319 done.
2021-01-25 09:24:58 [ERROR ] [configure] Systemd start for pulpcore-api.socket failed!
2021-01-25 09:24:58 [ERROR ] [configure] journalctl log for pulpcore-api.socket:
2021-01-25 09:24:58 [ERROR ] [configure] – Logs begin at Fri 2021-01-22 13:56:49 UTC, end at Mon 2021-01-25 09:24:58 UTC. –
2021-01-25 09:24:58 [ERROR ] [configure] Jan 25 09:24:58 gaewp-fmsl.striata.com systemd[1]: Socket service pulpcore-api.service already active, refusing.
2021-01-25 09:24:58 [ERROR ] [configure] Jan 25 09:24:58 gaewp-fmsl.striata.com systemd[1]: Failed to listen on Pulp API Server socket.
2021-01-25 09:24:58 [ERROR ] [configure] /Stage[main]/Pulpcore::Service/Systemd::Unit_file[pulpcore-api.socket]/Service[pulpcore-api.socket]/ensure: change from ‘stopped’ to ‘running’ failed: Systemd start for pulpcore-api.socket failed!
2021-01-25 09:24:58 [ERROR ] [configure] journalctl log for pulpcore-api.socket:
2021-01-25 09:24:58 [ERROR ] [configure] – Logs begin at Fri 2021-01-22 13:56:49 UTC, end at Mon 2021-01-25 09:24:58 UTC. –
2021-01-25 09:24:58 [ERROR ] [configure] Jan 25 09:24:58 gaewp-fmsl.striata.com systemd[1]: Socket service pulpcore-api.service already active, refusing.
2021-01-25 09:24:58 [ERROR ] [configure] Jan 25 09:24:58 gaewp-fmsl.striata.com systemd[1]: Failed to listen on Pulp API Server socket.
2021-01-25 09:25:00 [ERROR ] [configure] Systemd start for pulpcore-content.socket failed!
2021-01-25 09:25:00 [ERROR ] [configure] journalctl log for pulpcore-content.socket:
2021-01-25 09:25:00 [ERROR ] [configure] – Logs begin at Fri 2021-01-22 13:56:49 UTC, end at Mon 2021-01-25 09:25:00 UTC. –
2021-01-25 09:25:00 [ERROR ] [configure] Jan 25 09:25:00 gaewp-fmsl.striata.com systemd[1]: Socket service pulpcore-content.service already active, refusing.
2021-01-25 09:25:00 [ERROR ] [configure] Jan 25 09:25:00 gaewp-fmsl.striata.com systemd[1]: Failed to listen on Pulp Content App socket.
2021-01-25 09:25:00 [ERROR ] [configure] /Stage[main]/Pulpcore::Service/Systemd::Unit_file[pulpcore-content.socket]/Service[pulpcore-content.socket]/ensure: change from ‘stopped’ to ‘running’ failed: Systemd start for pulpcore-content.socket failed!
2021-01-25 09:25:00 [ERROR ] [configure] journalctl log for pulpcore-content.socket:
2021-01-25 09:25:00 [ERROR ] [configure] – Logs begin at Fri 2021-01-22 13:56:49 UTC, end at Mon 2021-01-25 09:25:00 UTC. –
2021-01-25 09:25:00 [ERROR ] [configure] Jan 25 09:25:00 gaewp-fmsl.striata.com systemd[1]: Socket service pulpcore-content.service already active, refusing.
2021-01-25 09:25:00 [ERROR ] [configure] Jan 25 09:25:00 gaewp-fmsl.striata.com systemd[1]: Failed to listen on Pulp Content App socket.
2021-01-25 09:25:03 [NOTICE] [configure] 2300 out of 2319 done.
2021-01-25 09:25:08 [NOTICE] [configure] System configuration has finished.
Then I rebooted and ran the installer again. Now I just get:
2021-01-25 09:35:35 [NOTICE] [configure] 1500 out of 2317 done.
2021-01-25 09:35:35 [NOTICE] [configure] 1600 out of 2319 done.
2021-01-25 09:36:06 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2021-01-25 09:36:06 [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]
2021-01-25 09:36:21 [NOTICE] [configure] 1700 out of 2319 done.
2021-01-25 09:36:21 [NOTICE] [configure] 1800 out of 2319 done.
2021-01-25 09:36:22 [NOTICE] [configure] 1900 out of 2319 done.
When I run /usr/sbin/foreman-rake db:migrate
I get an error with that:
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
** Execute db:load_config
** Invoke plugin:refresh_migrations (first_time)
** Invoke environment
** Execute plugin:refresh_migrations
** Execute db:migrate
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

Validation failed: Lookup values is invalid

Caused by:
ActiveRecord::RecordInvalid: Validation failed: Lookup values is invalid
Tasks: TOP => db:migrate
== 20201202110213 UpdatePuppetPortParamType: migrating ========================

Expected outcome:
Upgrade from 2.2 to 2.3
Foreman and Proxy versions:
2.3
Foreman and Proxy plugin versions:

Distribution and version:
Centos 7