[Fedora-directory-users] rpm upgrade fails

Richard Megginson rmeggins at redhat.com
Fri Mar 3 22:07:59 UTC 2006


Jo De Troy wrote:

> Hello,
>
> I wanted to upgrade from fedora-ds-1.0.1 on CentOS4 to the latest 
> release 1.0.2 and I got:
>
> root# rpm -Uvh fedora-ds-1.0.2-1.RHEL4.i386.opt.rpm
> error: %pre(fedora-ds-1.0.2-1.RHEL4.i386) scriptlet failed, exit 
> status 255
> error:   install: %pre scriptlet failed (2), skipping 
> fedora-ds-1.0.2-1.RHEL4
>
> Any ideas?

This is the %pre section:
# in case upgrade, need to shutdown the servers before the installation
ls $RPM_INSTALL_PREFIX/slapd-* > /dev/null 2>&1
if [ $? -eq 0 ]; then
  for instance in `ls -d $RPM_INSTALL_PREFIX/slapd-*`
  do
    if [ -f $instance/logs/pid ]; then
      pid=`cat $instance/logs/pid`
      psval=`ps -ef | egrep $pid`
      if [ "$psval" != "" ]; then
        $instance/stop-slapd
      fi
    fi
  done
fi
if [ -f $RPM_INSTALL_PREFIX/admin-serv/logs/pid ]; then
  pid=`cat $RPM_INSTALL_PREFIX/admin-serv/logs/pid`
  psval=`ps -ef | egrep $pid`
  if [ "$psval" != "" ]; then
    $RPM_INSTALL_PREFIX/stop-admin
  fi
fi

So, I'm not sure, perhaps your servers are not running, or they are 
reporting some error attempting to stop them.  If they are not running, 
and you don't wan't to or can't start them, try just removing the pid 
files referenced above.

>
> Best Regards,
> Jo
>
>------------------------------------------------------------------------
>
>--
>Fedora-directory-users mailing list
>Fedora-directory-users at redhat.com
>https://www.redhat.com/mailman/listinfo/fedora-directory-users
>  
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20060303/38ac8fc6/attachment.bin>


More information about the Fedora-directory-users mailing list