Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Desktop > Error Reports

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-2009, 07:26 AM
Member
 
Posts: 11
Exclamation Need constant re-installation on OS X

I don't know if anyone has run across this one. I'm running ZD 1.0 on Mac OS X 10.5.6. I use ZD as my primary mail program, and generally it works fine. However, I have to uninstall and reinstall it at least once or twice a week.

It seems that if I run Software Update (especially one that requires me to restart my computer), the next time I run Zimbra Desktop I get the "Couldn't access Yahoo! Zimbra Desktop server" message. The only way to fix it is to uninstall and reinstall Zimbra Desktop. Then it runs fine again--until I have to restart.

I can't tell if just a simple restart triggers the problem (it's inconsistent), but a software update ALWAYS does it.

Luckily I'm an admin user on my machine, so the reinstall is somewhat less painful; it's more involved for a non-admin user (see my post in the Installations thread).
Reply With Quote
  #2 (permalink)  
Old 03-03-2009, 09:47 PM
Zimbra Employee
 
Posts: 831
Default

If it fails again, can you attach the following files ?

log/zdesktop.out
log/zdesktop.log
.install4j/installation.log
Reply With Quote
  #3 (permalink)  
Old 03-04-2009, 08:54 AM
Member
 
Posts: 11
Default Files attached

I attached the files you requested (edited for privacy--changed user and domain names only). Had to zip the installation.log to get it to upload, etc.

When trying to start up Zimbra Desktop after restart, got this in console log:

====================================
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: canUpdate? testing /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/update.test
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: canUpdate? testing /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/updates/0/update.test
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: can update
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** General: Reading Status File: /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/updates/0/update.status
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: _postUpdateProcessing: No Status, No Update
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateManager: _loadXMLFileIntoArray: XML File does not exist
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop Testing continuous integration1** YAHOO ** loading from pref xml file
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** Pref file empty not found
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** Getting config from url:http://us.data.toolbar.yahoo.com/inq..._Mac_OS_X_10.5
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop TypeError: editSearch is null
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** [object Object]
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop TypeError: editSearch is null
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop launchctl start error: No such process
====================================

Earlier, when the system was starting up after a reboot, this message appeared:

====================================
3/4/09 9:47:59 AM com.apple.launchctl.Aqua[277] launchctl: Dubious permissions on file (skipping): /Users/myusername/Library/LaunchAgents
====================================

There are two files at ~/Library/LaunchAgents; one of them is com.zimbra.zdesktop.plist and looks like this:

====================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.zimbra.zdesktop</string>
<key>ProgramArguments</key>
<array>
<string>/Users/myusername/zimbra/zdesktop/zdesktop</string>
<string>start</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Users/myusername/zimbra/zdesktop/log</string>
<key>StandardOutPath</key>
<string>/Users/myusername/zimbra/zdesktop/log/zdesktop.out</string>
<key>StandardErrorPath</key>
<string>/Users/myusername/zimbra/zdesktop/log/zdesktop.out</string>
</dict>
</plist>
====================================

Both files there have my user name and group and the following permissions: -rw-r--r--

Could there be some kind of permissions issue that's keeping the background process from starting, thus causing the connection to fail initially? I wonder if Software Update is messing with this stuff...
Attached Files
File Type: zip installation.log.zip (58.0 KB, 2 views)
File Type: log zdesktop.log (22.3 KB, 34 views)
File Type: txt zdesktop.out.txt (377 Bytes, 32 views)
Reply With Quote
  #4 (permalink)  
Old 03-04-2009, 09:02 AM
Member
 
Posts: 11
Default Some other oddities

On startup after Software Update, this from the console log:

================================
3/4/09 9:47:59 AM com.apple.launchctl.Aqua[277] launchctl: Dubious permissions on file (skipping): /Users/myusername/Library/LaunchAgents
================================

And later, when trying to start up Zimbra Desktop:

================================
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: canUpdate? testing /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/update.test
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: canUpdate? testing /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/updates/0/update.test
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: can update
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** General: Reading Status File: /Applications/Yahoo! Zimbra Desktop.app/Contents/Resources/updates/0/update.status
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateService: _postUpdateProcessing: No Status, No Update
3/4/09 9:49:04 AM [0x0-0x21021].com.zimbra.zdesktop *** UpdateManager: _loadXMLFileIntoArray: XML File does not exist
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop Testing continuous integration1** YAHOO ** loading from pref xml file
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** Pref file empty not found
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** Getting config from url:http://us.data.toolbar.yahoo.com/inq..._Mac_OS_X_10.5
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop TypeError: editSearch is null
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop ** YAHOO ** [object Object]
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop TypeError: editSearch is null
3/4/09 9:49:07 AM [0x0-0x21021].com.zimbra.zdesktop launchctl start error: No such process
================================

I'm wondering if there is some kind of permissions issue with the ~/Library/LaunchAgents/com.zimbra.zdesktop.plist file. If it's not getting loaded at startup, the background process wouldn't start and thus couldn't connect to the server. That file (along with another in the same folder) is owned by me and has permissions -rw-r--r-- (chmod 644).

Any ideas?
Reply With Quote
  #5 (permalink)  
Old 03-04-2009, 10:40 AM
Member
 
Posts: 11
Red face Ooops!

Sorry for the duplicated info in the posts...I didn't think the first one got posted.
Reply With Quote
  #6 (permalink)  
Old 03-04-2009, 04:00 PM
Zimbra Employee
 
Posts: 831
Default

Looks like there is some permission issue for your LaunchAgents directory. That prevents zd backend server from auto-start after restarting your mac.

Can you run these from Terminal and paste the output here?

Code:
cd /Users/<your user name>/Library
ls -ld LaunchAgents/
ls -l LaunchAgents/
Reply With Quote
  #7 (permalink)  
Old 03-05-2009, 07:13 AM
Member
 
Posts: 11
Default Permissions info

> cd /Users/myusername/Library

> ls -ld LaunchAgents
drwxrwxrwx 4 myusername staff 136 Mar 4 08:25 LaunchAgents

> ls -l LaunchAgents
-rw-r--r-- 1 myusername staff 815 Dec 17 08:21 com.apple.SafariBookmarksSyncer.plist
-rw-r--r-- 1 myusername staff 811 Mar 4 08:25 com.zimbra.zdesktop.plist


The SafariBookmarksSyncer is something used by Apple's MobileMe service to sync bookmarks between multiple computers, but I'm not using that feature, so I wouldn't know if it had started up or not.

I wonder if the LaunchAgents directory permissions need to be more restrictive in order to run the enclosed files as launch items? I think system LaunchAgents have to be owned by root, etc.
Reply With Quote
  #8 (permalink)  
Old 03-05-2009, 08:14 AM
Zimbra Employee
 
Posts: 831
Default

can you make it

drwxr-xr-x 4 myusername staff 136 Mar 4 08:25 LaunchAgents

, then restart your mac?

Quote:
Originally Posted by HLCTech View Post
> cd /Users/myusername/Library

> ls -ld LaunchAgents
drwxrwxrwx 4 myusername staff 136 Mar 4 08:25 LaunchAgents

> ls -l LaunchAgents
-rw-r--r-- 1 myusername staff 815 Dec 17 08:21 com.apple.SafariBookmarksSyncer.plist
-rw-r--r-- 1 myusername staff 811 Mar 4 08:25 com.zimbra.zdesktop.plist


The SafariBookmarksSyncer is something used by Apple's MobileMe service to sync bookmarks between multiple computers, but I'm not using that feature, so I wouldn't know if it had started up or not.

I wonder if the LaunchAgents directory permissions need to be more restrictive in order to run the enclosed files as launch items? I think system LaunchAgents have to be owned by root, etc.
Reply With Quote
  #9 (permalink)  
Old 03-05-2009, 10:43 AM
Member
 
Posts: 11
Smile It Worked!!!

Thank you VERY, VERY much! I changed the permissions on that folder (using "chmod 0755 /Users/myusername/Library/LaunchAgents") and it fixed the problem. It also fixed another big problem for me--I couldn't get non-admin users to run Zimbra Desktop, and after applying that change, it worked for them, too. So you solved both of my biggest problems this week with a single suggestion.

Thanks again!
Reply With Quote
  #10 (permalink)  
Old 03-05-2009, 02:02 PM
Zimbra Employee
 
Posts: 831
Default

You are welcome. Thanks for your feedback. We too learned something here that will help us to improve mac installer.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.