Guten Tag,
nach der Migration von Zarafa4h 0.7.2 zu Kopano4S 0.95 gehe ich aufgrund der aktuellen Fehler in der Kopano4S Installation nun zurück zu meinem produktiven Zarafa4h zurück.
Ich habe in den letzten Tagen mehrfach migriert. Zarafa4h ist auf einem zweiten NAS installiert, von dem ich auf mein großes NAS migriere. Dort ist Kopano4S installiert.
Hier der Weg:
Backup Zarafa4h mit kopano-backup
Rich (BBCode):
/var/packages/Kopano4s/scripts/kopano-backup.sh -w 2 -shttp://192.168.115.6:236/zarafa -U {USER} -P "{PASSWORD}" -u {USER} -l INFO
2019-01-19 06:53:09,559 - backup - INFO - starting backup
2019-01-19 06:53:09,709 - backup - INFO - queued 1 store(s) for parallel backup (2 processes)
2019-01-19 06:53:09,867 - backup0 - INFO - backing up: user
2019-01-19 06:55:25,493 - backup - WARNING - no data found for attachment of item with entryid 00000000D8271E19827D48A7A0042B4C77C984470100000005000000F3254A0AA6E49A44834F05BCCFDB76B800000000
2019-01-19 06:55:25,495 - backup - WARNING - no data found for attachment of item with entryid 00000000D8271E19827D48A7A0042B4C77C984470100000005000000F3254A0AA6E49A44834F05BCCFDB76B800000000
2019-01-19 06:55:25,496 - backup - WARNING - no data found for attachment of item with entryid 00000000D8271E19827D48A7A0042B4C77C984470100000005000000F3254A0AA6E49A44834F05BCCFDB76B800000000
2019-01-19 07:03:46,662 - backup - ERROR - could not serialize attachment for item with entryid 00000000D8271E19827D48A7A0042B4C77C9844701000000050000009C7D1DC81E1B114392B652B0D22696E100000000
2019-01-19 07:03:46,676 - backup - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1124, in _dump
msg = att.OpenProperty(PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_DEFERRED_ERRORS | MAPI_MODIFY)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 404, in OpenProperty
return _MAPICore.IMAPIProp_OpenProperty(self, ulPropTag, USE_IID_FOR_OUTPUT, ulInterfaceOptions, ulFlags)
MAPI.Struct.MAPIErrorNoAccess: MAPI error 80070005 (MAPI_E_NO_ACCESS)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1128, in _dump
msg = att.OpenProperty(PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_DEFERRED_ERRORS)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 404, in OpenProperty
return _MAPICore.IMAPIProp_OpenProperty(self, ulPropTag, USE_IID_FOR_OUTPUT, ulInterfaceOptions, ulFlags)
MAPI.Struct.MAPIErrorNoAccess: MAPI error 80070005 (MAPI_E_NO_ACCESS)
2019-01-19 07:37:32,984 - backup - WARNING - Received a MAPI error or timeout (error=0x80040115, retry=0/5)
2019-01-19 07:45:41,270 - backup - WARNING - no data found for attachment of item with entryid 00000000D8271E19827D48A7A0042B4C77C984470100000005000000C428E456050D4C1ABD4E81987A794B2A00000000
2019-01-19 08:03:57,285 - backup0 - INFO - backing up user took 4247.52 seconds (40674 changes, ~9.58/sec, 1 errors)
2019-01-19 08:03:57,305 - backup - INFO - queue processed in 4247.59 seconds (40674 changes, ~9.58/sec, 1 errors)
2019-01-19 08:03:58,307 - backup - INFO - stopping backup
User anlegen (über Kopano4S-Admin)
SQL-Script zur Änderung der Ordnernamen zu Deutsch
Rich (BBCode):
UPDATE `tproperties` SET `val_string` = 'Posteingang' WHERE `tproperties`.`val_string` = 'Inbox';
UPDATE `properties` SET `val_string` = 'Posteingang' WHERE `properties`.`val_string` = 'Inbox';
UPDATE `tproperties` SET `val_string` = 'Entwürfe' WHERE `tproperties`.`val_string` = 'Drafts';
UPDATE `properties` SET `val_string` = 'Entwürfe' WHERE `properties`.`val_string` = 'Drafts';
[...] [gekürzt, da der Beitrag sonst zu lang wird]
Kopano4S stoppen
MariaDB 10 stoppen
MariaDB 10 starten
Kopano4S starten
Restore mit kopano-backup
Rich (BBCode):
kopano-backup --restore -u {USER} {Backup-Verzeichnis}/ -l INFO
Im backup.log finden sich danach folgende Zeilen:
2019-01-19 08:50:45,066 - backup - INFO - starting restore of user
2019-01-19 08:50:45,182 - backup - INFO - restoring to store 0000000038A1BB1005E5101AA1BB08002B2A56C200007A617261666136636C69656E742E646C6C00000000001D40CBE7C09649CF9D625356131E8C9301000000010000008A8249BA5317410F820B4BC4581C268670736575646F3A2F2F556E6B6E6F776E00
2019-01-19 10:07:45,179 - backup - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/log.py", line 103, in log_exc
try: yield
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 822, in restore_folder
read=read,
File "/usr/lib/python3/dist-packages/kopano/folder.py", line 483, in create_item
item = _item.Item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save, read=read)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 201, in __init__
self.loads(loads, attachments=attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1205, in loads
self._load(_pickle_loads(s), attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1195, in _load
stream.Write(data)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 232, in Write
return _MAPICore.ISequentialStream_Write(self, pv)
TypeError: in method 'ISequentialStream_Write', argument 2 of type 'void const *'
2019-01-19 10:37:20,768 - backup - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/log.py", line 103, in log_exc
try: yield
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 822, in restore_folder
read=read,
File "/usr/lib/python3/dist-packages/kopano/folder.py", line 483, in create_item
item = _item.Item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save, read=read)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 201, in __init__
self.loads(loads, attachments=attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1205, in loads
self._load(_pickle_loads(s), attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1199, in _load
_utils._save(self.mapiobj) # XXX needed?
File "/usr/lib/python3/dist-packages/kopano/utils.py", line 203, in _save
mapiobj.SaveChanges(KEEP_OPEN_READWRITE)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 395, in SaveChanges
return _MAPICore.IMAPIProp_SaveChanges(self, ulFlags)
MAPI.Struct.MAPIErrorNetworkError: MAPI error 80040115 (MAPI_E_NETWORK_ERROR)
2019-01-19 11:22:11,900 - backup - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/log.py", line 103, in log_exc
try: yield
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 822, in restore_folder
read=read,
File "/usr/lib/python3/dist-packages/kopano/folder.py", line 483, in create_item
item = _item.Item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save, read=read)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 201, in __init__
self.loads(loads, attachments=attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1205, in loads
self._load(_pickle_loads(s), attachments)
File "/usr/lib/python3/dist-packages/kopano/item.py", line 1195, in _load
stream.Write(data)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 232, in Write
return _MAPICore.ISequentialStream_Write(self, pv)
TypeError: in method 'ISequentialStream_Write', argument 2 of type 'void const *'
2019-01-19 11:22:14,082 - backup - INFO - restoring metadata
2019-01-19 11:22:15,274 - backup - INFO - restore completed in 9090.08 seconds (40671 changes, ~4.47/sec, 3 errors)
2019-01-19 11:22:16,219 - backup - INFO - stopping backup
Fetchmail einrichten
Das funktioniert soweit, mit Outlook 2016 kann ich auf das Postfach zugreifen, ebenso wie mit der WebApp.
Im nginx-error.log finde ich allerdings reichlich Fehler:
2019/01/20 13:03:53 [error] 27227#27227: *4807 connect() failed (111: Connection refused) while connecting to upstream, client: 172.17.0.1, server: , request: "PUT /webapp/presence HTTP/1.1", upstream: "http://127.0.0.1:1234/", host: "host.domain.de", referrer: "https://host.domain.de/webapp/"
Für host.domain.de gibt es auf dem NAS ein Let's Encrypt Zertifikat. Das NAS hat einen DDNS, im DNS meiner Domäne gibt es einen C-NAME, der auf den DDNS verweist. Das funktioniert mit Zarafa4h soweit auch seit Jahren gut.
Viel gravierender ist, dass ich mit ActiveSync unter iOS keine Daten mehr synchronisiert bekomme. Der zugehörige Fehler im z-push.log scheint mir dieser:
20/01/2019 14:04:01 [19328] [WARN] [#unknown] StatusException: ExportChangesICS->InitializeExporter(): Error, mapi_exportchanges_config() failed: 0xFFFFFFFF8004010F - code: 12 - file: /usr/share/z-push/backend/kopano/exporter.php:230
20/01/2019 14:04:01 [19328] [ INFO] [#unknown] cmd='Sync' memory='2.04 MiB/2.00 MiB' time='2.26s' devType='iPhone' devId='thurmvats55dn5rq1efvpgrqsg' getUser='user' from='172.17.0.1' idle='0s' version='2.4.5+0-0' method='POST' httpcode='200'
Hat jemand Ideen zu diesen Fehlern bzw. eine Lösung? Zum Fehler im nginx.log gibt es beim Googlen Hinweise, dass anstelle vom Hostnamen die IP-Adresse in der nginx.conf verwendet werden sollte. Allerdings kann ich bei der Durchsicht der Konfiguration keine Stelle finden, an der ich das Ändern sollte.