Hi,
bei mir funktioniert kopano-backup auf einem UCS-Server 4.4-7 errata850 nur ohne Angabe von -U und -P.
Bei Aufruf mit dem User Administrator, der als Kopano-Administrator eingetragen ist, kommt folgende Fehlermeldung
kopano-backup -U Administrator -P ... -O /tmp -l DEBUG
2021-01-06 18:44:23,947 - backup - INFO - starting backup
2021-01-06 18:44:24,950 - backup - INFO - stopping backup
2021-01-06 18:44:24,952 - 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/service.py", line 182, in start
_daemon_helper(self.main, self, self.log)
File "/usr/lib/python3/dist-packages/kopano/service.py", line 59, in _daemon_helper
func()
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 420, in main
self.backup()
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 431, in backup
jobs = self.create_jobs()
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 644, in create_jobs
(not servers or public_store.home_server in servers):
File "/usr/lib/python3/dist-packages/kopano/store.py", line 768, in home_server
for node in self.server.nodes(): # XXX faster?
File "/usr/lib/python3/dist-packages/kopano/server.py", line 334, in nodes
for row in self.table(PR_EC_STATSTABLE_SERVERS).dict_rows():
File "/usr/lib/python3/dist-packages/kopano/server.py", line 341, in table
self.mapistore.OpenProperty(name, IID_IMAPITable, MAPI_UNICODE, 0),
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)
Welcher User wird ohne -U verwendet ?
Beim Aufruf mit ‘-U root’ und dem root-Kennwort kommt die Fehlermeldung
2021-01-06 18:49:47,026 - backup - INFO - starting backup
[error ] HrLogon server "default:" user "root": logon failed
Could not logon to server: username or password incorrect
[error ] HrLogon server "default:" user "root": logon failed
2021-01-06 18:49:47,062 - backup0 - ERROR - Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/kopano/server.py", line 282, in __init__
self.mapisession = OpenECSession(self.auth_user, self.auth_pass, self.server_socket, sslkey_file=self.sslkey_file, sslkey_pass=self.sslkey_pass, flags=flags)
File "/usr/lib/python3/dist-packages/MAPI/Util/__init__.py", line 87, in OpenECSession
admin.ConfigureMsgService(uid, 0, 0, profprops)
File "/usr/lib/python3/dist-packages/MAPICore.py", line 1671, in ConfigureMsgService
return _MAPICore.IMsgServiceAdmin_ConfigureMsgService(self, lpUID, ulUIParam, ulFlags, cValues)
MAPI.Struct.MAPIErrorLogonFailed: MAPI error 80040111 (MAPI_E_LOGON_FAILED)
During handling of the above exception, another exception occurred:
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/service.py", line 216, in run
self.main()
File "/usr/lib/python3/dist-packages/kopano_backup/__init__.py", line 185, in main
config, server, options = self.service.config, self.service.server, self.service.options
File "/usr/lib/python3/dist-packages/kopano/service.py", line 169, in server
self._server = _server.Server(options=self.options, config=self.config.data, log=self.log, service=self)
File "/usr/lib/python3/dist-packages/kopano/server.py", line 291, in __init__
raise LogonError('Could not logon to server: username or password incorrect')
kopano.errors.LogonError: Could not logon to server: username or password incorrect