Results 1 to 7 of 7

Thread: Zimbra to Zimbra migration

  1. #1
    Join Date
    Nov 2007
    Posts
    41
    Rep Power
    7

    Default Zimbra to Zimbra migration

    I'm trying the script at: User Migration - Zimbra :: Wiki

    ...with no luck. Does anyone have it working?

    I'm trying it from an admin console that has access over the network to both the old and new servers. I'm unclear as what to place here:

    my $domain="xxxxx.com";
    my $user="";
    my $pass="";

    The first few errors I get are:

    Unknown option: buffersize
    Unknown option: nosyncacls
    https://<the string it generates>: Bad port number.
    https://<the string it generates>: Bad port number.
    .....


    Is this really the easiest way to migrate users from an open source server to a network edition server? It would seem Zimbra would want to encourage this type of migration.....



    Thanks,
    Kevin

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Are you using SSL?

  3. #3
    Join Date
    Nov 2007
    Posts
    41
    Rep Power
    7

    Default

    yes, both servers are setup to use SSL (with the default certs)

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    hmm,
    are you running on a non-standard https port?

    If not, can you take a look at your log files to see if it's connecting?

  5. #5
    Join Date
    Nov 2007
    Posts
    41
    Rep Power
    7

    Default

    After watching both /var/log/zimbra.log and /opt/zimbra/log/mailbox.log the only line that appears is:
    2008-01-09 10:34:25,739 INFO [http-443-Processor47] [name=user@dom.com;mid=15;ip=MGMT-STATION-IP;] mailbox - UserServlet (POST): https://new.server.com/service/home/...m.com/contacts
    ...on the new server.

    The total output of the script is:
    Unknown option: buffersize
    Unknown option: nosyncacls
    https://user@dom.com:temp123@old.ser.../contacts.csv: Bad port number.
    https://user@dom.com:temp123@old.ser.../calendar.ics: Bad port number.
    Warning: Couldn't read data from file "calendar.ics", this makes an empty
    Warning: POST.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 2507 100 2507 0 0 12154 0 --:--:-- --:--:-- --:--:-- 612k
    <html><head><title>Apache Tomcat/5.5.15 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [-3], read [-1] at line 1

    com.zimbra.cs.service.UserServlet.doPost(UserServl et.java:446)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:152)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    </pre></p><p><b>root cause</b> <pre>com.zimbra.common.service.ServiceException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [-3], read [-1] at line 1

    com.zimbra.common.service.ServiceException.PARSE_E RROR(ServiceException.java:183)
    com.zimbra.cs.mailbox.calendar.ZCalendar$ZCalendar Builder.buildMulti(ZCalendar.java:956)
    com.zimbra.cs.service.formatter.IcsFormatter.saveC allback(IcsFormatter.java:118)
    com.zimbra.cs.service.formatter.Formatter$SaveOper ation.callback(Formatter.java:263)
    com.zimbra.cs.operation.Operation.schedule(Operati on.java:180)
    com.zimbra.cs.service.formatter.Formatter.save(For matter.java:93)
    com.zimbra.cs.service.UserServlet.doPost(UserServl et.java:439)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:152)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.15</h3></body></html>Warning: Couldn't read data from file "contacts.csv", this makes an empty
    Warning: POST.
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 1043 100 1043 0 0 5324 0 --:--:-- --:--:-- --:--:-- 0
    <html><head><title>Apache Tomcat/5.5.15 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - could not parse csv file</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>could not parse csv file</u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect (could not parse csv file).</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.15</h3></body></html>rm: cannot remove `calendar.ics': No such file or directory
    rm: cannot remove `contacts.csv': No such file or directory


    The options up top:
    my $domain="dom.com";
    my $user="";
    my $pass="";

    What should user and pass be set to? I just left them blank. I tried entering the user i wanted to migrate but the script bombed because there was an @ in the username string.


    Thanks for your help!

    Kevin

    (Once we get this running we should update the wiki. Could I update it - or is it staff only? I'd like some more comments to make it a little more user friendly)

  6. #6
    Join Date
    Nov 2007
    Posts
    41
    Rep Power
    7

    Default

    Not sure if i have a newer version of wget but i had to specify the username and password as command line arguements (ie --http-passwd=thepass --http-user=user@dom.com) instead of in the URL (ie https://usersnameass@theurl).

    It's working now - hopefully if someone else hits this problem they can fix it as well.

    It would be nice if it was updated in the wiki (not sure if the public can).

  7. #7
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

Similar Threads

  1. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 04:43 AM
  2. Replies: 31
    Last Post: 12-15-2007, 08:05 PM
  3. Replies: 22
    Last Post: 12-02-2007, 04:05 PM
  4. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •