Bootstrap script fails with invalid syntax while registering a RHEL 8 Sever with Red Hat Satellite 6

Solution Verified - Updated -


  • script is failing on Red Hat Enterprise Linux 8 with below error while registering system to Red Hat Satellite 6 Server.

    # ./ -l admin -p 'xxxx' -s -L 'Location' -o 'Organization' -a ActivationKey -g HostGroup
     File "/root/", line 50
       print "[%sERROR%s], [%s], EXITING: [%s] failed to execute properly." %   (error_colors['FAIL'], error_colors['ENDC'],'%Y-%m-%d %H:%M:%S'), msg)
    SyntaxError: invalid syntax


  • Red Hat Satellite 6.5 or higher
  • Red Hat Enterprise Linux 8

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