Skip to content

Instantly share code, notes, and snippets.

@asbarron
Last active September 12, 2016 17:24
Show Gist options
  • Save asbarron/b043d946746c8bca7d684c801412868a to your computer and use it in GitHub Desktop.
Save asbarron/b043d946746c8bca7d684c801412868a to your computer and use it in GitHub Desktop.
Error adding local repo to channel in spacewalk
[root@localhost ~]# spacewalk-repo-sync --channel rhel-7-server-rhceph-2-mon-rpms --type yum
======================================
| Channel: rhel-7-server-rhceph-2-mon-rpms
======================================
Repo URL: http://localhost/rhel-7-server-rhceph-2-mon-rpms/
ERROR: ('ERROR: relation "rhncontentssl" does not exist\nLINE 3: from rhncontentssl\n ^\n', <connection object at 0x2929890; dsn: 'password=xxxxx dbname=rhnschema user=rhnuser', closed: 0>, '\n select k1.key as ca_cert, k2.key as client_cert, k3.key as client_key\n from rhncontentssl\n join rhncryptokey k1\n on rhncontentssl.ssl_ca_cert_id = k1.id\n left outer join rhncryptokey k2\n on rhncontentssl.ssl_client_cert_id = k2.id\n left outer join rhncryptokey k3\n on rhncontentssl.ssl_client_key_id = k3.id\n where rhncontentssl.content_source_id = %(repo_id)s\n or rhncontentssl.channel_family_id = %(channel_family_id)s\n ')
Traceback (most recent call last):
File "/usr/bin/spacewalk-repo-sync", line 219, in <module>
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-repo-sync", line 212, in main
sync.sync()
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/reposync.py", line 226, in sync
self.update_date()
File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/reposync.py", line 236, in update_date
h.execute(channel=self.channel['label'])
File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 151, in execute
return self._execute_wrapper(self._execute, *p, **kw)
File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 300, in _execute_wrapper
raise sql_base.SQLSchemaError(error_code, e.pgerror, e)
spacewalk.server.rhnSQL.sql_base.SQLSchemaError: (99999, 'ERROR: current transaction is aborted, commands ignored until end of transaction block', '', InternalError('current transaction is aborted, commands ignored until end of transaction block\n',))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment