xymon-client repo install broken also?
After hand-repairing a broken repo install of xymon on a new prototype xymon server, I just attempted a xymon-client install on a prototype client. That was broken, too. Am I doing something wrong, or is the rpm just hosed? This is a fully updated RHEL5 system. Like the server install, the xymon-client install blew up with a rename error and left the already unpacked files in place but with no trace of xymon in the rpm database. I guess I can clean up by pulling a file manifest from the rpm. Here's what happened:
[root at utility named.data]# yum install xymon-client.x86_64 Loaded plugins: dellsysidplugin Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package xymon-client.x86_64 0:4.2.3-1.rhel5 set to be updated --> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository
Size
Installing:
xymon-client x86_64 4.2.3-1.rhel5 Xymon
358 k
Transaction Summary
Install 1 Package(s) Upgrade 0 Package(s)
Total download size: 358 k
Is this ok [y/N]: y
Downloading Packages:
xymon-client-4.2.3-1.rhel5.x86_64.rpm | 358 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 60d204a7
Xymon/gpgkey | 3.6 kB 00:00
Importing GPG key 0x60D204A7 "Buchan Milne <bgmilne at staff.telkomsa.net>"
from ht
tp://staff.telkomsa.net/packages/bgmilne.asc
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Migrating from hobbit to xymon
Copying init script settings
Copying existing configuration from /etc/hobbit to /etc/xymon
/bin/cp: cannot stat /etc/hobbit': No such file or directory Replacing hobbit with xymon where relevant in config find: /etc/xymon: No such file or directory Moving data files from /var/lib/hobbit to /var/lib/xymon /bin/mv: cannot stat /var/lib/hobbit': No such file or directory
Moving log files from /var/log/hobbit to /var/log/xymon
Migration complete
Beware, any files reported below as .rpmsave should probably be restored before starting xymon!
xymon user present
Adding user xymon to group adm
Installing : xymon-client
1/1
Error unpacking rpm package xymon-client-4.2.3-1.rhel5.x86_64
error: unpacking of archive failed on file /usr/lib64/xymon/client/etc:
cpio: re name
Failed: xymon-client.x86_64 0:4.2.3-1.rhel5
Complete!
[root at utility named.data]# ls -l /usr/lib64/xymon/client/etc
total 0
lrwxrwxrwx 1 root adm 43 Sep 2 2008 clientlaunch.cfg.rpmsave ->
/usr/lib/hobbi
t/client/etc/clientlaunch.cfg
[root at utility named.data]# rpm -qa|grep xymon
On Thursday, 29 July 2010 14:42:37 epperson at alumni.unc.edu wrote:
After hand-repairing a broken repo install of xymon on a new prototype xymon server, I just attempted a xymon-client install on a prototype client. That was broken, too. Am I doing something wrong, or is the rpm just hosed? This is a fully updated RHEL5 system. Like the server install, the xymon-client install blew up with a rename error and left the already unpacked files in place but with no trace of xymon in the rpm database. I guess I can clean up by pulling a file manifest from the rpm. Here's what happened:
Focus on the actual error message reported that caused the installation transaction to fail:
Error unpacking rpm package xymon-client-4.2.3-1.rhel5.x86_64 error: unpacking of archive failed on file /usr/lib64/xymon/client/etc: cpio: re name
Failed: xymon-client.x86_64 0:4.2.3-1.rhel5
Complete! [root at utility named.data]# ls -l /usr/lib64/xymon/client/etc total 0 lrwxrwxrwx 1 root adm 43 Sep 2 2008 clientlaunch.cfg.rpmsave -> /usr/lib/hobbi t/client/etc/clientlaunch.cfg [root at utility named.data]# rpm -qa|grep xymon
Why do you have existing files in /usr/lib64/xymon if you have no package installed?
According to the error message, and previous experience with rpm, most likely you have a real directory, /usr/lib64/xymon/client/etc, and rpm is trying to create a symlink there instead, which rpm doesn't deal that well with. If packages know about this, they will take care of removal of the directory in %pre, but I have never had a real directory located there.
Please remove or rename the directory, and then install or upgrade the package.
So, no, the package isn't broken or hosed or anything else.
Regards, Buchan
On Thu, July 29, 2010 17:48, Buchan Milne wrote: [snip]
Focus on the actual error message reported that caused the installation transaction to fail:
Error unpacking rpm package xymon-client-4.2.3-1.rhel5.x86_64 error: unpacking of archive failed on file /usr/lib64/xymon/client/etc: cpio: rename
Failed: xymon-client.x86_64 0:4.2.3-1.rhel5
Complete!
[snip]
Why do you have existing files in /usr/lib64/xymon if you have no package installed?
Perhaps because I had previously attempted a full xymon repo install on this box, which blew off? Must not have hand-cleaned everything as I thought.
According to the error message, and previous experience with rpm, most likely you have a real directory, /usr/lib64/xymon/client/etc, and rpm is trying to create a symlink there instead, which rpm doesn't deal that well with. If packages know about this, they will take care of removal of the directory in %pre, but I have never had a real directory located there.
Can't figure out how it got there, then, if a package didn't do it.
Please remove or rename the directory, and then install or upgrade the package.
Got rid of everything with xymon or hobbit in the name, grabbed your src rpm, and built from that. Worked out ok that way. BTW, although rrdtool, rrdtool-devel, and pcre are in the RH epel repo, pcre-devel is not. But grabbing the pcre-version-matching rpm from Centos EL5 repo works fine. Also grabbed rpm-helper-1.02-0.fdr.1.noarch.rpm from pbone to get the source-built xymon rpms to install.
So, no, the package isn't broken or hosed or anything else.
OK. Thanks for your work. I must have somehow hosed things trying to work on too many things at once. Was distracted by an ongoing SMTP weirdness amongst some servers.
On Friday, 30 July 2010 13:34:26 Xymon User in Richmond wrote:
Perhaps because I had previously attempted a full xymon repo install on this box, which blew off?
No. Because you installed from some other package (not from my repo), or via some other method.
Regards, Buchan
participants (3)
-
bgmilne@staff.telkomsa.net
-
epperson@alumni.unc.edu
-
hobbit@epperson.homelinux.net