Results 1 to 10 of 23

Thread: [SOLVED] zmfixperms error when migrating [using John Holder's powertip]

Hybrid View

  1. #1
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    8

    Default [SOLVED] zmfixperms error when migrating [using John Holder's powertip]

    Hello,

    John states to use zmfixperms located in /opt/zimbra/libexec when i run zmfixperms i get the follow errors:
    ./zmfixperms
    : command not found/get_plat_tag.sh: line 26:
    : command not found/get_plat_tag.sh: line 27:
    /opt/zimbra/libexec/get_plat_tag.sh: line 33: syntax error near unexpected token `else'
    'opt/zimbra/libexec/get_plat_tag.sh: line 33: ` else

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    What version of zmfixperms are you using? The one from your old install, or the one that was installed over your current install?

    Zimbra version?

    Are you running as root?

    What does sh -x zmfixperms return?

  3. #3
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    8

    Default

    Zimbra version?
    Release 4.5.5_GA_838.RHEL4_20070518071230 RHEL4 NETWORK edition

    Are you running as root?
    yes

    What does sh -x zmfixperms return?
    [root@msgctr libexec]# sh -x zmfixperms
    + ROOTGROUP=root
    ++ /bin/sh /opt/zimbra/libexec/get_plat_tag.sh
    : command not found/get_plat_tag.sh: line 26:
    : command not found/get_plat_tag.sh: line 27:
    /opt/zimbra/libexec/get_plat_tag.sh: line 33: syntax error near unexpected token `else'
    'opt/zimbra/libexec/get_plat_tag.sh: line 33: ` else
    + PLAT=
    + '[' X = XMACOSX -o X = XMACOSXx86 ']'
    + chown -R zimbra:zimbra /opt/zimbra/amavisd-new-2.4.3 /opt/zimbra/apache-tomcat-5.5.15 /opt/z imbra/aspell-0.60.3 /opt/zimbra/clamav-0.88.7 /opt/zimbra/clamav-0.90.2 /opt/zimbra/clamav-0.9 1.2 /opt/zimbra/conf /opt/zimbra/config.10421 /opt/zimbra/config.12687 /opt/zimbra/config.3018 2 /opt/zimbra/config.5134 /opt/zimbra/contrib /opt/zimbra/convertd /opt/zimbra/cyrus-sasl-2.1. 21.ZIMBRA /opt/zimbra/db /opt/zimbra/doc /opt/zimbra/dspam-3.6.2 /opt/zimbra/httpd-2.0.54 /opt /zimbra/index /opt/zimbra/jdk1.5.0_08 /opt/zimbra/lib /opt/zimbra/libexec /opt/zimbra/log /opt /zimbra/logger /opt/zimbra/mysql-standard-5.0.33-pc-linux-gnu-i686-glibc23 /opt/zimbra/net-snm p-5.4 /opt/zimbra/openldap-2.3.34 /opt/zimbra/openldap-data /opt/zimbra/openldap-replica /opt/ zimbra/tomcat /opt/zimbra/verity /opt/zimbra/wiki /opt/zimbra/zimbramon /opt/zimbra/zimlets /o pt/zimbra/zimlets-extra /opt/zimbra/zimlets-network /opt/zimbra/sleepycat-4.2.52.4 /opt/zimbra /ssl /opt/zimbra/perdition-1.17
    + chown root:root /opt/zimbra/apache-tomcat-5.5.15
    + chown -R root:root /opt/zimbra/libexec
    + chown -R root:root /opt/zimbra/bin
    + chown -R root:root /opt/zimbra/lib
    + '[' -d /opt/zimbra/jdk1.5.0_08 ']'
    + chown -R root:root /opt/zimbra/jdk1.5.0_08
    + chown root:root /opt/zimbra
    + chmod 755 /opt/zimbra
    + chmod 755 /opt/zimbra/libexec/600.zimbra /opt/zimbra/libexec/addUser.sh /opt/zimbra/libexec/ get_plat_tag.sh /opt/zimbra/libexec/installer /opt/zimbra/libexec/logswatch /opt/zimbra/libexe c/postinstall.pm /opt/zimbra/libexec/preinstall.pm /opt/zimbra/libexec/sa-learn /opt/zimbra/li bexec/scripts /opt/zimbra/libexec/swatch /opt/zimbra/libexec/zcs /opt/zimbra/libexec/zimbra /o pt/zimbra/libexec/zmconfigure /opt/zimbra/libexec/zmconvertd /opt/zimbra/libexec/zmconvertdmon /opt/zimbra/libexec/zmcpustat /opt/zimbra/libexec/zmdailyreport /opt/zimbra/libexec/zmdisklog /opt/zimbra/libexec/zmexplainslow /opt/zimbra/libexec/zmexplainsql /opt/zimbra/libexec/zmextr actsql /opt/zimbra/libexec/zmfixperms /opt/zimbra/libexec/zmgenentitlement /opt/zimbra/libexec /zmgengraphs /opt/zimbra/libexec/zmiostat /opt/zimbra/libexec/zmldapapplyldif /opt/zimbra/libe xec/zmldapenablereplica /opt/zimbra/libexec/zmldapinit /opt/zimbra/libexec/zmlogger /opt/zimbr a/libexec/zmloggerinit /opt/zimbra/libexec/zmloggerprune /opt/zimbra/libexec/zmlogprocess /opt /zimbra/libexec/zmmaintaintables /opt/zimbra/libexec/zmmon /opt/zimbra/libexec/zmmtaconfig /op t/zimbra/libexec/zmmtainit /opt/zimbra/libexec/zmmycnf /opt/zimbra/libexec/zmmyinit /opt/zimbr a/libexec/zmnotifyinstall /opt/zimbra/libexec/zmpurgemessages /opt/zimbra/libexec/zmqaction /o pt/zimbra/libexec/zmqstat /opt/zimbra/libexec/zmqueuelog /opt/zimbra/libexec/zmrc /opt/zimbra/ libexec/zmrcd /opt/zimbra/libexec/zmroll_catalina /opt/zimbra/libexec/zmsetservername /opt/zim bra/libexec/zmsetup.pl /opt/zimbra/libexec/zmslapcat /opt/zimbra/libexec/zmsnmpinit /opt/zimbr a/libexec/zmstatuslog /opt/zimbra/libexec/zmtomcatmgr /opt/zimbra/libexec/zmtomcatmgr.unrestri cted /opt/zimbra/libexec/zmupgrade.pm
    + chmod 755 /opt/zimbra/bin/ldap /opt/zimbra/bin/ldapsearch /opt/zimbra/bin/logmysql /opt/zimb ra/bin/logmysqladmin /opt/zimbra/bin/logmysql.server /opt/zimbra/bin/mysql /opt/zimbra/bin/mys qladmin /opt/zimbra/bin/mysql.server /opt/zimbra/bin/postconf /opt/zimbra/bin/postfix /opt/zim bra/bin/qshape /opt/zimbra/bin/tomcat /opt/zimbra/bin/zmaccts /opt/zimbra/bin/zmamavisdctl /op t/zimbra/bin/zmantispamctl /opt/zimbra/bin/zmantivirusctl /opt/zimbra/bin/zmapachectl /opt/zim bra/bin/zmarchiveconfig /opt/zimbra/bin/zmarchivesearch /opt/zimbra/bin/zmbackup /opt/zimbra/b in/zmbackupabort /opt/zimbra/bin/zmbackupquery /opt/zimbra/bin/zmcertinstall /opt/zimbra/bin/z mclamdctl /opt/zimbra/bin/zmcleaniplanetics /opt/zimbra/bin/zmcontrol /opt/zimbra/bin/zmconver tctl /opt/zimbra/bin/zmcreateca /opt/zimbra/bin/zmcreatecert /opt/zimbra/bin/zmdumpenv /opt/zi mbra/bin/zmfixtz /opt/zimbra/bin/zmhostname /opt/zimbra/bin/zmhsm /opt/zimbra/bin/zmjava /opt/ zimbra/bin/zmjava32 /opt/zimbra/bin/zmjavaext /opt/zimbra/bin/zmldappasswd /opt/zimbra/bin/zml icense /opt/zimbra/bin/zmlmtpinject /opt/zimbra/bin/zmlocalconfig /opt/zimbra/bin/zmloggerctl /opt/zimbra/bin/zmlogswatchctl /opt/zimbra/bin/zmmailbox /opt/zimbra/bin/zmmailboxctl /opt/zim bra/bin/zmmailboxmove /opt/zimbra/bin/zmmboxsearch /opt/zimbra/bin/zmmsgtrace /opt/zimbra/bin/ zmmtaconfigctl /opt/zimbra/bin/zmmtactl /opt/zimbra/bin/zmmylogpasswd /opt/zimbra/bin/zmmypass wd /opt/zimbra/bin/zmmysqlstatus /opt/zimbra/bin/zmperditionctl /opt/zimbra/bin/zmprov /opt/zi mbra/bin/zmrestore /opt/zimbra/bin/zmrestoreldap /opt/zimbra/bin/zmrestoreoffline /opt/zimbra/ bin/zmsaslauthdctl /opt/zimbra/bin/zmschedulebackup /opt/zimbra/bin/zmshutil /opt/zimbra/bin/z mspamextract /opt/zimbra/bin/zmspellctl /opt/zimbra/bin/zmsshkeygen /opt/zimbra/bin/zmswatchct l /opt/zimbra/bin/zmsyslogsetup /opt/zimbra/bin/zmtlsctl /opt/zimbra/bin/zmtrainsa /opt/zimbra /bin/zmupdateauthkeys /opt/zimbra/bin/zmvolume /opt/zimbra/bin/zmzimletctl
    + chmod 755 /opt/zimbra/libexec/600.zimbra /opt/zimbra/libexec/addUser.sh /opt/zimbra/libexec/ get_plat_tag.sh /opt/zimbra/libexec/installer /opt/zimbra/libexec/logswatch /opt/zimbra/libexe c/postinstall.pm /opt/zimbra/libexec/preinstall.pm /opt/zimbra/libexec/sa-learn /opt/zimbra/li bexec/scripts /opt/zimbra/libexec/swatch /opt/zimbra/libexec/zcs /opt/zimbra/libexec/zimbra /o pt/zimbra/libexec/zmconfigure /opt/zimbra/libexec/zmconvertd /opt/zimbra/libexec/zmconvertdmon /opt/zimbra/libexec/zmcpustat /opt/zimbra/libexec/zmdailyreport /opt/zimbra/libexec/zmdisklog /opt/zimbra/libexec/zmexplainslow /opt/zimbra/libexec/zmexplainsql /opt/zimbra/libexec/zmextr actsql /opt/zimbra/libexec/zmfixperms /opt/zimbra/libexec/zmgenentitlement /opt/zimbra/libexec /zmgengraphs /opt/zimbra/libexec/zmiostat /opt/zimbra/libexec/zmldapapplyldif /opt/zimbra/libe xec/zmldapenablereplica /opt/zimbra/libexec/zmldapinit /opt/zimbra/libexec/zmlogger /opt/zimbr a/libexec/zmloggerinit /opt/zimbra/libexec/zmloggerprune /opt/zimbra/libexec/zmlogprocess /opt /zimbra/libexec/zmmaintaintables /opt/zimbra/libexec/zmmon /opt/zimbra/libexec/zmmtaconfig /op t/zimbra/libexec/zmmtainit /opt/zimbra/libexec/zmmycnf /opt/zimbra/libexec/zmmyinit /opt/zimbr a/libexec/zmnotifyinstall /opt/zimbra/libexec/zmpurgemessages /opt/zimbra/libexec/zmqaction /o pt/zimbra/libexec/zmqstat /opt/zimbra/libexec/zmqueuelog /opt/zimbra/libexec/zmrc /opt/zimbra/ libexec/zmrcd /opt/zimbra/libexec/zmroll_catalina /opt/zimbra/libexec/zmsetservername /opt/zim bra/libexec/zmsetup.pl /opt/zimbra/libexec/zmslapcat /opt/zimbra/libexec/zmsnmpinit /opt/zimbr a/libexec/zmstatuslog /opt/zimbra/libexec/zmtomcatmgr /opt/zimbra/libexec/zmtomcatmgr.unrestri cted /opt/zimbra/libexec/zmupgrade.pm
    + '[' '!' -d /opt/zimbra/tomcat/conf ']'
    + '[' -L /opt/zimbra/postfix ']'
    + '[' -d /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA ']'
    + chown root:zimbra /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA
    + mkdir -p /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state
    + chown zimbra:zimbra /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state
    + '[' -d /opt/zimbra/clamav-0.87.1 ']'
    + '[' -f /opt/zimbra/openldap/libexec/slapd ']'
    + '[' -f /opt/zimbra/libexec/ZmSetup.app/Contents/MacOS/ZmSetup ']'

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Okay, it's safe to ignore the error.

  5. #5
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    8

    Default

    umm weird now i am not getting the upgrade option:

    The Zimbra Collaboration Suite does not appear to be installed,
    yet there appears to be a ZCS directory structure in /opt/zimbra.

    ?

    -parixit

  6. #6
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    What OS are you on?
    This is related to why the script is failing.

    Did you skip the step of installing a dummy install BEFORE you move your install to replace the dummy install in /opt/zimbra ?

  7. #7
    Join Date
    May 2007
    Location
    Piscataway NJ
    Posts
    62
    Rep Power
    8

    Default

    are they permissions correct?

    [root@msgctr zimbra]# ls -la
    total 252
    drwxr-xr-x 44 root root 4096 Dec 2 15:36 .
    drwxr-xr-x 6 root root 4096 Dec 2 12:19 ..
    drwx------ 8 zimbra zimbra 4096 Dec 1 18:33 amavisd-new-2.4.3
    drwx------ 11 root root 4096 Dec 1 18:35 apache-tomcat-5.5.15
    drwx------ 8 zimbra zimbra 4096 Dec 1 18:35 aspell-0.60.3
    -rw------- 1 root root 9943 Dec 1 11:39 .bash_history
    -rw------- 1 root root 24 May 17 2007 .bash_logout
    -rw------- 1 root root 232 May 18 2007 .bash_profile
    -rw------- 1 root root 1009 May 18 2007 .bashrc
    drwx------ 2 root root 4096 Dec 1 18:35 bin
    drwx------ 3 zimbra zimbra 4096 Dec 1 18:35 clamav-0.88.7
    drwx------ 9 zimbra zimbra 4096 Dec 1 18:35 clamav-0.90.2
    drwx------ 9 zimbra zimbra 4096 Dec 1 18:35 clamav-0.91.2
    drwx------ 6 zimbra zimbra 4096 Dec 1 18:35 conf
    -rw------- 1 zimbra zimbra 1320 May 17 2007 config.10421
    -rw------- 1 zimbra zimbra 1201 May 17 2007 config.12687
    -rw------- 1 zimbra zimbra 1370 May 21 2007 config.30182
    -rw------- 1 zimbra zimbra 1184 May 17 2007 config.5134
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:35 contrib
    drwx------ 5 zimbra zimbra 4096 Dec 1 18:35 convertd
    drwx------ 8 root zimbra 4096 Dec 1 18:35 cyrus-sasl-2.1.21.ZIMBRA
    drwx------ 3 zimbra zimbra 4096 Dec 1 18:35 db
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:36 doc
    drwx------ 7 zimbra zimbra 4096 Dec 1 18:36 dspam-3.6.2
    -rw------- 1 root root 383 May 17 2007 .emacs
    -rw------- 1 root root 62 May 18 2007 .exrc
    -rw------- 1 root root 120 May 17 2007 .gtkrc
    drwx------ 15 zimbra zimbra 4096 Dec 1 18:37 httpd-2.0.54
    drwx------ 3 zimbra zimbra 4096 Dec 1 18:37 index
    -rw------- 1 root root 6826 May 21 2007 .install_history
    drwx------ 7 root root 4096 Dec 1 18:37 jdk1.5.0_08
    drwx------ 3 root root 4096 Dec 1 18:33 .kde
    drwx------ 6 root root 4096 Dec 1 18:38 lib
    drwx------ 4 root root 4096 Dec 1 18:38 libexec
    drwx------ 2 zimbra zimbra 20480 Dec 1 18:38 log
    drwx------ 4 zimbra zimbra 4096 Dec 1 18:39 logger
    drwx------ 9 zimbra zimbra 4096 Dec 1 18:39 mysql-standard-5.0.33-pc-linux-gnu-i686-glibc23
    drwx------ 10 zimbra zimbra 4096 Dec 1 18:39 net-snmp-5.4
    drwx------ 10 zimbra zimbra 4096 Dec 1 18:39 openldap-2.3.34
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:39 openldap-data
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:39 openldap-replica
    drwx------ 9 zimbra zimbra 4096 Dec 1 18:39 perdition-1.17
    drwx------ 7 root root 4096 Dec 1 18:39 postfix-2.2.9
    drwx------ 4 root root 4096 Dec 1 18:39 redolog
    drwxrwxrwx 2 root root 4096 Dec 1 18:33 .saveconfig
    drwx------ 6 zimbra zimbra 4096 Dec 1 18:40 sleepycat-4.2.52.4
    drwx------ 2 root root 4096 Dec 1 18:33 .ssh
    drwx------ 3 zimbra zimbra 4096 Dec 1 18:40 ssl
    drwx------ 4 root root 4096 Dec 1 18:40 store
    drwxr-xr-x 3 root root 4096 Dec 2 15:36 tomcat
    drwx------ 5 zimbra zimbra 4096 Dec 1 18:57 verity
    drwx------ 3 zimbra zimbra 4096 Dec 1 18:57 wiki
    drwx------ 6 zimbra zimbra 4096 Dec 1 18:57 zimbramon
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:57 zimlets
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:57 zimlets-extra
    drwx------ 2 zimbra zimbra 4096 Dec 1 18:57 zimlets-network

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •