Steps to remove broken soft links after upgrading to ZCS v8.7.x

Revision as of 20:34, 28 April 2020 by David Bingham (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Steps to remove broken soft links after upgrading to ZCS v8.7.x


   KB 23310        Last updated on 2020-04-28  




0.00
(0 votes)




Problem

After upgrading from v8.6 or older versions to v8.7.x and greater, there may be multiple broken soft links of third-party tools in "/opt/zimbra/".


Solution

From ZCS v8.7.x all third-party tools have been moved to directory "/opt/zimbra/common/", so the broken directory links from "/opt/zimbra/" can be removed.

The following will get us a list of broken soft links which can then be removed manually

  • Command to get broken soft link list.
find /opt/zimbra/ -type l ! -exec test -e {} \; -print 
OR 
find -L /opt/zimbra/ -type l 
OR 
find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"   


Example

  • Output of the above will be as follows:
root@ztalk:~# find /opt/zimbra/ -type l | xargs file  | grep "broken symbolic link"

/opt/zimbra/cyrus-sasl:                             broken symbolic link to `/opt/zimbra/cyrus-sasl-2.1.26.2z'
/opt/zimbra/zimbramon/rrdtool:                      broken symbolic link to `/opt/zimbra/zimbramon/rrdtool-1.2.30'
/opt/zimbra/mariadb:                                broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
/opt/zimbra/opendkim:                               broken symbolic link to `/opt/zimbra/opendkim-2.9.2'
/opt/zimbra/dspam:                                  broken symbolic link to `/opt/zimbra/dspam-3.10.2'
/opt/zimbra/aspell:                                 broken symbolic link to `/opt/zimbra/aspell-0.60.6.1'
/opt/zimbra/mta/mariadb:                            broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/mta/mysql:                              broken symbolic link to `/opt/zimbra/mta/mariadb-10.0.15'
/opt/zimbra/libtool:                                broken symbolic link to `/opt/zimbra/libtool-2.2.6b'
/opt/zimbra/unbound:                                broken symbolic link to `/opt/zimbra/unbound-1.4.22'
/opt/zimbra/bdb:                                    broken symbolic link to `/opt/zimbra/bdb-5.2.36'
/opt/zimbra/httpd:                                  broken symbolic link to `/opt/zimbra/httpd-2.4.10'
/opt/zimbra/memcached:                              broken symbolic link to `/opt/zimbra/memcached-1.4.17'
/opt/zimbra/tcmalloc:                               broken symbolic link to `/opt/zimbra/tcmalloc-2.2'
/opt/zimbra/rsync:                                  broken symbolic link to `/opt/zimbra/rsync-3.1.1'
/opt/zimbra/altermime:                              broken symbolic link to `/opt/zimbra/altermime-0.3-20100505'
/opt/zimbra/zeromq:                                 broken symbolic link to `/opt/zimbra/zeromq-3.2.3'
/opt/zimbra/nginx:                                  broken symbolic link to `/opt/zimbra/nginx-1.2.0-zimbra'
/opt/zimbra/amavisd:                                broken symbolic link to `/opt/zimbra/amavisd-new-2.9.0'
/opt/zimbra/openldap:                               broken symbolic link to `/opt/zimbra/openldap-2.4.39.2z'
/opt/zimbra/mysql:                                  broken symbolic link to `/opt/zimbra/mariadb-10.0.15'
/opt/zimbra/curl:                                   broken symbolic link to `/opt/zimbra/curl-7.38.0'
/opt/zimbra/pflogsumm:                              broken symbolic link to `/opt/zimbra/pflogsumm-1.1.5'
/opt/zimbra/clamav:                                 broken symbolic link to `/opt/zimbra/clamav-0.98.4'
/opt/zimbra/heimdal:                                broken symbolic link to `/opt/zimbra/heimdal-1.5.2'
/opt/zimbra/openssl:                                broken symbolic link to `/opt/zimbra/openssl-1.0.1j'
/opt/zimbra/cbpolicyd:                              broken symbolic link to `/opt/zimbra/cbpolicyd-2.1.0-beta'
  • To remove broken soft links, run
find /opt/zimbra/ -type l -exec test ! -e {} \; -delete   
Submitted by: Heera Singh Koranga
Verified Against: ZCS 8.8 Date Created: 2020-04-13
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_remove_broken_soft_links_after_upgrading_to_ZCS_v8.7.x Date Modified: 2020-04-28



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search