Notifications
Clear all

migration zimbra to carbonio

13 Posts
3 Users
0 Reactions
1,288 Views
(@abkou)
New Member
Joined: 2 years ago
Posts: 5
Topic starter  

hello world, I have this error when i try to migrate the data of each user from zimbra to carbonio. whether, you more details to solve this error. I checked the migration guide which gives on your community but i don't saw more information about this error.  

here is my error:

zextras@carbonio MBOX]$ for i in `cat /opt/backups/zmigrate/emails.txt`; do zmmailbox -z -m $i -t 0 postRestURL "/?fmt=tgz&resolve=skip" /opt/backups/zmigrate/MBOX/$i.tgz ; echo "$i -- finished "; done

ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
admin@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
spam.tk4stgav@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
ham.4ce0mn7nqi@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
virus-quarantine.r12fcmkne@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
galsync.bnu9hegoh@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
roxane@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
coralie@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
test@mail.upb.lan -- finished
ERROR: zclient.IO_ERROR (Connection refused) (cause: java.net.ConnectException Connection refused)
test01@mail.upb.lan -- finished

 


   
Quote
(@sharif)
Reputable Member Admin
Joined: 3 years ago
Posts: 725
 

Posted by: @abkou

hello world, I have this error when i try to migrate the data of each user from zimbra to carbonio. whether, you more details to solve this error. I checked the migration guide which gives on your community but i don't saw more information about this error.  

 

Hi @abkou,

Sorry to hear about your trouble.

Please set https as Public Service Protocol at your domain's general settings. like the image (attached) and try again.

Have a great day 🙂


   
ReplyQuote
(@abkou)
New Member
Joined: 2 years ago
Posts: 5
Topic starter  

@sharif

When i try to open your file, i have an error which tell me "you are not permitted to view this attachement 


   
ReplyQuote
(@sharif)
Reputable Member Admin
Joined: 3 years ago
Posts: 725
 

@abkou 

Hi,

Just set https as Public Service Protocol.
The steps should be:

login into Admin UI using 6071 port.
Select the Domain.
Select General Settings (Within Details Segment)
On the fourth row, you will get the Public Service Protocol field.Set the value https here.

Then try again:

for i in `cat /opt/backups/zmigrate/emails.txt`; do zmmailbox -z -m $i -t 0 postRestURL "/?fmt=tgz&resolve=skip" /opt/backups/zmigrate/MBOX/$i.tgz ; echo "$i -- finished "; done

 

Hope it helps.

🙂


   
ReplyQuote
(@abkou)
New Member
Joined: 2 years ago
Posts: 5
Topic starter  

thanks it's work.

 

I've got other things on my mind.

* firstly, since my installation there is a service that I can't start:

● carbonio-prometheus.service - Carbonio Prometheus service
Loaded: loaded (/usr/lib/systemd/system/carbonio-prometheus.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2023-09-01 10:43:18 EDT; 2 days ago
Process: 1783730 ExecStart=/usr/bin/prometheus --config.file=/etc/carbonio/carbonio-prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data $ARGS (code=exited, status=2)
Main PID: 1783730 (code=exited, status=2)

I don't know what could be the cause.

* Then once on the administration page I create a user, I give him the right to change his password on the first connection, but when he changes his password the page remains frozen without authorising access to the client mailbox, it seems no redirection is did or it's work correctly

* In addition, when a user is logged in and sends an email to another carbonio user, that user doesn't receive it immediately, so the page has to be reloaded several times. is this normal?

* And I need to know if this version of carbonio is LTS, because it's not specified in the documentation.

I'm working in an environment at the moment and I need to check certain malfunctions and how to resolve them. So I'm writing to you in the hope of a favourable response.

This post was modified 2 years ago 2 times by abkou

   
ReplyQuote
(@abkou)
New Member
Joined: 2 years ago
Posts: 5
Topic starter  

Hello zextras World

Hello zextras World.

 

Please could you give more information, step by step if possible about how set external authentication like freeipa or openldap on carbonio CE.


   
ReplyQuote
(@ar-ripon)
New Member
Joined: 3 weeks ago
Posts: 6
 

@sharif 

for i in `cat removed link `; do zmmailbox -z -m $i -t 0 postRestURL "/?fmt=tgz&resolve=skip" removed link ; echo "$i -- finished "; done
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
admin@test.com -- finished  

No idea where do I need to change


   
ReplyQuote
(@sharif)
Reputable Member Admin
Joined: 3 years ago
Posts: 725
 

@ar-ripon 

While using REST API, zmmailbox relies on internal reference attributes like PublicServiceHostname, PublicServiceProtocols etcTherefore make sure you have configured followings:

carbonio prov ms mail.example.com zimbraPublicServiceHostname mail.example.com
carbonio prov ms mail.example.com zimbraPublicServiceProtocol https
su - zextras -c "zmcontrol restart"

Then try again.

 


   
ReplyQuote
(@ar-ripon)
New Member
Joined: 3 weeks ago
Posts: 6
 

@sharif 

Thank you for your prompt response.

We have successfully configured our Carbonio server with the hostname mail.example.com. Our goal is to restore data from our previous multi-domain Zimbra server, which included domains such as mail.xyz.com and mail.abc.com.

So far, we have successfully restored the domains, user accounts, and passwords. Now, we would like to proceed with restoring the actual mail data from the Zimbra server to the Carbonio server.

For this purpose, we are following the steps outlined in the article below:
How to Use Script to Migrate Zimbra to Carbonio CE

i have already backed up mail data from the Zimbra server and want restore.

zextras@mail:~$ carbonio prov ms mail.example.com zimbraPublicServiceHostname mail.example.com
ERROR: service.FAILURE (system failure: unable to modify attrs: object class violation - unable to modify attributes: ldap host=mail.example.com:389: attribute 'zimbraPublicServiceHostname' not allowed)
zextras@mail:~$ carbonio prov ms mail.sharkskingdom.com zimbraPublicServiceProtocol https
ERROR: service.FAILURE (system failure: unable to modify attrs: object class violation - unable to modify attributes: ldap host=mail.example.com:389: attribute 'zimbraPublicServiceProtocol' not allowed)

But from the admin panel, i have already select public service protocol as Https, Public service hostname is mail.example.com as well as port 443.

No idea where I made a mistake.


   
ReplyQuote
(@sharif)
Reputable Member Admin
Joined: 3 years ago
Posts: 725
 

@ar-ripon 

Hi,

Actually, my previous response was not appropriate. Let's take a look at why?

  • Whenever you are going to use an attribute, take a look at it's properties. 
zextras@mail:~$ carbonio prov desc -a zimbraPublicServiceHostname
zimbraPublicServiceHostname
    Name to be used in public API such as REST or SOAP proxy.

               type : string
              value :
           callback :
          immutable : false
        cardinality : single
         requiredIn :
         optionalIn : globalConfig,domain
              flags : domainInfo,domainInherited
           defaults :
                min :
                max : 256
                 id : 377
    requiresRestart :
              since :
    deprecatedSince :

zextras@mail:~$
zextras@mail:~$ carbonio prov desc -a zimbraPublicServiceProtocol
zimbraPublicServiceProtocol
    Protocol to be used in public API such as REST or SOAP proxy.

               type : string
              value :
           callback :
          immutable : false
        cardinality : single
         requiredIn :
         optionalIn : domain,globalConfig
              flags : domainInfo,domainInherited
           defaults :
                min :
                max : 256
                 id : 698
    requiresRestart :
              since : 5.0.9
    deprecatedSince :

zextras@mail:~$
  • From the description, we can see the attribute can be set only at domain/global configuration level using md/mcf, not the server level. So if we set it on server level using ms it will not work properly.
  • Now to check what is the global configuration level settings for your system, we can use:
zextras@mail:~$ carbonio prov gcf zimbraPublicServiceHostname
zextras@mail:~$ carbonio prov gcf zimbraPublicServiceProtocol
  •   And to set the properties correctly, we can do followings:
zextras@mail:~$ carbonio prov mcf zimbraPublicServiceHostname mail.demo-carbonioce.com
zextras@mail:~$ carbonio prov mcf zimbraPublicServiceProtocol https
  • Though, it is not instructed but we could restart the services and try using zmmailbox to import/export the content.

As you mentioned that you have already transferred the user data to the CarbonioCE server, you can also use IMAPSYNC to transfer the data with taking the hassle of manually importing the data using zmmailbox.

 


   
ReplyQuote
(@ar-ripon)
New Member
Joined: 3 weeks ago
Posts: 6
 

@sharif 

Hi could you please share any documentation how to use IMAPSYNC to transfer the data without the hassle of manually importing the data using zmmailbox?


   
ReplyQuote
(@ar-ripon)
New Member
Joined: 3 weeks ago
Posts: 6
 

Though i got same error as previous:

for i in `cat /opt/backups/zmigrate/emails.txt`; do zmmailbox -z -m $i -t 0 postRestURL "/?fmt=tgz&resolve=skip" /opt/backups/zmigrate/MBOX/$i.tgz ; echo "$i -- finished "; done

ERROR: service.FAILURE (system failure: POST failed, status=500 500)
admin@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
spam.z1fbz_xzvl@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
ham.cxj05fop@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
virus-quarantine.ebd10zk1ft@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
galsync.lapl5qbjhc@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g003@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g008@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g017@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)


   
ReplyQuote
(@ar-ripon)
New Member
Joined: 3 weeks ago
Posts: 6
 

No idea after some while some users data restored starting:

g200@apexoutlets.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g211@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g245@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g221@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g213@xyz.com -- finished
ERROR: service.FAILURE (system failure: POST failed, status=500 500)
g005@xyz.com -- finished
g187@xyz.com -- finished
g266@xyz.com -- finished
g219@xyz.com -- finished
g222@xyz.com -- finished
g246@xyz.com -- finished
g224@xyz.com -- finished
g016@xyz.com -- finished
g225@xyz.com -- finished


   
ReplyQuote