Thứ Ba, 9 tháng 5, 2017

Fix the Zimbra permissions

Để fix quền cho zimbra sử dụng lệnh sau: 

/opt/zimbra/libexec/zmfixperms  -verbose

Để fix cả index và store thì sử dụng lệnh:

/opt/zimbra/libexec/zmfixperms -extended

Fix a 'A network service has occurred' error with mailbox.log showing "index - Failed to open

Khi bạn gửi một message trên web  mail bạn thấy bắn ra một popup hiển thị “A network service has occurred” và trong mailbox.log hiển thị các dòng báo lỗi “index - Failed to open Indexer”.


Cách sửa lỗi:
Reindex lại tài khoản bị lỗi:
zmprov rim user@example.com start


Fix Random LockFailException: Too many waiters error

Trong log mailbox.log xuất hiện lỗi: com.zimbra.cs.mailbox.MailboxLock$LockFailedException: too many waiters
"com.zimbra.cs.mailbox.MailboxLock$LockFailedException: too many waiters: 15
 at com.zimbra.cs.mailbox.MailboxLock.lock(MailboxLock.java:187)
 at com.zimbra.cs.mailbox.Mailbox.beginTransaction(Mailbox.java:1710)
 at com.zimbra.cs.mailbox.Mailbox.beginReadTransaction(Mailbox.java:1686)"

Cách sửa lỗi:
Thay đổi tham số : mailbox_lock_max_waiting_threads
su - zimbra
zmlocalconfig -e zimbra_mailbox_lock_max_waiting_threads=30
zmmailboxdctl restart


Fix the error mail.QUERY PARSE ERROR parserErr, STR, "Encountered ""


Khi người dùng đăng nhập vào web mail sẽ hiển thị ra một popup như sau:


Trong log mailbox.log có đoạn lỗi như sau:
2015-05-07 09:28:25,937 INFO  [qtp509886383-3550:https://YOURIP:8443/ser
vice/soap/SearchRequest] [name=THEEMAILADDRESS@OFTHE.USER;mid=31;ip=CLIENTIP;u
a=ZimbraWebClient - GC42 (Mac)/8.6.0_GA_1153;] SoapEngine - handler exception
com.zimbra.cs.mailbox.MailServiceException: Couldn't parse query: in:
ExceptionId:qtp509886383-3550:https://208.71.113.120:8443/service/soap/SearchRequest:1430990905937:2d86683ef45c06b8
Code:mail.QUERY_PARSE_ERROR Arg:(curTok, STR, "in:") Arg:(colNo, NUM, "1") Arg:(parserErr, STR, "Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...
    ")
...

Caused by: com.zimbra.cs.index.query.parser.ParseException: Encountered "<EOF>" at line 1, column 3.
Was expecting one of:
    "(" ...
    <TERM> ...
    <QUOTED_TERM> ...
   
        at com.zimbra.cs.index.query.parser.Parser.generateParseException(Parser.java:1213)
        at com.zimbra.cs.index.query.parser.Parser.jj_consume_token(Parser.java:1145)
        at com.zimbra.cs.index.query.parser.Parser.TextTerm(Parser.java:793)
        at com.zimbra.cs.index.query.parser.Parser.TextClause(Parser.java:364)
        at com.zimbra.cs.index.query.parser.Parser.Clause(Parser.java:279)
        at com.zimbra.cs.index.query.parser.Parser.Query(Parser.java:94)
        at com.zimbra.cs.index.query.parser.Parser.parse(Parser.java:30)
        at com.zimbra.cs.index.query.parser.QueryParser.parse(QueryParser.java:302)
        ... 56 more


Cách sửa lỗi:
Trên giao diện quản trị:  Preferences > Mail > Displaying messages > Default Mail Search

Sửa lại như sau: