Author Topic: Openchange and Migration  (Read 4959 times)

jcsbarrio

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Openchange and Migration
« on: January 13, 2014, 06:46:43 am »
Hi everybody!

I have installed the new version of Zentyal 3.3.2 (last patches included), because I wanted to use the new Openchange integration. My problem or maybe bug is when I am trying to migrate one exchange account to Zentyal using the web interface clicking on the Connect button, neither the website shows me any message nor debug logs in zentyal. Finally, I have used the Javascript debugger from my Chrome, it shows me:

Uncaught TypeError: Cannot call method 'migrationMessage' of undefined (Connect:424)

Any idea?

Thanks,
Juan

jkerihuel

  • Zentyal Staff
  • Zen Warrior
  • *****
  • Posts: 152
  • Karma: +18/-3
    • View Profile
Re: Openchange and Migration
« Reply #1 on: January 13, 2014, 09:58:06 am »
Hi Juan,

We will dig into this shortly and get back to you when I have more information.

FYI, note that the current openchange migration wizard is still very experimental code and comes with several limitations. We have in the pipe to improve the core technology involved here but it is unlikely to happen before mid-end of Q2 due to our roadmap.

Br,
Julien.
Twitter: http://twitter.com/jkerihuel
Key fingerprint = 08BA 50B1 9EFF 8E1E FB4A  24FA B2A9 D5F3 9624 1CC2

cperello

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Openchange and Migration
« Reply #2 on: January 23, 2014, 09:03:09 pm »
Hi Juan,

Would be possible that you enable the Zentyal's debug flag and try it again to get extra information in our logs?

To enable it, please, edit /etc/zentyal/zentyal.conf and set the debug flag to yes (debug = yes). Now, you will need to restart the webadmin UI:
Code: [Select]
/etc/init.d/zentyal webadmin restart
At this point, you should get a lot more of information on /var/log/zentyal/zentyal.log

Please, try again the migration and take a look to the log to check whether you get more information now and share it here to see what could be done to fix it.

Thank you!

scatty

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Openchange and Migration
« Reply #3 on: January 28, 2014, 03:53:54 pm »
Hi,

I experience the same behavior. I'm trying to migrate from an Exchange Server 2010 and I do not see any messages (even with debug enabled) in the logs except in the access logs:
127.0.0.1 - administrator [28/Jan/2014:15:42:04 +0100] "POST /OpenChange/Migration/ConnectToServer HTTP/1.0" 200 82 "https://10.10.10.233/OpenChange/Migration/Connect" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0" "-"

In my browser using Firebug I can see that a POST Request is send:
server=10.10.10.231&username-origin=user&password-origin=***&username-local=user&password-local=***

As you can see zentyal server has the IP: 10.10.10.233 and the Exchange Server has the IP 10.10.10.231

The returning error I can see in the POST Reply is:
{"success":0,"error":"Error connecting to remote server. mkdir: Unknown error -1"}

But its not displayed and I have no clue what it means and the problem could be. How is the connection made? can I check the connection somehow with other tools?

Thanks in advance.
Jan



cperello

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Openchange and Migration
« Reply #4 on: January 30, 2014, 12:56:44 pm »
Hi scatty and Juan,

For the error noted by Juan, I just found the problem and I'm going to prepare a fix today that should be released soon, once it pass our QA process.

About the problem reported by scatty, seems like your problem is something else, it seems to come when it tries to create the folder to store the temporary profile with the connection information, before the actual connection is done.

I'm not able to reproduce the issue, would you please execute the following commands to provide us with more information?

- From the terminal, Stop the migrate process:
Code: [Select]
sudo stop zentyal.zoc-migrate- From the terminal, Start the migrate process manually with debugging activated:
Code: [Select]
sudo -H /usr/lib/zoctools/libexec/migrate -d 5 2>&1 > /tmp/migrate-debug.log- Run the migration again from the Zentyal's UI.
- Cancel the previous command you executed on the terminal with Ctrl + C.
- Restart the usual migrate process execution:
Code: [Select]
sudo start zentyal.zoc-migrate
With that, please, open a bug report about this problem on http://trac.zentyal.org/newticket attaching the migrate-debug.log file, there shouldn't be any private information, other than IP address / hostnames or usernames, but is ok if you modify it, we are only interersted on the error messages you may get.

Cheers.

scatty

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Openchange and Migration
« Reply #5 on: January 30, 2014, 02:50:09 pm »
Thanks,

intrestingly I got one step further using the debugging-command. Nevertheless I'm not able to finish the migration since no mailboxes are displayed.

I opend a bu report:
http://trac.zentyal.org/ticket/8121

Jan

mfgtech

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Openchange and Migration
« Reply #6 on: February 27, 2014, 09:07:48 pm »
What happen to the bug that was supposed to get submitted?

I have the same issue (mkdir error). Migrating from an Exchange 2003.

Found: https://tracker.zentyal.org/issues/74 If we can reopen it, I will send as much information as I can.

Thanks
« Last Edit: February 27, 2014, 09:11:01 pm by mfgtech »

cperello

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: Openchange and Migration
« Reply #7 on: February 27, 2014, 09:13:06 pm »
It was migrated to the new bug tracker as https://tracker.zentyal.org/issues/74 however, I'm not able to reproduce the issue, and without being able to reproduce it, we are not able to fix it. Do you have a way to reproduce the issue?

Could you describe your scenario? (the servers you have, how are connected and the procedure you follow from installation until the point when it breaks) just in case we find a way to reproduce the problem and thus, find a solution for it. If that's the case, please reopen the issue I pointed to you and attach your information there.

Thank you.

mfgtech

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Openchange and Migration
« Reply #8 on: February 27, 2014, 09:23:03 pm »
Configured Zentyal like it is supposed to work. OpenChange works. When I do the migrate, I get the mkdir error. Using the debug command you provided, the error change to:
Error connecting to remote server. MapiLogonProvider: MAPI_E_NETWORK_ERROR

In SSH, I see:
Preparing Profile Store at /root/.openchange/profiles.ldb
Initialising Profile Store at /root/.openchange/profiles.ldf... and it stops there.

And looking in the migration log, I see:
Using binding ncacn_ip_tcp:127.0.0.1
Mapped to DCERPC endpoint 135
added interface eth0 ip=10.20.30.20 bcast=10.20.30.255 netmask=255.255.255.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=10.20.30.20 bcast=10.20.30.255 netmask=255.255.255.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
Failed to connect host 127.0.0.1 on port 135  - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 127.0.0.1 (127.0.0.1) on port 135 - NT_STATUS_CONNECTION_REFUSED.
Failed to connect to remote server: ncan_ip_tcp:127.0.0.1[] NT_STATUS_CONNECTION_REFUSED

I can telnet on port 135

Hope this helps.

Thanks
« Last Edit: February 28, 2014, 02:45:40 pm by mfgtech »

b.deivid

  • Zen Apprentice
  • *
  • Posts: 25
  • Karma: +3/-0
    • View Profile
Re: Openchange and Migration
« Reply #9 on: April 17, 2014, 01:23:41 pm »
Configured Zentyal like it is supposed to work. OpenChange works. When I do the migrate, I get the mkdir error. Using the debug command you provided, the error change to:
Error connecting to remote server. MapiLogonProvider: MAPI_E_NETWORK_ERROR

In SSH, I see:
Preparing Profile Store at /root/.openchange/profiles.ldb
Initialising Profile Store at /root/.openchange/profiles.ldf... and it stops there.

And looking in the migration log, I see:
Using binding ncacn_ip_tcp:127.0.0.1
Mapped to DCERPC endpoint 135
added interface eth0 ip=10.20.30.20 bcast=10.20.30.255 netmask=255.255.255.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
added interface eth0 ip=10.20.30.20 bcast=10.20.30.255 netmask=255.255.255.0
added interface lo ip=127.0.1.1 bcast=127.255.255.255 netmask=255.0.0.0
Failed to connect host 127.0.0.1 on port 135  - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 127.0.0.1 (127.0.0.1) on port 135 - NT_STATUS_CONNECTION_REFUSED.
Failed to connect to remote server: ncan_ip_tcp:127.0.0.1[] NT_STATUS_CONNECTION_REFUSED

I can telnet on port 135

Hope this helps.

Thanks

Try to set hostname entries in /etc/hosts for the windows server for example 192.168.0.100 winserver1.mydomain.lan winserver1

bclegger

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Openchange and Migration
« Reply #10 on: May 01, 2014, 09:03:39 pm »
I found a possible fix to the issue!! It has to do with the request for a password when running a sudo command. You can fix it by doing the following;

Open the sudoers file: sudo visudo will open the /etc/sudoers file in GNU nano. If not, try export EDITOR="nano" and try sudo visudo again.

Add the below line to the end of file.
`username ALL=(ALL) ALL`   **Change the user name before you issue the commands**


Then perform WriteOut with Ctrl + O. The editor will ask you for the file name to write into. The default will be /etc/sudoers.tmp:


File Name to Write: /etc/sudoers.tmp

Change that to /etc/sudoers:


File Name to Write: /etc/sudoers

A prompt will be displayed:


File exists, OVERWRITE ?

Or


Save file under DIFFERENT NAME ?

In both cases, press Y. Quit the nano editor with Ctrl + X.

Done!