Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Upgrade 3.0.1->4.0.2 failing

  1. #11
    Join Date
    Feb 2006
    Posts
    14
    Rep Power
    9

    Default

    I'll try the modified script tonight and see if I have any better luck with that. I hope that works, as I'll probably have a tough time running imapsync if I can't get any of the services running on my dead server...

  2. #12
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    10

    Default

    Quote Originally Posted by bsb
    I'll try the modified script tonight and see if I have any better luck with that. I hope that works, as I'll probably have a tough time running imapsync if I can't get any of the services running on my dead server...
    Well, if it doesn't work, show us the output of "zmlocalconfig", run as the zimbra user. Maybe we'd be able to figure something out from that.
    -Eric

  3. #13
    Join Date
    Feb 2006
    Posts
    14
    Rep Power
    9

    Default

    Unfortunately, no luck. I do get a couple more error messages, though. Here's the dump of me running the fix and then zmsetup.pl. I don't know why the password prompt is there, everything in /etc/sudoers appears as it should:

    gizmo:/opt/zimbra/libexec root# cat fixscript
    #!/bin/bash
    while read i; do
    su - zimbra -c "zmlocalconfig -f -e '$i'"
    done < /opt/zimbra/.saveconfig/config.save
    gizmo:/opt/zimbra/libexec root# ./fixscript
    Error: Failed to parse command line: org.apache.commons.cli.UnrecognizedOptionException : Unrecognized option: -XX:NewRatio=2;
    gizmo:/opt/zimbra/libexec root# ./zmsetup.pl
    Operations logged to /tmp/zmsetup.log.2265
    Checking java version...1.5 found
    Setting defaults...Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
    Done
    Upgrading from 3.0.1_GA_160 to 4.0.2_GA_362
    Mon Oct 2 22:54:51 2006: Stopping zimbra services
    Password:
    Mon Oct 2 22:55:07 2006: Starting mysql
    UPGRADE FAILED - exiting

    Here's the output of zmlocalconfig:

    gizmo:~ zimbra$ zmlocalconfig
    ldap_cache_account_maxage = 15;
    ldap_cache_account_maxsize = 5000;
    ldap_cache_cos_maxage = 15;
    ldap_cache_cos_maxsize = 100;
    ldap_cache_domain_maxage = 15;
    ldap_cache_domain_maxsize = 100;
    ldap_cache_server_maxage = 15;
    ldap_cache_server_maxsize = 100;
    ldap_cache_timezone_maxsize = 100;
    ldap_cache_zimlet_maxage = 15;
    ldap_cache_zimlet_maxsize = 100;
    ldap_connect_pool_debug = false;
    ldap_connect_pool_initsize = 1;
    ldap_connect_pool_maxsize = 50;
    ldap_connect_pool_prefsize = 0;
    ldap_connect_pool_timeout = 120000;
    ldap_connect_timeout = 30000;
    ldap_host = ;
    ldap_is_master = false;
    ldap_log_level = 0;
    ldap_master_url = ;
    ldap_port = ;
    ldap_root_password = *
    ldap_url = ;
    localized_msgs_directory = /opt/zimbra/conf/msgs;
    logger_mysql_bind_address = localhost;
    logger_mysql_data_directory = /opt/zimbra/logger/db/data;
    logger_mysql_directory = /opt/zimbra/logger/mysql;
    logger_mysql_mycnf = /opt/zimbra/conf/my.logger.cnf;
    logger_mysql_pidfile = /opt/zimbra/logger/db/mysql.pid;
    logger_mysql_port = 7307;
    logger_mysql_socket = /opt/zimbra/logger/db/mysql.sock;
    mysql_bind_address = localhost;
    mysql_data_directory = /opt/zimbra/db/data;
    mysql_directory = /opt/zimbra/mysql;
    mysql_innodb_log_buffer_size = 8388608;
    mysql_innodb_log_file_size = 104857600;
    mysql_memory_percent = 40;
    mysql_mycnf = /opt/zimbra/conf/my.cnf;
    mysql_pidfile = /opt/zimbra/db/mysql.pid;
    mysql_port = 7306;
    mysql_read_buffer_size = 1048576;
    mysql_root_password = *
    mysql_socket = /opt/zimbra/db/mysql.sock;
    mysql_sort_buffer_size = 1048576;
    mysql_table_cache = 500;
    nio_imap_enable = false;
    nio_imap_log_buffers = false;
    nio_imap_write_queue_max_size = 10240000;
    nio_imap_write_queue_max_size_unauth = 20480;
    nio_write_buffer_compaction_percent = 50;
    postfix_alias_maps = hash:/etc/aliases;
    postfix_broken_sasl_auth_clients = yes;
    postfix_command_directory = /opt/zimbra/postfix-2.2.9/sbin;
    postfix_daemon_directory = /opt/zimbra/postfix-2.2.9/libexec;
    postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks;
    postfix_mailq_path = /opt/zimbra/postfix-2.2.9/sbin/mailq;
    postfix_manpage_directory = /opt/zimbra/postfix-2.2.9/man;
    postfix_newaliases_path = /opt/zimbra/postfix-2.2.9/sbin/newaliases;
    postfix_queue_directory = /opt/zimbra/postfix-2.2.9/spool;
    postfix_sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf;
    postfix_sendmail_path = /opt/zimbra/postfix-2.2.9/sbin/sendmail;
    postfix_smtpd_client_restrictions = reject_unauth_pipelining;
    postfix_smtpd_data_restrictions = reject_unauth_pipelining;
    postfix_smtpd_helo_required = yes;
    postfix_smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt;
    postfix_smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key;
    postfix_smtpd_tls_loglevel = 1;
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf;
    postfix_version = 2.2.9;
    postfix_virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf;
    postfix_virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf;
    postfix_virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf;
    postfix_virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf;
    postfix_virtual_transport = error;
    ssl_allow_untrusted_certs = false;
    stats_img_folder = /opt/zimbra/logger/db/work;
    tomcat_directory = /opt/zimbra/tomcat;
    tomcat_java_heap_memory_percent = 30;
    tomcat_java_home = /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home;
    tomcat_java_options = -client -XX:NewRatio=2
    tomcat_keystore = /opt/zimbra/tomcat/conf/keystore;
    tomcat_pidfile = /opt/zimbra/log/tomcat.pid;
    wiki_enabled = false;
    wiki_user = wiki;
    zimbra_admin_service_port = 7071;
    zimbra_attrs_directory = /opt/zimbra/conf/attrs;
    zimbra_auth_always_send_refer = false;
    zimbra_db_directory = /opt/zimbra/db;
    zimbra_extension_common_directory = /opt/zimbra/lib/ext-common;
    zimbra_extension_directory = /opt/zimbra/lib/ext;
    zimbra_gid = -1;
    zimbra_home = /opt/zimbra;
    zimbra_index_directory = /opt/zimbra/index;
    zimbra_index_idle_flush_time = 600;
    zimbra_index_lru_size = 100;
    zimbra_index_max_uncommitted_operations = 200;
    zimbra_java_home = /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    zimbra_ldap_password = *
    zimbra_ldap_user = zimbra;
    zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra;
    zimbra_log4j_properties = /opt/zimbra/conf/log4j.properties;
    zimbra_log_directory = /opt/zimbra/log;
    zimbra_logger_mysql_password = *
    zimbra_mtareport_max_recipients = 50;
    zimbra_mtareport_max_senders = 50;
    zimbra_mysql_password = *
    zimbra_mysql_user = zimbra;
    zimbra_server_hostname = gizmo.local;
    zimbra_spam_report_queue_size = 100;
    zimbra_store_directory = /opt/zimbra/store;
    zimbra_store_sweeper_max_age = 480;
    zimbra_throttle_op_concurrency = 1000,1000,1000,1000,1000;
    zimbra_tmp_directory = /tmp/zimbra;
    zimbra_uid = -1;
    zimbra_user = zimbra;
    zimbra_zmprov_default_soap_server = localhost;
    zimbra_zmprov_default_to_ldap = false;
    zimlet_directory = /opt/zimbra/tomcat/webapps/service/zimlet;

  4. #14
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    10

    Default

    Quote Originally Posted by bsb
    Unfortunately, no luck. I do get a couple more error messages, though. Here's the dump of me running the fix and then zmsetup.pl. I don't know why the password prompt is there, everything in /etc/sudoers appears as it should:
    Where are you being prompted for a password? I didnt see that in the output below, are you referring to one of your previous posts?

    Okay, a few things.

    To solve this error:

    Error: Failed to parse command line:
    org.apache.commons.cli.UnrecognizedOptionException : Unrecognized option: -XX:NewRatio=2;

    You need to set tomcat_java_options to '' like so:

    zmlocalconfig -e tomcat_java_options=''

    Also, I set the zimbra_uid and zimbra_gid to explicit values, rather than the -1 that's listed. So, look up the uid and gid of the Zimbra user on your system, but on a Linux system, if no other users exist, it'd be 500. Going with that example:

    zmlocalconfig -e zimbra_uid='500'
    zmlocalconfig -e zimbra_gid='500'

    Also, a few of the lines have a ';' as their value, I don't think that's correct :-) Notable, ldap_host, ldap_master_url, ldap_port, and ldap_url.

    ldap_master_url and ldap_url should be something like:

    ldap://hostname.domainname.com:389

    The others are blank on mine.
    -Eric




    gizmo:/opt/zimbra/libexec root# cat fixscript
    #!/bin/bash
    while read i; do
    su - zimbra -c "zmlocalconfig -f -e '$i'"
    done < /opt/zimbra/.saveconfig/config.save
    gizmo:/opt/zimbra/libexec root# ./fixscript
    Error: Failed to parse command line: org.apache.commons.cli.UnrecognizedOptionException : Unrecognized option: -XX:NewRatio=2;
    gizmo:/opt/zimbra/libexec root# ./zmsetup.pl
    Operations logged to /tmp/zmsetup.log.2265
    Checking java version...1.5 found
    Setting defaults...Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Exception in thread "main" java.lang.NoClassDefFoundError: com/zimbra/cs/util/RandomPassword
    Setting defaults from existing config...Warning: null valued key 'mysql_logger_root_password'
    Done
    Upgrading from 3.0.1_GA_160 to 4.0.2_GA_362
    Mon Oct 2 22:54:51 2006: Stopping zimbra services
    Password:
    Mon Oct 2 22:55:07 2006: Starting mysql
    UPGRADE FAILED - exiting

    Here's the output of zmlocalconfig:

    gizmo:~ zimbra$ zmlocalconfig
    ldap_cache_account_maxage = 15;
    ldap_cache_account_maxsize = 5000;
    ldap_cache_cos_maxage = 15;
    ldap_cache_cos_maxsize = 100;
    ldap_cache_domain_maxage = 15;
    ldap_cache_domain_maxsize = 100;
    ldap_cache_server_maxage = 15;
    ldap_cache_server_maxsize = 100;
    ldap_cache_timezone_maxsize = 100;
    ldap_cache_zimlet_maxage = 15;
    ldap_cache_zimlet_maxsize = 100;
    ldap_connect_pool_debug = false;
    ldap_connect_pool_initsize = 1;
    ldap_connect_pool_maxsize = 50;
    ldap_connect_pool_prefsize = 0;
    ldap_connect_pool_timeout = 120000;
    ldap_connect_timeout = 30000;
    ldap_host = ;
    ldap_is_master = false;
    ldap_log_level = 0;
    ldap_master_url = ;
    ldap_port = ;
    ldap_root_password = *
    ldap_url = ;
    localized_msgs_directory = /opt/zimbra/conf/msgs;
    logger_mysql_bind_address = localhost;
    logger_mysql_data_directory = /opt/zimbra/logger/db/data;
    logger_mysql_directory = /opt/zimbra/logger/mysql;
    logger_mysql_mycnf = /opt/zimbra/conf/my.logger.cnf;
    logger_mysql_pidfile = /opt/zimbra/logger/db/mysql.pid;
    logger_mysql_port = 7307;
    logger_mysql_socket = /opt/zimbra/logger/db/mysql.sock;
    mysql_bind_address = localhost;
    mysql_data_directory = /opt/zimbra/db/data;
    mysql_directory = /opt/zimbra/mysql;
    mysql_innodb_log_buffer_size = 8388608;
    mysql_innodb_log_file_size = 104857600;
    mysql_memory_percent = 40;
    mysql_mycnf = /opt/zimbra/conf/my.cnf;
    mysql_pidfile = /opt/zimbra/db/mysql.pid;
    mysql_port = 7306;
    mysql_read_buffer_size = 1048576;
    mysql_root_password = *
    mysql_socket = /opt/zimbra/db/mysql.sock;
    mysql_sort_buffer_size = 1048576;
    mysql_table_cache = 500;
    nio_imap_enable = false;
    nio_imap_log_buffers = false;
    nio_imap_write_queue_max_size = 10240000;
    nio_imap_write_queue_max_size_unauth = 20480;
    nio_write_buffer_compaction_percent = 50;
    postfix_alias_maps = hash:/etc/aliases;
    postfix_broken_sasl_auth_clients = yes;
    postfix_command_directory = /opt/zimbra/postfix-2.2.9/sbin;
    postfix_daemon_directory = /opt/zimbra/postfix-2.2.9/libexec;
    postfix_header_checks = pcre:/opt/zimbra/conf/postfix_header_checks;
    postfix_mailq_path = /opt/zimbra/postfix-2.2.9/sbin/mailq;
    postfix_manpage_directory = /opt/zimbra/postfix-2.2.9/man;
    postfix_newaliases_path = /opt/zimbra/postfix-2.2.9/sbin/newaliases;
    postfix_queue_directory = /opt/zimbra/postfix-2.2.9/spool;
    postfix_sender_canonical_maps = ldap:/opt/zimbra/conf/ldap-scm.cf;
    postfix_sendmail_path = /opt/zimbra/postfix-2.2.9/sbin/sendmail;
    postfix_smtpd_client_restrictions = reject_unauth_pipelining;
    postfix_smtpd_data_restrictions = reject_unauth_pipelining;
    postfix_smtpd_helo_required = yes;
    postfix_smtpd_tls_cert_file = /opt/zimbra/conf/smtpd.crt;
    postfix_smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key;
    postfix_smtpd_tls_loglevel = 1;
    postfix_transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf;
    postfix_version = 2.2.9;
    postfix_virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf;
    postfix_virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf;
    postfix_virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf;
    postfix_virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf;
    postfix_virtual_transport = error;
    ssl_allow_untrusted_certs = false;
    stats_img_folder = /opt/zimbra/logger/db/work;
    tomcat_directory = /opt/zimbra/tomcat;
    tomcat_java_heap_memory_percent = 30;
    tomcat_java_home = /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home;
    tomcat_java_options = -client -XX:NewRatio=2
    tomcat_keystore = /opt/zimbra/tomcat/conf/keystore;
    tomcat_pidfile = /opt/zimbra/log/tomcat.pid;
    wiki_enabled = false;
    wiki_user = wiki;
    zimbra_admin_service_port = 7071;
    zimbra_attrs_directory = /opt/zimbra/conf/attrs;
    zimbra_auth_always_send_refer = false;
    zimbra_db_directory = /opt/zimbra/db;
    zimbra_extension_common_directory = /opt/zimbra/lib/ext-common;
    zimbra_extension_directory = /opt/zimbra/lib/ext;
    zimbra_gid = -1;
    zimbra_home = /opt/zimbra;
    zimbra_index_directory = /opt/zimbra/index;
    zimbra_index_idle_flush_time = 600;
    zimbra_index_lru_size = 100;
    zimbra_index_max_uncommitted_operations = 200;
    zimbra_java_home = /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
    zimbra_ldap_password = *
    zimbra_ldap_user = zimbra;
    zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra;
    zimbra_log4j_properties = /opt/zimbra/conf/log4j.properties;
    zimbra_log_directory = /opt/zimbra/log;
    zimbra_logger_mysql_password = *
    zimbra_mtareport_max_recipients = 50;
    zimbra_mtareport_max_senders = 50;
    zimbra_mysql_password = *
    zimbra_mysql_user = zimbra;
    zimbra_server_hostname = gizmo.local;
    zimbra_spam_report_queue_size = 100;
    zimbra_store_directory = /opt/zimbra/store;
    zimbra_store_sweeper_max_age = 480;
    zimbra_throttle_op_concurrency = 1000,1000,1000,1000,1000;
    zimbra_tmp_directory = /tmp/zimbra;
    zimbra_uid = -1;
    zimbra_user = zimbra;
    zimbra_zmprov_default_soap_server = localhost;
    zimbra_zmprov_default_to_ldap = false;
    zimlet_directory = /opt/zimbra/tomcat/webapps/service/zimlet;[/QUOTE]

  5. #15
    Join Date
    Feb 2006
    Posts
    14
    Rep Power
    9

    Default

    I tried those changes (short of explicitly setting the uid and gid for the zimbra user, which I can't find) and didn't see any change.

    Is there some way I can attempt a "clean" install rather than an upgrade, without losing the existing mail data? The OSX installer doesn't make it obvious...

  6. #16
    Join Date
    Oct 2005
    Location
    Harrisburg, Pennsylvania
    Posts
    155
    Rep Power
    10

    Default

    Quote Originally Posted by bsb
    I tried those changes (short of explicitly setting the uid and gid for the zimbra user, which I can't find) and didn't see any change.

    Is there some way I can attempt a "clean" install rather than an upgrade, without losing the existing mail data? The OSX installer doesn't make it obvious...
    Yeah, we're kind of in a realm that I'm unfamilar with now... I'm not really sure what's not working, nor do I know how to get the user id of the Zimbra user in OSX (on Linux, you can type "id zimbra").

    You're right, in that barring any input from the Zimbra employees or someone else who's run into this, you may be well off to start with a fresh install. But, how you'd get your data imported into it is no more obvious on Linux than OSX... I'm unfortunatly not entirely certain that it can be done.

    What I'd do is search around the forums for others who try to import data from a non-working system.

    Not that this helps now, but for future reference, the thing to do would be to first make a backup before actually modifying your one and only copy of your installation.

    Prior to performing an upgrade, you can just copy /opt/zimbra to /opt/zimbra.backup or something similar.

    Sorry I can't be more help... and good luck,
    -Eric

  7. #17
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    Default

    can you send the output of

    which java
    java -version

  8. #18
    Join Date
    Feb 2006
    Posts
    14
    Rep Power
    9

    Default

    Brian,

    which java returns

    /usr/bin/java

    and java -version returns

    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
    Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

  9. #19
    Join Date
    Sep 2006
    Posts
    9
    Rep Power
    9

    Lightbulb Possibly a solution to this problem.

    Hi there.

    I got bit by this today as well and I've tried quite a few things to get up and running again.

    I have now finally gotten the upgrade to proceed as it should and here's what I *think* did the trick:

    In my case bin/mysql.server and probably many other scripts couldn't resolve $mysql_directory, etc. correctly. It just said /mysql and that doesn't exist.
    I changed this in .saveconfig/config.save (basically all occurences of ${zimbra_home} converted to /opt/zimbra) and ran the fix script (version 2). Didn't help. Tried a boatload of stuff.

    Oh, and I removed the tomcat parameters as well as mentioned previously '-client -XX:NewRatio=2' - Maybe the '-client' thing wasn't a problem but hey, it's running without it so far...

    Finally after getting some fresh air on my bikeride home I took a closer look at zmcontrol which had said it couldn't determine the status of the services. Hmm.. Probably an LDAP thing, I though. bin/ldap start said LDAP was running.

    Doing this:
    bin/ldap stop
    bin/ldap start

    Make a *world* of difference.

    Try this before and after the ldap restart (as root):

    /opt/zimbra/bin/zmprov -l gs your.zimbra.host

    When I ran it the first time I got:

    zimbra:/opt/zimbra/bin # /opt/zimbra/bin/zmprov -l gs localhost
    ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException zimbra.liga.dk:389)

    Afterwards it worked like a charm:

    zimbra:/opt/zimbra/bin # /opt/zimbra/bin/zmprov -l gs localhost
    ERROR: account.NO_SUCH_SERVER (no such server: localhost)
    zimbra:/opt/zimbra/bin # /opt/zimbra/bin/zmprov -l gs my.zimbra.host
    # name my.zimbra.host
    cn: my.zimbra.host
    objectClass: zimbraServer
    zimbraAdminPort: 7071
    zimbraFileUploadMaxSize: 10485760
    ....

    Running zmsetup.pl after this was the case *worked*!!

    I hope the same will work for the rest of you.

    This was a 4.0.0 -> 4.0.2 upgrade on SLES10 from SUSE10 RPMs (yes, unsupported at the moment. Hopefully that'll change).


Similar Threads

  1. Upgrade 4.5.4 to 4.5.5 questions
    By dlochart in forum Zimbra Connector for Outlook
    Replies: 11
    Last Post: 05-14-2007, 03:44 AM
  2. Upgrade 3.0.1 to 3.1.4?
    By tonyawbrey in forum Installation
    Replies: 4
    Last Post: 09-06-2006, 06:22 AM
  3. Replies: 2
    Last Post: 04-15-2006, 08:34 AM
  4. 3.0.1 GA upgrade problem
    By kollross in forum Administrators
    Replies: 5
    Last Post: 04-04-2006, 11:42 AM
  5. M1 -> M2 Upgrade Scripts
    By KevinH in forum Announcements
    Replies: 57
    Last Post: 12-15-2005, 10:10 AM

Posting Permissions

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