Koozali.org: home of the SME Server

RPM install failure

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
RPM install failure
« on: November 20, 2005, 10:21:55 AM »
After my HD crash - re-installed 6.0.1 and all YUM updates.  Then installed sme-ddclient-2.0-9.noarch.rpm.  Install failed.  Error log shows errors from the start.  Attempted rpm -e . Won't remove.  Attempted re-install with --force. Errors out during intall.  Attempted to load sme-ddclient-2.0-10.noarch.rpm.  Says it finds 2.0-9, and won't go beyond.  
Caught between a rock and a hard spot.  Any help with resolution is appreciated.
Moe.....................

Offline raem

  • *
  • 3,972
  • +4/-0
Re: RPM install failure
« Reply #1 on: November 20, 2005, 01:48:50 PM »
moe

> Then installed sme-ddclient-2.0-9.noarch.rpm.  
> Install failed.  Error log shows errors from the start.  

You really need to quote exactly what those errors are in order to analyse your problem.
You should also quote the actual commands you are using to install.

Try rpm -q sme-ddclient
to see what is installed

I would suggest you download another copy of that rpm in case the original is corrupted.
Then do
rpm -Uvh sme-ddclient-2.0-10.noarch.rpm

Do
man rpm
to get more info about using the rpm command.

To remove do
rpm -e sme-ddclient
...

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Re: RPM install failure
« Reply #2 on: November 20, 2005, 09:09:56 PM »
Quote from: "RayMitchell"


Try rpm -q sme-ddclient
to see what is installed

I would suggest you download another copy of that rpm in case the original is corrupted.
Then do
rpm -Uvh sme-ddclient-2.0-10.noarch.rpm

To remove do
rpm -e sme-ddclient


The rpm was installed with-> rpm -Uvh sme-ddclient-2.0-9.noarch.rpm

I became aware that there was trouble when I went to setup the zoneedit settings in the server panel.  Entering information gave me an "Internal Server Error". (see error log lines below.)

Doing a ->[root@e-smith root]# rpm -q sme-ddclient*
results with
error: package sme-ddclient* is not installed

Same results with an rpm -e

when --> [root@e-smith home]# rpm -Uvh sme-ddclient-2.0-10.noarch.rpm
results with -- package sme-ddclient-2.0-10 is already installed

--> rpm -e sme-ddclient-2.0-10.noarch.rpm
results with -- error: package sme-ddclient-2.0-10.noarch.rpm is not installed

--> rpm -Uvh --force sme-ddclient-2.0-10.noarch.rpm
results with -- /var/tmp/rpm-tmp.99027: line 4: syntax error: unexpected end of file
error: execution of %preun scriptlet from sme-ddclient-2.0-9 failed, exit status 2

Ray, you may have hit it right when you said the RPM may have been bad.

I'm not so far into this re-install that I can't back out and start over - which to expidite things isn't a bad idea.  My biggest challange here is "What happened?  What might I have done that caused such a failure in this load."  In the 7 years that I have been loading E-Smith on boxes, this is the second time I can't recover an error.  RPM installs have been fairly straight forward.  I'd hate to mess up a production machine, which I will be working on 2 this coming holiday.

Your help is much appreciated, and the work here is awesome.  My work is almost exclusively for non-profit orginizations and ministries.

Thanks...  Moe...

-------------------------------------------------------

Log file reads - multiple lines of;

[Sun Nov 20 11:31:45 2005] ddclient: Use of uninitialized value in string at /usr/lib/perl5/site_perl/esmith/cgi.pm line 295.

[Sun Nov 20 11:31:51 2005] ddclient: print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
[Sun Nov 20 11:31:51 2005] ddclient: Use of uninitialized value in open at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 421, <LEXIN> chunk 1.

[Sun Nov 20 11:32:13 2005] ddclient: readline() on closed filehandle esmith::FormMagick::LEXIN at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 422, <LEXIN> chunk 1.
This DB is opened read-only at /etc/e-smith/web/panels/manager/cgi-bin/ddclient line 454
[Sun Nov 20 11:32:13 2005] [error] [client 127.0.0.1] Premature end of script headers: /etc/e-smith/web/panels/manager/cgi-bin/ddclient
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
Moe.....................

Offline raem

  • *
  • 3,972
  • +4/-0
Re: RPM install failure
« Reply #3 on: November 21, 2005, 03:19:21 AM »
[quote="moe

More care is required on your part. Read my post again carefully, you even quoted it.

> Ray, you may have hit it right when you said the RPM may have been bad.

1) I would suggest you download another copy of that rpm in case the original is corrupted, not just talk about it.

2) To remove the existing faulty version do
rpm -e sme-ddclient

NOT
rpm -e sme-ddclient-2.0-09.noarch.rpm
or
rpm -e sme-ddclient-2.0-10.noarch.rpm
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: RPM install failure
« Reply #4 on: November 21, 2005, 06:47:07 AM »
Quote from: "moe"

Doing a ->[root@e-smith root]# rpm -q sme-ddclient*
results with
error: package sme-ddclient* is not installed

Same results with an rpm -e


You don't have an rpm called sme-ddclient* installed. You have one called sme-ddclient installed.

Quote

when --> [root@e-smith home]# rpm -Uvh sme-ddclient-2.0-10.noarch.rpm
results with -- package sme-ddclient-2.0-10 is already installed

--> rpm -e sme-ddclient-2.0-10.noarch.rpm
results with -- error: package sme-ddclient-2.0-10.noarch.rpm is not installed


sme-ddclient-2.0-10.noarch.rpm is the name of a file, not the name of the package. You remove packages, not files. The name of the package is sme-ddclient, or sme-ddclient-2.0-10.

Quote

--> rpm -Uvh --force sme-ddclient-2.0-10.noarch.rpm
results with -- /var/tmp/rpm-tmp.99027: line 4: syntax error: unexpected end of file
error: execution of %preun scriptlet from sme-ddclient-2.0-9 failed, exit status 2


This indicates that there is an error in the "preuninstall" script of that RPM. You can avoid that error using "--noscripts":

rpm -Uvh --force --noscripts sme-ddclient-2.0-10.noarch.rpm

Note however that that command will just remove all files from that package and also add them - IOW, it should have no effect.

There's obviously one or more faults in the sme-ddclient RPM. Why do you think you need sme-ddclient?


Ray, you may have hit it right when you said the RPM may have been bad.

I'm not so far into this re-install that I can't back out and start over - which to expidite things isn't a bad idea.  My biggest challange here is "What happened?  What might I have done that caused such a failure in this load."  In the 7 years that I have been loading E-Smith on boxes, this is the second time I can't recover an error.  RPM installs have been fairly straight forward.  I'd hate to mess up a production machine, which I will be working on 2 this coming holiday.

Your help is much appreciated, and the work here is awesome.  My work is almost exclusively for non-profit orginizations and ministries.

Thanks...  Moe...

-------------------------------------------------------

Log file reads - multiple lines of;

[Sun Nov 20 11:31:45 2005] ddclient: Use of uninitialized value in string at /usr/lib/perl5/site_perl/esmith/cgi.pm line 295.

[Sun Nov 20 11:31:51 2005] ddclient: print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
[Sun Nov 20 11:31:51 2005] ddclient: Use of uninitialized value in open at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 421, <LEXIN> chunk 1.

[Sun Nov 20 11:32:13 2005] ddclient: readline() on closed filehandle esmith::FormMagick::LEXIN at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 422, <LEXIN> chunk 1.
This DB is opened read-only at /etc/e-smith/web/panels/manager/cgi-bin/ddclient line 454
[Sun Nov 20 11:32:13 2005] [error] [client 127.0.0.1] Premature end of script headers: /etc/e-smith/web/panels/manager/cgi-bin/ddclient
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.
print() on unopened filehandle esmith::FormMagick::LOG at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 401, <DATA> line 1.[/quote]

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: RPM install failure
« Reply #5 on: November 21, 2005, 06:55:40 AM »
Quote from: "CharlieBrady"

This indicates that there is an error in the "preuninstall" script of that RPM.


Here is the preuninstall scriptlet:

 preuninstall scriptlet (using /bin/sh):
 if [ -f /var/lock/subsys/ddclient ]; then
     /etc/rc.d/init.d/ddclient stop
 else

That's not correct syntax - it's incomplete.

I can't find a src.rpm file for that package, so I can't fix it. I wouldn't use a package which didn't have source code available, and I'd recommend you avoid it as well.

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Re: RPM install failure
« Reply #6 on: November 21, 2005, 02:42:19 PM »
Quote from: "RayMitchell"


2) To remove the existing faulty version do
rpm -e sme-ddclient

NOT
rpm -e sme-ddclient-2.0-09.noarch.rpm
or
rpm -e sme-ddclient-2.0-10.noarch.rpm


Actually I tried it both ways, package would not uninstall.
Moe.....................

Offline Lowell Fuher

  • ****
  • 73
  • +0/-0
Re: RPM install failure
« Reply #7 on: November 21, 2005, 03:14:46 PM »
Quote from: "CharlieBrady"


Quote

--> rpm -Uvh --force sme-ddclient-2.0-10.noarch.rpm
results with -- /var/tmp/rpm-tmp.99027: line 4: syntax error: unexpected end of file
error: execution of %preun scriptlet from sme-ddclient-2.0-9 failed, exit status 2


This indicates that there is an error in the "preuninstall" script of that RPM. You can avoid that error using "--noscripts":

rpm -Uvh --force --noscripts sme-ddclient-2.0-10.noarch.rpm

I believe this is likely the only command I did not attempt to use to remove the problem child.


Quote

There's obviously one or more faults in the sme-ddclient RPM. Why do you think you need sme-ddclient?



I believe you are absolutely correct in this statement Charlie, the reason for ddclient is that I use Zoneedit for my DNS service with 5 different zones to report. Every reboot fills my error logs with many lines of script errors as well as sends an email to admin regarding each zone with "WARNING:  caught SIGTERM; exiting".
Is there a way to use the built in dynamic service for Zoneedit?

I did reinstall 6.0.1-01.  Install went quite smooth.  Only error I retrieved this morning was the error:
 
error accessing /var/log/proftpd: No such file or directory
error: proftpd:11 glob failed for /var/log/proftpd/*.log

which I quickly tracked down in the bug tracker - the two rpm's are now installed for that - <<grin>>

Again, thanks you guys..
Moe.....................

Offline raem

  • *
  • 3,972
  • +4/-0
Re: RPM install failure
« Reply #8 on: November 21, 2005, 03:25:52 PM »
moe, charlie

For what it's worth....

Available from here
http://smeserver.free.fr/
are
sme-ddclient-2.0-9.src.rpm
and
sme-ddclient-2.0-10.noarch.rpm

I downloaded and installed sme-ddclient-2.0-10.noarch.rpm
and here is my install & uninstall console log

ls -al
sme-ddclient-2.0-10.noarch.rpm
rpm -Uvh *.rpm
Preparing...                ########################################### [100%]
   1:sme-ddclient           ########################################### [100%]
Rebuilding Web Server Manager Left Panel Cache ... Can take up to a minute.
Done.
Setting defaults values in SME configuration database, if needed. Don't change any existing configuration.
Done.
Starting ddclient: WARNING:  file /etc/ddclient/ddclient.conf: file /etc/ddclient/ddclient.conf must be accessible only by its owner (fixed).

rpm -q sme-ddclient
sme-ddclient-2.0-10

rpm -e sme-ddclient
/var/tmp/rpm-tmp.65837: line 4: syntax error: unexpected end of file
error: execution of %preun scriptlet from sme-ddclient-2.0-10 failed, exit status 2

rpm -e --noscripts sme-ddclient

rpm -q sme-ddclient
package sme-ddclient is not installed
...

vinc28

repaired !!!!
« Reply #9 on: November 21, 2005, 04:12:14 PM »
sorry guys if have never unistalled my rpms ;-)
and on my site http://e-smith.dyndns.org i have made the sme-ddclient-2.0-11 version it's fix the problem.....

:pint: too late for tonight.