system failure: Cannot READ index directory

If Zimbra Desktop had a sync failure, it may have told you to post your error in this section.
Post Reply
kkh.hassfurt
Posts: 2
Joined: Thu Jul 23, 2015 7:02 am

system failure: Cannot READ index directory

Post by kkh.hassfurt »

Hello,

on some PC's with Win7 32/64Bit we have an error. The autocomplete failed (GAL). I look into the log and found:
2015-07-23 14:09:57,861 WARN  [sync-timer-gal] [] offline - Offline GAL sync task failed: system failure: Cannot READ index directory (mailbox=40 idxPath=U:imbraIMBRA~1index40index)
2015-07-23 14:14:51,796 DEBUG [sync-timer-gal] [] offline - [offline gal checking] started
2015-07-23 14:14:51,796 DEBUG [sync-timer-gal] [] offline - [offline gal checking] finished successful.
2015-07-23 14:14:51,796 WARN  [sync-timer-gal] [] offline - domain hassberg-kliniken.de exists with no offlineGalAccountId yet
2015-07-23 14:14:51,796 WARN  [sync-timer-gal] [] misc - Attempt to modify a deprecated attribute: zimbraPrefReadingPaneEnabled
2015-07-23 14:14:51,796 WARN  [sync-timer-gal] [] misc - Attempt to modify a deprecated attribute: zimbraPrefContactsInitialView
2015-07-23 14:14:51,796 WARN  [sync-timer-gal] [] misc - Attempt to modify a deprecated attribute: zimbraFeatureNotebookEnabled
2015-07-23 14:14:51,983 ERROR [sync-timer-gal] [] offline - error initializing account offline_gal@hassberg-kliniken.de__OFFLINE_GAL__
com.zimbra.common.service.ServiceException: system failure: Cannot READ index directory (mailbox=41 idxPath=U:imbraIMBRA~1index41index)
ExceptionId:sync-timer-gal:1437653691983:66a7a00e55f82049
Code:service.FAILURE
    at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:253)
    at com.zimbra.cs.index.LuceneIndex.<init>(LuceneIndex.java:184)
    at com.zimbra.cs.index.MailboxIndex.<init>(MailboxIndex.java:51)
    at com.zimbra.cs.mailbox.IndexHelper.instantiateMailboxIndex(IndexHelper.java:104)
    at com.zimbra.cs.mailbox.Mailbox.open(Mailbox.java:510)
    at com.zimbra.cs.mailbox.DesktopMailbox.open(DesktopMailbox.java:82)
    at com.zimbra.cs.mailbox.SyncMailbox.open(SyncMailbox.java:112)
    at com.zimbra.cs.mailbox.DataSourceMailbox.open(DataSourceMailbox.java:134)
    at com.zimbra.cs.mailbox.MailboxManager.createMailbox(MailboxManager.java:827)
    at com.zimbra.cs.mailbox.MailboxManager.getMailboxByAccountId(MailboxManager.java:386)
    at com.zimbra.cs.mailbox.MailboxManager.getMailboxByAccountId(MailboxManager.java:341)
    at com.zimbra.cs.mailbox.MailboxManager.getMailboxByAccount(MailboxManager.java:287)
    at com.zimbra.cs.mailbox.MailboxManager.getMailboxByAccount(MailboxManager.java:246)
    at com.zimbra.cs.account.offline.OfflineProvisioning.createAccountInternal(OfflineProvisioning.java:1202)
    at com.zimbra.cs.account.offline.OfflineProvisioning.createGalAccount(OfflineProvisioning.java:950)
    at com.zimbra.cs.mailbox.GalSync.ensureGalAccountExists(GalSync.java:290)
    at com.zimbra.cs.mailbox.GalSync.sync(GalSync.java:234)
    at com.zimbra.cs.mailbox.GalSync.runTask(GalSync.java:223)
    at com.zimbra.cs.mailbox.GalSync$1.run(GalSync.java:120)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)
2015-07-23 14:14:52,045 WARN  [sync-timer-gal] [] offline - Offline GAL sync task failed: system failure: Cannot READ index directory (mailbox=41 idxPath=U:imbraIMBRA~1index41index)
We delete the Zimbra Desktop directory, update java, deinstall and install the client, reset gal. Nothing help to resolv the problem....
We use Zimbra Destop Clinet 7.2.7 and the latest zimbra server. The Web-Client work fine, no problems. We modify 2 variables in zdrun.vbs to push the Zimbra Desktop directory to the user volume "u:": GetDataRoot = "U:imbraimbra Desktop" and sLocalAppDir = "U:"
In this example has the user full rights on this U: (she was a domain admin). The directory index40index was empty. In my directory are 5 files. My log looks good:
2015-07-23 08:53:47,810 DEBUG [sync-timer-gal] [] offline - [offline gal checking] started
2015-07-23 08:53:47,810 DEBUG [sync-timer-gal] [] offline - [offline gal checking] finished successful.
2015-07-23 08:53:47,826 DEBUG [sync-timer-gal] [] offline - Offline GAL sync retry for hassberg-kliniken.de
2015-07-23 08:53:47,826 DEBUG [sync-timer-gal] [] offline - Offline GAL sync retry bypassed, no retry items
2015-07-23 08:58:47,814 DEBUG [sync-timer-gal] [] offline - [offline gal checking] started
2015-07-23 08:58:47,814 DEBUG [sync-timer-gal] [] offline - [offline gal checking] finished successful.
2015-07-23 08:58:47,814 DEBUG [sync-timer-gal] [] offline - Offline GAL sync retry for hassberg-kliniken.de
2015-07-23 08:58:47,814 DEBUG [sync-timer-gal] [] offline - Offline GAL sync retry bypassed, no retry items
2015-07-23 10:12:04,395 DEBUG [main] [] offline - DB migration check started...
2015-07-23 10:12:04,395 DEBUG [main] [] offline - DB migration done
2015-07-23 10:12:04,410 DEBUG [main] [] offline - zimbra db optimize started...
2015-07-23 10:12:04,426 DEBUG [main] [] offline - zimbra db optimize done
2015-07-23 10:12:04,972 INFO  [main] [] extensions - Loading extensions from C:Program Filesimbraimbra Desktoplibext
2015-07-23 10:12:04,972 INFO  [main] [] extensions - Initializing extensions
2015-07-23 10:12:05,003 DEBUG [main] [] offline - Deploying new zimlets...
2015-07-23 10:12:05,003 DEBUG [main] [] offline - Zimlets deployment done.
2015-07-23 10:12:05,034 INFO  [main] [] extensions - Post-Initializing extensions
2015-07-23 10:12:05,487 INFO  [main] [] log - No Transaction manager found - if your webapp requires one, please configure one.
2015-07-23 10:12:05,721 INFO  [main] [] log - No Transaction manager found - if your webapp requires one, please configure one.
2015-07-23 10:12:05,814 INFO  [main] [] log - Started SelectChannelConnector@127.0.0.1:52302
2015-07-23 10:12:05,877 INFO  [sync-manager-init] [] offline - service port is ready.
2015-07-23 10:12:06,532 DEBUG [sync-manager-init] [] offline - [offline gal checking] started
2015-07-23 10:12:06,547 DEBUG [btpool0-2] [] offline - setting uiloading to true
2015-07-23 10:12:06,563 DEBUG [sync-manager-init] [] offline - [offline gal checking] finished successful.
2015-07-23 10:12:06,563 INFO  [sync-manager-init] [] offline - ui loading - sync paused
2015-07-23 10:12:07,608 DEBUG [btpool0-2] [mid=1;oip=127.0.0.1;] offline - [heapdump] no heapdump available
2015-07-23 10:12:07,686 DEBUG [btpool0-3] [] offline - setting uiloading to true
2015-07-23 10:12:08,622 DEBUG [btpool0-4] [mid=1;] offline - setting uiloading to true
2015-07-23 10:12:10,089 INFO  [backup-timer] [] offline - Auto-Backup Disabled
2015-07-23 10:12:11,383 DEBUG [btpool0-5] [mid=4;] offline - setting uiloading to false
2015-07-23 10:12:11,415 INFO  [btpool0-5] [mid=4;] offline - setting connection status to up
Any Ideas?

Best regards from Germany
Jörg
kkh.hassfurt
Posts: 2
Joined: Thu Jul 23, 2015 7:02 am

system failure: Cannot READ index directory

Post by kkh.hassfurt »

Hi,
we resolved this problem. In our case we used volume letters eg u: (we run zimbra on windows terminal server).  Now we use URL like \nt-has-dbuser$
Changes:
In Function GetDataRoot() change GetDataRoot
from
GetDataRoot = sLocalAppDir & "imbraimbra Desktop"
to
GetDataRoot = "\nt-has-dbuser$" & Username & "imbraimbra Desktop"
In main after remark change
from
'------------------------------- main ---------------------------------
to
'------------------------------- main ---------------------------------
Set WshShell = WScript.CreateObject("WScript.Shell")
Username = WshShell.ExpandEnvironmentStrings("%USERNAME%")
In main change sLocalAppDir
from
sLocalAppDir = oFso.getFolder(oShellApp.Namespace(&H1c&).Self.Path).ShortPath
to
sLocalAppDir = "\nt-has-dbuser$" & Username & ""
Thx to Mr. Mertel for the hint
Post Reply