Katello 3.18 fails to install -"pulpcore-manager migrate --noinput' returned 1 instead of one of [0]"

Problem:

021-01-22 17:39:15 [NOTICE] [pre_migrations] Executing hooks in group pre_migrations
2021-01-22 17:39:15 [NOTICE] [pre_migrations] All hooks in group pre_migrations finished
2021-01-22 17:39:15 [NOTICE] [boot] Executing hooks in group boot
2021-01-22 17:39:15 [NOTICE] [boot] All hooks in group boot finished
2021-01-22 17:39:15 [NOTICE] [init] Executing hooks in group init
2021-01-22 17:39:15 [NOTICE] [init] All hooks in group init finished
2021-01-22 17:39:15 [NOTICE] [root] Loading default values from puppet modules...
2021-01-22 17:39:18 [NOTICE] [root] ... finished
2021-01-22 17:39:18 [NOTICE] [pre_values] Executing hooks in group pre_values
2021-01-22 17:39:18 [NOTICE] [pre_values] All hooks in group pre_values finished
2021-01-22 17:39:20 [NOTICE] [pre_validations] Executing hooks in group pre_validations
2021-01-22 17:39:21 [NOTICE] [pre_validations] All hooks in group pre_validations finished
2021-01-22 17:39:21 [NOTICE] [root] Running validation checks
2021-01-22 17:39:21 [NOTICE] [pre_commit] Executing hooks in group pre_commit
2021-01-22 17:39:23 [NOTICE] [pre_commit] All hooks in group pre_commit finished
2021-01-22 17:39:23 [NOTICE] [pre] Executing hooks in group pre
2021-01-22 17:40:16 [NOTICE] [pre] All hooks in group pre finished
2021-01-22 17:40:16 [NOTICE] [configure] Starting system configuration.
  The total number of configuration tasks may increase during the run.
  Observe logs or specify --verbose-log-level to see individual configuration tasks.
2021-01-22 17:40:27 [NOTICE] [configure] 100 out of 2219 done.
2021-01-22 17:40:27 [NOTICE] [configure] 200 out of 2219 done.
2021-01-22 17:40:27 [NOTICE] [configure] 300 out of 2219 done.
2021-01-22 17:40:30 [NOTICE] [configure] 400 out of 2219 done.
2021-01-22 17:40:30 [NOTICE] [configure] 500 out of 2219 done.
2021-01-22 17:40:32 [NOTICE] [configure] 600 out of 2219 done.
2021-01-22 17:40:32 [NOTICE] [configure] 700 out of 2221 done.
2021-01-22 17:40:32 [NOTICE] [configure] 800 out of 2221 done.
2021-01-22 17:40:33 [NOTICE] [configure] 900 out of 2223 done.
2021-01-22 17:40:34 [NOTICE] [configure] 1000 out of 2224 done.
2021-01-22 17:40:34 [NOTICE] [configure] 1100 out of 2225 done.
2021-01-22 17:40:59 [NOTICE] [configure] 1200 out of 2227 done.
2021-01-22 17:40:59 [NOTICE] [configure] 1300 out of 2231 done.
2021-01-22 17:41:00 [NOTICE] [configure] 1400 out of 2231 done.
2021-01-22 17:41:07 [NOTICE] [configure] 1500 out of 2232 done.
2021-01-22 17:41:07 [NOTICE] [configure] 1600 out of 2233 done.
2021-01-22 17:41:32 [NOTICE] [configure] 1700 out of 2233 done.
2021-01-22 17:41:32 [NOTICE] [configure] 1800 out of 2233 done.
2021-01-22 17:41:32 [NOTICE] [configure] 1900 out of 2233 done.
2021-01-22 17:41:32 [NOTICE] [configure] 2000 out of 2233 done.
2021-01-22 17:41:33 [NOTICE] [configure] 2100 out of 2233 done.
2021-01-22 17:41:34 [ERROR ] [configure] 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-01-22 17:41:34 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]/returns: change from 'notrun' to ['0'] failed: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-01-22 17:41:35 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]: Failed to call refresh: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-01-22 17:41:35 [ERROR ] [configure] /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
2021-01-22 17:41:35 [NOTICE] [configure] 2200 out of 2233 done.
2021-01-22 17:41:38 [NOTICE] [configure] System configuration has finished.
2021-01-22 17:41:38 [NOTICE] [post] Executing hooks in group post

Expected outcome:
Katello installed and functioning

Foreman and Proxy versions:
Katello 3.18

Foreman and Proxy plugin versions:
Katello 3.18

Distribution and version:
Katello 3.18

Other relevant data:

#!/bin/bash

foreman-installer --scenario katello \
        --enable-foreman-compute-libvirt \
        --enable-foreman-compute-openstack \
        --enable-foreman-compute-vmware \
        --enable-foreman-plugin-ansible \
        --enable-foreman-plugin-remote-execution \
        --enable-foreman-cli

Hello!

What happens if you try running:

PULP_SETTINGS='/etc/pulp/settings.py'  pulpcore-manager migrate

by hand? do you see any errors. If not, try re-running the installer again

Actually I’ll close this ticket. I realized that this is not a clean CentOS7 install - i.e several other apps (Docker, NextCloud, certbot) were previously installed and removed from it. In my experience Foreman/Katello MUST be installed only on absolutely “clean”, freshly installed CentOS7.
Thanks!

1 Like

I had this error installing on Rocky 8.4 and per the error log, I needed to install this package:

dnf install python3-markuppy

1 Like

Can someone please mark this answer as the solution.