Koozali.org: home of the SME Server

After upgrade restore to new machine. Yum fails.

Offline Drifting

  • *****
  • 431
  • +0/-0
After upgrade restore to new machine. Yum fails.
« on: February 05, 2016, 03:13:37 PM »
I have no idea what has caused this, wonder what <module> is ?

Any ideas?

yum update
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 43, in <module>
    import logging
  File "/usr/lib64/python2.6/logging/__init__.py", line 43, in <module>
    import threading
EOFError: EOF read where object expected
Infamy, Infamy, they all have it in for me!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #1 on: February 05, 2016, 03:30:12 PM »
What about telling us what you did and how?

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #2 on: February 05, 2016, 03:42:35 PM »
Ok, this was a clean install of the latest version 9

Did a restore from a  ersion 8 backup I had. Have not installed anything else yet, but thought I should update it.

So hence the yum update, and the error.

Infamy, Infamy, they all have it in for me!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #3 on: February 05, 2016, 03:45:52 PM »
Delete  yum_repository db (or just rename it) and call  initialize-default-database action (can't be verbose with phone) and try again

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #4 on: February 06, 2016, 12:17:15 PM »
Hi,

I assume this is what you were telling me to do?

[root@acc ~]# rm -f /var/lib/rpm/__db*
[root@acc ~]# rpm --rebuilddb
[root@acc ~]#
[root@acc ~]# yum clean all
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 43, in <module>
    import logging
  File "/usr/lib64/python2.6/logging/__init__.py", line 43, in <module>
    import threading
EOFError: EOF read where object expected

Still has a problem? Any further recommendations?

Paul
Infamy, Infamy, they all have it in for me!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #5 on: February 06, 2016, 12:28:24 PM »
no
Code: [Select]
mv /home/e-smith/db/yum_repositories /home/e-smith/db/yum_repositories.old
/etc/e-smith/event/actions/initialize-default-databases
signal-event yum-modify
yum --noplugins --enablerepo=* clean all
yum --noplugins update

you'd tell us all the real story of the new server since it seems to me you having issue with yum/python, so tell us exactly what you did and how you did it

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #6 on: February 07, 2016, 02:08:14 PM »
If you mean did I try to install something? Yes, I was trying to install PHPKI, however I got the same message, and it did not install. Nothing else and I mean NOTHING else was installed, and this clean, and then I restored a previous backup. Why you would think I would hide something when I was trying to get help?

Followed you instructions :-

Got up to here and this is the result

./initialize-default-databases
Migrating existing database spamassassin
Migrating existing database networks
Migrating existing database hosts
Migrating existing database mailpatterns
Migrating existing database domains
Creating database yum_repositories and setting defaults
Creating database yum_updates and setting defaults
Creating database yum_available and setting defaults
Migrating existing database backups
Creating database yum_installed and setting defaults
Migrating existing database configuration
Migrating existing database accounts
[root@accent1 actions]# signal-event yum-modify
[root@accent1 actions]# yum --noplugins --enablerepo=* clean all
Traceback (most recent call last):
  File "/usr/bin/yum", line 4, in <module>
    import yum
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 43, in <module>
    import logging
  File "/usr/lib64/python2.6/logging/__init__.py", line 43, in <module>
    import threading
EOFError: EOF read where object expected


Infamy, Infamy, they all have it in for me!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #7 on: February 07, 2016, 02:21:02 PM »
ok.. something is definitely broken on your server and this should not happen

please, open a bug in bugzilla asap, reporting all the needed info and linking to this topic

once done, please report back here the bug reference

thank you

Offline Drifting

  • *****
  • 431
  • +0/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #8 on: February 07, 2016, 03:43:02 PM »
ok.. something is definitely broken on your server and this should not happen

please, open a bug in bugzilla asap, reporting all the needed info and linking to this topic

once done, please report back here the bug reference

thank you

Hopefully I did it right? Bug 9234

Paul
Infamy, Infamy, they all have it in for me!

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: After upgrade restore to new machine. Yum fails.
« Reply #9 on: February 07, 2016, 03:50:41 PM »
You did it :-)
Thank you again