rpm upgrade fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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://lists.fedoraproject.org/pipermail/389-users/attachments/20060303/38ac8fc6/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux