Issues to update my Centos7

Issues related to applications and software problems
azizgstest
Posts: 9
Joined: 2017/05/22 19:03:39

Issues to update my Centos7

Postby azizgstest » 2018/01/31 20:33:41

Hi All,

I'm experiencing an issue when using YUM in my CentOS 7, it always fails with the following errors, could anyone help on this :

Code: Select all

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 370, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 234, in main
    (result, resultmsgs) = base.buildTransaction()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1197, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 902, in resolveDeps
    for po, dep in self._checkFileRequires():
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1193, in _checkFileRequires
    self.installedFileProviders = self.rpmdb.fileRequiresData()
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 994, in fileRequiresData
    rpmdbv = self.simpleVersion(main_only=True)[0]
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1228, in simpleVersion
    if 'checksum_type' in ydbi and 'checksum_data' in ydbi:
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1943, in __contains__
    x = self.get(attr)
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1973, in get
    res = self._read(attr)
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 1879, in _read
    info = misc.stat_f(fn, ignore_EACCES=True)
  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 963, in stat_f
    return os.stat(filename)
OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/a/ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686/checksum_type'


Thank you in advance.

User avatar
TrevorH
Forum Moderator
Posts: 22591
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues to update my Centos7

Postby TrevorH » 2018/01/31 20:43:01

OSError: [Errno 5] Input/output error: '/var/lib/yum/yumdb/a/ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686/checksum_type'


That looks suspicious. I'd be thinking about rebooting and fscking your filesystem where /var/lib/yum resides.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

azizgstest
Posts: 9
Joined: 2017/05/22 19:03:39

Re: Issues to update my Centos7

Postby azizgstest » 2018/02/01 18:24:05

I tried the following command : touch /forcefsck and rebooted my PC but nothing changed after reboot, yum update still gives the same error.

Any ideas why my centos is behaving like this ?

User avatar
TrevorH
Forum Moderator
Posts: 22591
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues to update my Centos7

Postby TrevorH » 2018/02/01 18:50:44

Does it report the same i/o error on the same file? Did you try moving that file to a new name (or more drastically, deleting it)?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

azizgstest
Posts: 9
Joined: 2017/05/22 19:03:39

Re: Issues to update my Centos7

Postby azizgstest » 2018/02/01 20:40:19

Yes it's the same I/O error.. and I cannot delete the file/folder, here is what I tried.

Code: Select all

[root@localhost a]# ls -l | grep "pulseaudio"
ls: cannot access ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686: Input/output error
drwxr-xr-x. 2 root root  186 Sep 21 21:46 3945a5c63adda34d076a51709acba67484fded52-alsa-plugins-pulseaudio-1.1.1-1.el7-x86_64
d?????????? ? ?    ?       ?            ? ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
[root@localhost a]# rm -rf ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
rm: cannot remove ‘ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686’: Input/output error
[root@localhost a]# chmod 777 ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
chmod: cannot access ‘ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686’: Input/output error
[root@localhost a]#

User avatar
TrevorH
Forum Moderator
Posts: 22591
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues to update my Centos7

Postby TrevorH » 2018/02/01 22:41:22

I'm not sure that /forcefsck works on CentOS 7 with systemd. The "new" way is to interrupt the boot at the grub menu, hit 'e' to edit and find the linux16/linuxefi line for the current kernel, scroll to the end of it and append fsck.mode=force then hit ctrl-x to continue booting.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

desertcat
Posts: 338
Joined: 2014/08/07 02:17:29

Re: Issues to update my Centos7

Postby desertcat » 2018/02/01 22:44:04

azizgstest wrote:Yes it's the same I/O error.. and I cannot delete the file/folder, here is what I tried.

Code: Select all

[root@localhost a]# ls -l | grep "pulseaudio"
ls: cannot access ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686: Input/output error
drwxr-xr-x. 2 root root  186 Sep 21 21:46 3945a5c63adda34d076a51709acba67484fded52-alsa-plugins-pulseaudio-1.1.1-1.el7-x86_64
d?????????? ? ?    ?       ?            ? ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
[root@localhost a]# rm -rf ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
rm: cannot remove ‘ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686’: Input/output error
[root@localhost a]# chmod 777 ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686
chmod: cannot access ‘ffd5186ac33e8cd49d45d5e903d744b3f87cebe7-alsa-plugins-pulseaudio-1.1.1-1.el7-i686’: Input/output error
[root@localhost a]#


Did you try yum remove package_name?

User avatar
TrevorH
Forum Moderator
Posts: 22591
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues to update my Centos7

Postby TrevorH » 2018/02/01 23:05:11

His filesystem is clearly corrupt. Look at the output from the commands that were run. Look at the owner and group info in the file listing.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

azizgstest
Posts: 9
Joined: 2017/05/22 19:03:39

Re: Issues to update my Centos7

Postby azizgstest » 2018/02/02 21:58:36

Hi all,

I've tried that but unfortunately it didn't work, it doesn't even check the file system after reboot. Any other ideas ?

Thanks

User avatar
TrevorH
Forum Moderator
Posts: 22591
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Issues to update my Centos7

Postby TrevorH » 2018/02/02 23:05:49

You tried fsck.mode=force?

Oh, wait, I bet you use xfs since that's the default filesystem. That doesn't have an fsck.xfs file to automatically run fsck so you have to do it manually. Boot the install media in rescue mode (it's an option off the troubleshooting menu that you see when you first boot up). Tell it not to mount your system filesystems when it asks and then drop to a command prompt and run xfs_repair from there - obviously giving it the device name that the filesystem resides on.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke