Koozali.org: home of the SME Server

Open-Xchange Conf file

Offline compsos

  • *
  • 472
  • +0/-0
Open-Xchange Conf file
« on: May 02, 2006, 12:56:44 AM »
Hi

We keep getting the following error when trying to install the sme7-open-xchange-conf-0.8.2-1.noarch file. All other components appear to be fine for open-xchange.

error: %pre(sme7-open-xchange-conf-0.8.2-1.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping sme7-open-xchange-conf-0.8.2-1

Have tried rpm -e sme7-open-xchange-conf-0.8.2-1.noarch but it is not installed neither is the previous file sme7-open-xchange-conf-0.8.0.6-1.noarch.rpm but did find fragments of it left behind and manually deleted those.

Is there a way of finding all the fragments to be sure we are not having a clash of previous verses new configuration?
Regards

Gordon............

Offline JonB

  • *
  • 351
  • +0/-0
Open-Xchange Conf file
« Reply #1 on: May 02, 2006, 02:18:51 AM »
The correct command to remove the rpm is

rpm -e sme7-open-xchange-conf

not

rpm -e sme7-open-xchange-conf-0.8.2-1.noarch

Jon
...

Offline compsos

  • *
  • 472
  • +0/-0
Open-Xchange Conf file
« Reply #2 on: May 02, 2006, 02:47:23 AM »
Thanks Jon
That was a cut and paste and forgot to remove the version section. That command appears to run but I did find fragments left behind, which is what I think is causing the script error when I retry.
Regards

Gordon............

Offline jfarschman

  • *
  • 406
  • +0/-0
Open-Xchange Conf file
« Reply #3 on: May 03, 2006, 09:22:14 PM »
compsos,

  It looks like a prescript is running to make sure the rpm isn't installed and it's checking form something that the rpm -e did not remove.

  That's my guess.  Do you have the source code for that rpm?  We could look to see what the logical check is... the one that generates that message.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Open-Xchange Conf file
« Reply #4 on: May 03, 2006, 09:26:31 PM »
Quote from: "compsos"

We keep getting the following error when trying to install the sme7-open-xchange-conf-0.8.2-1.noarch file.


Please report all problems with contribs via the Contribs section of the Bug Tracker. That's the best way for contrib authors to be notified of problems with their contribs, and will help them to track the issues which need fixing. Thanks.

Offline compsos

  • *
  • 472
  • +0/-0
Open-Xchange Conf file
« Reply #5 on: May 03, 2006, 11:45:43 PM »
Thanks Charlie
I have notified Vincent of the problem I had.
I think the fault may have been on our end, but was trying to find what was causing the %pre error. Just could not find a way around it.
Have managed to "manually" put all the components of the conf file in place to get it working. Also built up a clean test machine did the rpm -e and reinstalled OK.
As for the source file have not been able to find a copy.
Regards

Gordon............

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Open-Xchange Conf file
« Reply #6 on: May 04, 2006, 12:38:39 AM »
Quote from: "compsos"

We keep getting the following error when trying to install the sme7-open-xchange-conf-0.8.2-1.noarch file. All other components appear to be fine for open-xchange.

error: %pre(sme7-open-xchange-conf-0.8.2-1.noarch) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping sme7-open-xchange-conf-0.8.2-1


I think that you are not showing us the full story. I think the details of the error will appear a little before the bit which you have shown us.

If I do:

rpm -qp --scripts sme7-open-xchange-conf-0.8.2-1.noarch.rpm

then we can see what the script is which has failed.

preinstall scriptlet (using /bin/sh):
if [ -e /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/useraccounts.pm.old ]
then
    echo
    echo "-----Warning-Warning-Warning-Warning-Warning-Warning-Warning-Warning-------"
    echo "You must use rpm -e sme7-open-xchange-conf to delete this rpm."
    echo "and re-install it with rpm -ivh sme7-open-xchange-conf-0.8.2-1.noarch.rpm"
    echo
    exit 1
fi

if [ -e /usr/lib/perl5/site_perl/esmith/util.pm.old ]
then
    echo
    echo "-----Warning-Warning-Warning-Warning-Warning-Warning-Warning-Warning-------"
    echo "You must use rpm -e sme7-open-xchange-conf to delete this rpm."
    echo "and re-install it with rpm -ivh sme7-open-xchange-conf-0.8.2-1.noarch.rpm"
    echo
    exit 1
fi
rm -f /home/e-smith/files/ibays/Primary/html/ox/files/*.exe
postinstall scriptlet (using /bin/sh):
...

Now the "exit 1" is the point where an error has been reported. There are two possibilities, that you have either a useraccounts.pm.old file or a util.pm.old file (or both). This RPM is doing something pretty nasty to these two files, which belong to other RPMs. It's replacing those RPMs with its own version of them, and keeping the "old" ones by renaming them.

This is very messy stuff. What the developers of this RPM should really be doing is providing their own versions of e-smith-lib and e-smith-base, and insisting via dependencies that their versions are installed. Or they should be sending us patches to e-smith-lib and e-smith-base so that they standard versions work correctly with this contrib.

It's a very dangerous practice for an RPM to go around modifying files which don't belong to it.

Offline compsos

  • *
  • 472
  • +0/-0
Open-Xchange Conf file
« Reply #7 on: May 04, 2006, 11:56:34 AM »
Thank You Charlie
That was some of the fragments that I was thinking of but did not know how to get pass %pre message and actually know what was stopping it.

Any ideas on how effect those 2 files have? Any one using the open-xchange system would have the modified ones.
Regards

Gordon............