Initial satellite-sync on Red Hat Satellite Server is failing with "TypeError: 'NoneType' object is unsubscriptable"

Solution Verified - Updated -

Issue

  • Initial satellite-sync on Red Hat Satellite Server is failing with TypeError: 'NoneType' object is unsubscriptable.
  • Satellite-sync on newley built Satellite Server if failing with below mentioned traceback:
Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 139, in main
    return satsync.Runner().main()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 229, in main
    ret = method()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 330, in _step_rpms
    self._packages_report = self.syncer.download_rpms()
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1061, in download_rpms
    self._fetch_packages(channel, missing_fs_packages)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1747, in _fetch_packages
    total_size = total_size+package['package_size']
TypeError: 'NoneType' object is unsubscriptable

Environment

  • Red Hat Satellite 5.x
  • Satellite-sync

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