[solved] Can't call method "tzid"

Ask questions about your setup or get help installing ZCS server (ZD section below).
Post Reply
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

[solved] Can't call method "tzid"

Post by fbzimblet »

Code: Select all

  Common configuration

   1) Hostname:                                mail2.domain.my
   2) Ldap master host:                        mta1.domain.my
   3) Ldap port:                               389
   4) Ldap Admin password:                     set
   5) LDAP Base DN:                            cn=zimbra
   6) Secure interprocess communications:      yes
** 7) TimeZone:                                UNSET

Select, or 'r' for previous menu [r] 7

Can't call method "tzid" on an undefined value at /opt/zimbra/libexec/zmsetup.pl line 2963, <> line 6.
The above problem occurred when I re-run install script on second mailbox.

The first one does not have this problem.

Installation log ended with

Code: Select all

Thu Mar 30 10:07:01 2017 Verified ldap running at ldap://mta1.domain.my:389
Thu Mar 30 10:07:01 2017 Skipping update of unchanged value for ldap_url=ldap://mta1.domain.my:389.
Thu Mar 30 10:07:01 2017 Skipping update of unchanged value for ldap_starttls_supported=1.
Thu Mar 30 10:07:01 2017 Skipping update of unchanged value for zimbra_require_interprocess_security=1.
Thu Mar 30 10:07:01 2017 Verified uid=zimbra,cn=admins,cn=zimbra on mta1.domain.my.
Thu Mar 30 10:07:01 2017 Skipping update of unchanged value for zimbra_ldap_password=password.
Thu Mar 30 10:07:31 2017 Loading default list of timezones.
Thu Mar 30 10:07:31 2017 Previous TimeZoneID
Thu Mar 30 10:07:31 2017 Determining system locale.
Thu Mar 30 10:07:31 2017 DEBUG: Local tz name +08
Where should I look next?
Last edited by fbzimblet on Thu Mar 30, 2017 11:25 am, edited 1 time in total.
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Can't call method "tzid"

Post by DualBoot »

Hello

I think your case is strange because if it is your second mailbox server, and if you have set the right ldap master url with the right password,
you should have retrieve the right timezone.
If timezone does not change after setting zimbra ldap password, you must have set a wrong password.

Regards,
User avatar
tonster
Zimbra Employee
Zimbra Employee
Posts: 313
Joined: Fri Feb 21, 2014 10:14 am
Location: Ypsilanti, MI
ZCS/ZD Version: Release 8.7.0_GA_1659.RHEL6_64_2016

Re: Can't call method "tzid"

Post by tonster »

Any chance you're attempting to install a new mailbox server on a different version of zimbra?

Sent from my SM-G925T using Tapatalk
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: Can't call method "tzid"

Post by fbzimblet »

I had made sure zimbra_ldap_password from master ldap and same version of installer 7.1.4. I planned to upgrade 8.7.5 tomorrow night. Only this last mailbox is failing reinstall.

I had to rsync zimbramon folder from first mailbox to solve "undefined symbol: Perl_Tstack_sp_ptr" error but this tzid is not going away.
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: Can't call method "tzid"

Post by fbzimblet »

Oddly enough, I just try my luck and I can start mailbox services but with ldap error

Code: Select all

[zimbra@mail2 ~]$ zmcontrol status
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Host mail2.domain.my
        convertd                Running
        mailbox                 Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running
        
[zimbra@mail2 ~]$ zmlocalconfig zimbra_server_hostname ldap_url ldap_master_url
zimbra_server_hostname = mail2.domain.my
ldap_url = ldap://mta1.domain.my:389
ldap_master_url = ldap://mta1.domain.my:389


A few services are missing compared to first mailbox

Code: Select all

[zimbra@mail1 ~]$ zmcontrol status
Host mail1.domain.my
        convertd                Running
        logger                  Running
        mailbox                 Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: Can't call method "tzid"

Post by fbzimblet »

There are also these messages during zmsetup.pl

Code: Select all

ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
Setting defaults...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
done.
Setting defaults from existing config...ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed)
done.


More info on current timezone settings

Code: Select all

[root@mail2 ~]# grep Kuala_Lumpur /opt/zimbra/conf/timezones.ics
TZID:Asia/Kuala_Lumpur

[root@mail2 ~]# date +%Z
+08

[root@mail2 ~]# cat /etc/sysconfig/clock
ZONE="Asia/Kuala_Lumpur"
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: Can't call method "tzid"

Post by fbzimblet »

More tests

DNS & hostname does not seem to have any problem

Code: Select all

[root@mail2 ~]# hostname
mail2.domain.my
[root@mail2 ~]# hostname -f
mail2.domain.my
[root@mail2 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:0c:29:00:5f:1c brd ff:ff:ff:ff:ff:ff
    inet 10.1.1.57/24 brd 10.1.1.255 scope global eth1
[root@mail2 ~]# dig `hostname`

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.4 <<>> mail2.domain.my
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30056
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;mail2.domain.my.           IN      A

;; ANSWER SECTION:
mail2.domain.my.    3600    IN      A       10.1.1.57

;; AUTHORITY SECTION:
domain.my.          3600    IN      NS      domain.my.

;; ADDITIONAL SECTION:
domain.my.          3600    IN      A       10.1.1.55

;; Query time: 11 msec
;; SERVER: 10.1.1.55#53(10.1.1.55)
;; WHEN: Thu Mar 30 18:08:08 2017
;; MSG SIZE  rcvd: 83

[root@mail2 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
#::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.57       mail2.domain.my mail2

[root@mail2 ~]# su - zimbra
[zimbra@mail2 ~]$ zmhostname
mail2.domain.my
able to reach master ldap

Code: Select all

[root@mail2 ~]# telnet mta1.domain.my 389
Trying 10.1.1.55...
Connected to mta1.domain.my.
Escape character is '^]'.
^]
telnet> close
Connection closed.
fbzimblet
Advanced member
Advanced member
Posts: 119
Joined: Sun Apr 17, 2016 4:15 pm

Re: Can't call method "tzid"

Post by fbzimblet »

I managed to solve it by editing /opt/zimbra/conf/timezones.ics to match output of "date +%Z" with my timezone Asia/Kuala_Lumpur

Code: Select all

TZNAME:+08
DTSTART:19710101T000000
TZOFFSETTO:+0800
TZOFFSETFROM:+0800
END:STANDARD
END:VTIMEZONE
BEGIN:VTIMEZONE
TZID:Asia/Kuala_Lumpur
LAST-MODIFIED:20111014T231341Z
X-ZIMBRA-TZ-PRIMARY:TRUE
X-ZIMBRA-TZ-MATCH-SCORE:100
X-ZIMBRA-TZ-ALIAS:(GMT+08.00) Kuala Lumpur / Singapore
X-ZIMBRA-TZ-ALIAS:(UTC+08.00) Kuala Lumpur / Singapore
Post Reply