Satellite-installer fails on Red Hat Capsule server with ModuleNotFoundError: No module named 'django'

Solution Verified - Updated -

Issue

  • Running satellite-installer on a Red Hat Capsule server fails with the following error:

    Error 1: Puppet Exec resource 'pulpcore-manager migrate --noinput' failed. Logs:
     /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --noinput]
       Adding autorequire relationship with File[/var/lib/pulp]
       Adding autorequire relationship with User[pulp]
       Starting to evaluate the resource (1354 of 1531)
       Evaluated in 0.14 seconds
     Exec[pulpcore-manager migrate --noinput](provider=posix)
       Executing 'pulpcore-manager migrate --noinput'
     /Stage[main]/Pulpcore::Database/Pulpcore::Admin[migrate --noinput]/Exec[pulpcore-manager migrate --no. 
    input]/returns
       Traceback (most recent call last):
         File "/usr/bin/pulpcore-manager", line 33, in <module>
           sys.exit(load_entry_point('pulpcore==3.49.39', 'console_scripts', 'pulpcore-manager')())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
         File "/usr/lib/python3.11/site-packages/pulpcore/app/manage.py", line 9, in manage
           from django.core.management import execute_from_command_line
       ModuleNotFoundError: No module named 'django'
       change from 'notrun' to ['0'] failed: 'pulpcore-manager migrate --noinput' returned 1 instead of one of [0]
    

Environment

  • Red Hat Satellite 6
  • Red Hat Capsule 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content