<div dir="ltr"><div><div><div>Hi All,<br><br></div>I am in the process of migrating my 
Spacewalk Server from a VM to a spare physical server we had due to the 
disk space it had grown to occupy (SAN space costing what it does...) 
and I've run into what seems to be a bit of a blocker.<br><br></div><div>Both new and old boxes are the same, CentOS 7.1 x86_64 with a Postgres DB, running Spacewalk 2.4. The old server was updated from Spacewalk 2.3.<br></div><div><br></div>I've dumped the DB using the process outlined here: <a href="https://fedorahosted.org/spacewalk/wiki/DatabaseMigrations" target="_blank">https://fedorahosted.org/spacewalk/wiki/DatabaseMigrations</a><br></div>and
 have re-imported it successfully several times into the new server, but
 each time I'm getting the following (or similar) error when trying to 
re-sync the repositories.<br><div><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">2015-11-03 11:19:36,828 [Thread-69] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Traceback (most recent call last):<br>  File "/usr/bin/spacewalk-repo-sync", line 218, in <module><br>    sys.exit(abs(main() or 0))<br>  File "/usr/bin/spacewalk-repo-sync", line 210, in main<br>    latest=options.latest)<br>  File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/reposync.py", line 174, in __init__<br>    self.repo_plugin = self.load_plugin(repo_type)<br>  File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/reposync.py", line 241, in load_plugin<br>    mod = __import__('spacewalk.satellite_tools.repo_plugins', globals(), locals(), [name])<br>  File "/usr/lib/python2.7/site-packages/spacewalk/satellite_tools/repo_plugins/__init__.py", line 18, in <module><br>    from spacewalk.server import rhnPackageUpload<br>  File "/usr/lib/python2.7/site-packages/spacewalk/server/rhnPackageUpload.py", line 20, in <module><br>    from spacewalk.common import rhn_mpm, rhn_deb, rhn_pkg<br>  File "/usr/lib/python2.7/site-packages/spacewalk/common/rhn_deb.py", line 23, in <module><br>    from debian import debfile<br>  File "/usr/lib/python2.7/site-packages/debian/debfile.py", line 27, in <module><br>    from debian.deb822 import Deb822<br>  File "/usr/lib/python2.7/site-packages/debian/deb822.py", line 1481, in <module><br>    @six.add_metaclass(_ClassInitMeta)<br>AttributeError: 'module' object has no attribute 'add_metaclass'<br><br>2015-11-03 11:19:36,831 [DefaultQuartzScheduler_Worker-1] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Executing a task threw an exception: org.quartz.JobExecutionException<br>2015-11-03 11:19:36,831 [DefaultQuartzScheduler_Worker-1] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Message: Command '[/usr/bin/spacewalk-repo-sync, --channel, centos6x, --type, yum]' exited with error code 1<br>2015-11-03 11:19:36,832 [DefaultQuartzScheduler_Worker-1] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Cause: null<br>2015-11-03 11:19:36,832 [DefaultQuartzScheduler_Worker-1] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask  - Stack trace:org.quartz.JobExecutionException: Command '[/usr/bin/spacewalk-repo-sync, --channel, centos6x, --type, yum]' exited with error code 1<br>    at com.redhat.rhn.taskomatic.task.RhnJavaJob.executeExtCmd(RhnJavaJob.java:112)<br>    at com.redhat.rhn.taskomatic.task.RepoSyncTask.execute(RepoSyncTask.java:74)<br>    at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:89)<br>    at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:170)<br>    at org.quartz.core.JobRunShell.run(JobRunShell.java:216)<br>    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)<br></blockquote><br></div><div><br></div><div>I
 wanted to download fresh copies of the RPMs since I believe the old 
instance became corrupted when the VM started swapping and ran out of 
RAM during a repo-sync.<br><br></div><div>If anyone has any ideas or 
suggestions, I would welcome them. I can also provide any further 
information if necessary regarding configuration.<br><br></div>Best,<br><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Pat Blair<br>Sr. Unix Administrator<br>Peapod, LLC<br><a href="mailto:pblair@peapod.com" style="color:rgb(17,85,204)" target="_blank">pblair@peapod.com</a><br></div></div></div></div></div></div></div></div></div>
</div>

<br>
<div>This email and any attachments may contain information that is proprietary,</div><div>confidential and/or privileged and for the sole use of the intended recipients(s)</div><div>only.</div><div>If you are not the intended recipient, please notify the sender by return</div><div>email and delete all copies of this email and any attachments. Ahold and/or its</div><div>subsidiaries shall neither be liable for the inaccurate or incomplete transmission</div><div>of the information contained in this email or any attachments, nor for any delay</div><div>in its receipt. To the extent this email is intended to create any legal obligation,</div><div>the obligation shall bind only the contracting entity and not any other entity within</div><div>the Ahold Group.</div>
<br>
<div>This email and any attachments may contain information that is proprietary,</div><div>confidential and/or privileged and for the sole use of the intended recipients(s)</div><div>only.</div><div>If you are not the intended recipient, please notify the sender by return</div><div>email and delete all copies of this email and any attachments. Ahold and/or its</div><div>subsidiaries shall neither be liable for the inaccurate or incomplete transmission</div><div>of the information contained in this email or any attachments, nor for any delay</div><div>in its receipt. To the extent this email is intended to create any legal obligation,</div><div>the obligation shall bind only the contracting entity and not any other entity within</div><div>the Ahold Group.</div>