Errors updating system software

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Hello,
if I try to update using /scripts/upcp , I have an error:
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package bind.x86_64 30:9.3.6-16.P1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
bind x86_64 30:9.3.6-16.P1.el5 base 988 k

Transaction Summary
================================================================================
Install 0 Package(s)
Upgrade 1 Package(s)

Total download size: 988 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

Updating : bind 1/2Error unpacking rpm package 30:bind-9.3.6-16.P1.el5.x86_64

warning: /etc/rc.d/init.d/named saved as /etc/rc.d/init.d/named.rpmsave
warning: /etc/sysconfig/named created as /etc/sysconfig/named.rpmnew
error: unpacking of archive failed on file /var/named/slaves: cpio: mkdir

Failed:
bind.x86_64 30:9.3.6-16.P1.el5

Complete!
Can you please help?
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
I'have just tried
yum install yum-utils
yum clean all
/usr/sbin/yum-complete-transaction --cleanup-only
yum-complete-transaction
but with no luck
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please try the following:

Code:
mv /var/lib/rpm/__db* /root
rpm --rebuilddb
yum clean all
If that does not work, please run these commands and provide the output for each one:

Code:
df -kh
df -i
ls -lah /var/named/slaves
touch testfile /var
The first two (df -kh and df -i) are to check disk space and disk inodes. The third is to see if you have a folder named /var/named/slaves or someone has mistakenly created a file by that name instead (it must be a folder not a file). The last command is to see if /var is read-only and not allowing components to be written to it.
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Hello,
the first solution won't work;

here is the output asked:
[email protected] [~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/vzfs 40G 11G 30G 26% /
/dev/simfs 40G 11G 30G 26% /tmp
/dev/simfs 40G 11G 30G 26% /var/tmp
none 512M 4.0K 512M 1% /dev
[email protected] [~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 193948915 354426 193594489 1% /
/dev/simfs 193948915 354426 193594489 1% /tmp
/dev/simfs 193948915 354426 193594489 1% /var/tmp
none 131072 96 130976 1% /dev
[email protected] [~]# ls -lah /var/named/slaves
/bin/ls: /var/named/slaves: No such file or directory
[email protected] [~]# touch testfile /var
[email protected] [~]#
[email protected] [~]#
Thank you very much for your support
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please try the following (and post the output of the first command):

Code:
ls -ld /var/named
cd /var/named
mkdir slaves
chown -R named:named slaves
Please re-try running "yum update" at that point to see the results.
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Here is the output of the previuos commands.
[email protected] [~]# ls -ld /var/named
drwxr-x--- 6 root named 4096 Feb 22 2011 /var/named/
[email protected] [~]# cd /var/named
[email protected] [/var/named]# mkdir slaves
mkdir: cannot create directory `slaves': No such file or directory
[email protected] [/var/named]# chown -R named:named slaves
chown: cannot access `slaves': No such file or directory
[email protected] [/var/named]#
If I try to update, using /scripts/upcp I sitll have the error.

Thanks
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Yes, you have the same error as it cannot create the directory as it indicated. Please provide the contents in /var/named:

Code:
ls -lah /var/named
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
here it is :
[email protected] [~]# ls -lah /var/named
total 103M
drwxr-x--- 6 root named 4.0K Feb 22 2011 ./
drwxr-xr-x 24 root root 4.0K Sep 13 19:32 ../
-rw-r----- 1 root named 827 Oct 6 2008 artimarzialiitalia.it.db.bak
-rw-r----- 1 root named 705 Oct 1 2010 athenalucca.com.db
-rw-r----- 1 root named 688 Oct 6 2008 boidi.it.db
-rw-r----- 1 root named 684 Oct 5 2008 boidi.it.db.bak
drwx------ 2 root root 4.0K Sep 3 17:11 cache/
-rw-r----- 1 root named 846 Oct 6 2008 canelupocecoslovacco.net.db
-rw-r----- 1 root named 842 Oct 5 2008 canelupocecoslovacco.net.db.bak
-rw-r----- 1 root named 741 Jun 4 2010 centroriabilita.com.db
drwxr-x--- 5 root named 124 Sep 3 17:11 chroot/
-rw-r----- 1 root named 103M Dec 13 2008 core.11973
drwxrwx--- 2 named named 4.0K Feb 22 2011 data/
-rw-r----- 1 root named 775 Oct 6 2008 fclefbasses.com.db
-rw-r----- 1 root named 771 Oct 6 2008 fclefbasses.com.db.bak
-rw-r----- 1 root named 696 Jan 27 2010 fclefstore.com.db
-rw-r----- 1 root named 786 Aug 5 2010 francescopellegrini.info.db
-rw-r----- 1 root named 935 Apr 1 2009 idgrafica.com.db
-rw-r----- 1 root named 673 Oct 3 2008 idgrafica.com.db.bak
-rw-r----- 1 root named 678 Nov 24 2009 lavisona.com.db
-rw-r----- 1 root named 723 Jun 19 2009 leantichecase.com.db
-rw-r----- 1 root named 732 Oct 6 2008 lekamar.com.db
-rw-r----- 1 root named 728 Oct 6 2008 lekamar.com.db.bak
-rw-r----- 1 root named 198 Feb 22 2011 localdomain.zone
-rw-r----- 1 root named 195 Feb 22 2011 localhost.zone
-rw-r----- 1 root named 427 Feb 22 2011 named.broadcast
-rw-r----- 1 root named 1.5K Oct 3 2008 named.ca
-rw-r----- 1 root named 424 Feb 22 2011 named.ip6.local
-rw-r----- 1 root named 426 Feb 22 2011 named.local
-rw-r----- 1 root named 775 Oct 3 2008 named.rfc1912.zones
-rw-r----- 1 root named 427 Feb 22 2011 named.zero
-rw-r----- 1 root named 798 Oct 6 2008 pinkfashionsas.com.db.bak
-rw-r----- 1 root named 1.1K Jan 13 2011 pointnet.eu.db
-rw-r----- 1 root named 1.1K Oct 6 2008 pointnet.eu.db.bak
-rw-r----- 1 root named 1.3K Apr 1 2009 pointnet.info.db
-rw-r----- 1 root named 1.9K Oct 6 2008 pointnet.info.db.bak
-rw-r----- 1 root named 750 Feb 13 2009 salottiscultore.info.db
?--------- ? ? ? ? ? slaves
-rw-r----- 1 root named 866 Oct 6 2008 tappezzeriabaccelli.com.db
-rw-r----- 1 root named 862 Oct 6 2008 tappezzeriabaccelli.com.db.bak
[email protected] [~]#
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Here is the issue:

Code:
?--------- ? ? ? ? ? slaves
This is called slaves but doesn't have any details on it. Whenever you see something like that, it indicates that the folder or file has corruption, since the folder details aren't readable. You can try to move it to see if that works:

Code:
cd /var/named
mv slaves /root
At that point, see if you can create the slaves folder in /var/named location. Of note, you also have core files dumping in that folder:

Code:
-rw-r----- 1 root named 103M Dec 13 2008 core.11973
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Yes, you definitely should have a filesystem check processed. Please ensure you have off server backups prior to having them run that check. The missing values on the slaves folder (all those ?) along with core file dump in /var/named indicates a file system issue.
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Thank you very much for your support, I'm going to ask a filesystem Check.

Best regards
Alessio
 

Skin

Well-Known Member
Feb 3, 2006
93
4
158
Italy
Solved :)
after a file system check now I can upgrade Bind.

Thanks very much for your support
Alessio

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bind x86_64 30:9.3.6-16.P1.el5 base 988 k

Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 988 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction

Installing : bind 1/1

Installed:
bind.x86_64 30:9.3.6-16.P1.el5

Complete!