Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

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 02-01-2008, 03:34 PM
Senior Member
 
Posts: 62
Default REST ICS Import

Would someone tell me how to see logs from the REST service, not just http logs.

I'm trying to use REST to import an ICS file from my Google Calendar as per:

User Migration - Zimbra :: Wiki

From the wiki I gather I can do this:

curl -v -u fultonj:$passwd --data-binary @/home/fultonj/work/zimbra/data/fultonj.ics http://zimbra.lafayette.edu/service/...lendar?fmt=ics

which returns normally and I can even see a Set-Cookie. I can also see that my request went through by looking at my logs with:

tail -f /opt/zimbra/tomcat/logs/access_log.2008-02-01

which produces:

139.147.160.232 - - [01/Feb/2008:18:29:19 -0500] "POST /service/home/fultonj/Calendar?fmt=ics HTTP/1.1" 200 - "-" "curl/7.16.4 (x86_64-pc-linux-gnu) libcurl/7.16.4 OpenSSL/0.9.8e zlib/1.2.3.3 libidn/1.0"

However, my calendar is not getting updated. I imagine that Tomcat is getting the binary data that I'm posting since it's taking what seems like the appropriate amount of time for a 500k ICS file. However it's not getting processed and I'd like to know where it's failing.
Reply With Quote
  #2 (permalink)  
Old 02-01-2008, 09:54 PM
Zimbra Employee
 
Posts: 1,434
Default

Is there anything of note in mailbox.log?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 02-03-2008, 03:56 PM
Senior Member
 
Posts: 62
Default

Yes, I do see some mention of the event in mailbox.log (below). However, it's not very telling. It would be great to know that my ICS file didn't parse because of a certain line. I see authentication failures (not in this event) offer a java trace in mailbox.log. Can I conclude that REST believes it had no errors when processing my ICS file if there's nothing in mailbox.log?

/opt/zimbra/log/mailbox.log.2008-02-01

2008-02-01 18:29:09,537 INFO [ImapServer-12097] [] ProtocolHandler - Handler exiting normally
2008-02-01 18:29:18,895 INFO [http-80-Processor100] [name=fultonj@zimbra.lafaye
tte.edu;mid=3;ip=139.147.160.232;] mailbox - UserServlet (POST): http://zimbra.lafayette.edu/service/...ltonj/Calendar
2008-02-01 18:30:07,653 INFO [ImapServer-12098] [] imap - [139.147.6.13] connected
2008-02-01 18:30:08,180 INFO [ImapServer-12098] [] ProtocolHandler - Handler exiting normally
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 07:16 AM
Moderator
 
Posts: 441
Default

I'm trying to get .ics files to import via CLI as well. Firstly, I'd like to be able to import these without having the user's password, maybe just use the admin, but that doesn't seem to work. There may not be a workaround for that one. Secondly, the import fails. I have just exported the .ics from my calendar, and am trying to import it into a new test user. I'm also trying to import CSV's, and having issues

edit: removed the errors. Looks like I was fatfingering something. Moving over to import address book failure where the CSV errors are being discussed.

Last edited by p24t; 04-11-2008 at 08:56 AM..
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.