Kopano-backup trough socket



  • Hi,

    I’ve installed Kopano 8.6.7 and I like to backup an old Zarafa-Server 7.1.4 with the command kopano-backup -s … to migrate to the new kopano with ucs.
    Some time ago, I tried this with - I think - Kopano 8.2, and it works.

    Today, I tried to migrate, but I got this message:
    2018-09-19 00:40:58,217 - backup - WARNING - could not connect to server at ‘192.168.X.252:236’, retrying in 5 sec

    I used this command:

    kopano-backup -s 192.168.X.252:236 -U administrator -P ‚XXXXXXX‘

    Did Kopano change the kopano-backup routine or what is the failure?

    Thanks!

    René


  • Kopano

    Hi @rs_1981,

    @rs_1981 said in Kopano-backup trough socket:

    kopano-backup -s 192.168.X.252:236 -U administrator -P ‚XXXXXXX‘

    You are missing ‘http://’ in front of the socket



  • Ah, okay, thanks. But then I get this error:

    root@ucs:~# kopano-backup -s http://192.168.X.252:236 -U administrator -P ‘XXXX’ -l debug
    2018-09-19 10:25:36,778 - backup - INFO - starting backup
    2018-09-19 10:25:40,785 - backup - INFO - stopping backup
    2018-09-19 10:25:40,787 - backup - ERROR - Traceback (most recent call last):
    File “/usr/lib/python2.7/dist-packages/kopano/log.py”, line 90, in log_exc
    try: yield
    File “/usr/lib/python2.7/dist-packages/kopano/service.py”, line 183, in start
    _daemon_helper(self.main, self, self.log)
    File “/usr/lib/python2.7/dist-packages/kopano/service.py”, line 60, in _daemon_helper
    func()
    File “/usr/lib/python2.7/dist-packages/kopano_backup/init.py”, line 404, in main
    self.backup()
    File “/usr/lib/python2.7/dist-packages/kopano_backup/init.py”, line 415, in backup
    jobs = self.create_jobs()
    File “/usr/lib/python2.7/dist-packages/kopano_backup/init.py”, line 629, in create_jobs
    (not servers or public_store.home_server in servers):
    File “/usr/lib/python2.7/dist-packages/kopano/store.py”, line 716, in home_server
    for node in self.server.nodes(): # XXX faster?
    File “/usr/lib/python2.7/dist-packages/kopano/server.py”, line 295, in nodes
    for row in self.table(PR_EC_STATSTABLE_SERVERS).dict_rows():
    File “/usr/lib/python2.7/dist-packages/kopano/server.py”, line 302, in table
    self.mapistore.OpenProperty(name, IID_IMAPITable, MAPI_UNICODE, 0),
    File “/usr/lib/python2.7/dist-packages/MAPICore.py”, line 404, in OpenProperty
    return _MAPICore.IMAPIProp_OpenProperty(self, ulPropTag, USE_IID_FOR_OUTPUT, ulInterfaceOptions, ulFlags)
    MAPIErrorNoAccess: MAPI error 80070005 (MAPI_E_NO_ACCESS)



  • Is it the same like this:

    https://jira.kopano.io/browse/KC-306
    ?


  • Kopano

    No, since the traceback is completely different.

    In any case I was able to reproduce the issue, will check with a developer tomorrow about a possible solution. The workaround is to not backup all users at once, but specify the user to be backed up (-u username)



  • Hi,

    that information helps me very much.
    Then I use a shell script for backup.

    Thanks!
    Perhaps, you can find a solution to backup all users.