Synchronisation ActiveSync avec SOGo ne fonctionne pas
#4
Voici le debug dans les logs apache concernant ActiveSync, je pense que c'est un problème de relation entre ce qui arrive de SOGo et l'insertion dans la base MySQL, je ne suis pas développeur mais je peux donner un coup de main, est-ce que ce serait possible de m'aiguiller ?

[Mon Feb 06 10:53:01.024649 2017] [wsgi:error] [pid 30233:tid 139867263149824] 2017-02-06 10:53:01 [ERROR] - creme.creme_core.middleware.exceptions : Error (
status=500)
[Mon Feb 06 10:53:01.024671 2017] [wsgi:error] [pid 30233:tid 139867263149824] Traceback (most recent call last):
[Mon Feb 06 10:53:01.024692 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Mon Feb 06 10:53:01.024700 2017] [wsgi:error] [pid 30233:tid 139867263149824] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Mon Feb 06 10:53:01.024707 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Mon Feb 06 10:53:01.024720 2017] [wsgi:error] [pid 30233:tid 139867263149824] return view_func(request, *args, **kwargs)
[Mon Feb 06 10:53:01.024728 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Mon Feb 06 10:53:01.024734 2017] [wsgi:error] [pid 30233:tid 139867263149824] return view_func(request, *args, **kwargs)
[Mon Feb 06 10:53:01.024741 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/views/sync.py", line 47, in main_sync
[Mon Feb 06 10:53:01.024753 2017] [wsgi:error] [pid 30233:tid 139867263149824] sync.synchronize()
[Mon Feb 06 10:53:01.024760 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/sync.py", line 207, in synchronize
[Mon Feb 06 10:53:01.024767 2017] [wsgi:error] [pid 30233:tid 139867263149824] as_ = self._sync(policy_key, folders, sync_key, True)
[Mon Feb 06 10:53:01.024779 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/sync.py", line 224, in _sync
[Mon Feb 06 10:53:01.024787 2017] [wsgi:error] [pid 30233:tid 139867263149824] as_.send(policy_key, as_folder, synckey, fetch)
[Mon Feb 06 10:53:01.024793 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/commands/airsync.py", line 72, in send
[Mon Feb 06 10:53:01.024806 2017] [wsgi:error] [pid 30233:tid 139867263149824] self.send_for_folder(policy_key, folder, synckey, fetch, headers)
[Mon Feb 06 10:53:01.024813 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/commands/airsync.py", line 222, in send_for_folder
[Mon Feb 06 10:53:01.024820 2017] [wsgi:error] [pid 30233:tid 139867263149824] SyncKeyHistory.back_to_previous_key(client)
[Mon Feb 06 10:53:01.024832 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/var/www/hybird-creme_crm-1.6-70ec4f47f2ad/creme/activesync/models/active_sync.py", line 172, in back_to_previous_key
[Mon Feb 06 10:53:01.024839 2017] [wsgi:error] [pid 30233:tid 139867263149824] client.save()
[Mon Feb 06 10:53:01.024846 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 734, in save
[Mon Feb 06 10:53:01.024852 2017] [wsgi:error] [pid 30233:tid 139867263149824] force_update=force_update, update_fields=update_fields)
[Mon Feb 06 10:53:01.024865 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 762, in save_base
[Mon Feb 06 10:53:01.024872 2017] [wsgi:error] [pid 30233:tid 139867263149824] updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
[Mon Feb 06 10:53:01.024878 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 827, in _save_table
[Mon Feb 06 10:53:01.024891 2017] [wsgi:error] [pid 30233:tid 139867263149824] forced_update)
[Mon Feb 06 10:53:01.024898 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 877, in _do_update
[Mon Feb 06 10:53:01.024904 2017] [wsgi:error] [pid 30233:tid 139867263149824] return filtered._update(values) > 0
[Mon Feb 06 10:53:01.024916 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", lin
[Mon Feb 06 10:53:01.024904 2017] [wsgi:error] [pid 30233:tid 139867263149824] return filtered._update(values) > 0
[Mon Feb 06 10:53:01.024916 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 580, in _update
[Mon Feb 06 10:53:01.024924 2017] [wsgi:error] [pid 30233:tid 139867263149824] return query.get_compiler(self.db).execute_sql(CURSOR)
[Mon Feb 06 10:53:01.024930 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 1062, in execute_sql
[Mon Feb 06 10:53:01.024937 2017] [wsgi:error] [pid 30233:tid 139867263149824] cursor = super(SQLUpdateCompiler, self).execute_sql(result_type)
[Mon Feb 06 10:53:01.024949 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 829, in execute_sql
[Mon Feb 06 10:53:01.024956 2017] [wsgi:error] [pid 30233:tid 139867263149824] sql, params = self.as_sql()
[Mon Feb 06 10:53:01.024963 2017] [wsgi:error] [pid 30233:tid 139867263149824] File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 1028, in as_sql
[Mon Feb 06 10:53:01.024975 2017] [wsgi:error] [pid 30233:tid 139867263149824] (field.__class__.__name__, val.__class__.__name__))
[Mon Feb 06 10:53:01.024982 2017] [wsgi:error] [pid 30233:tid 139867263149824] TypeError: Database is trying to update a relational field of type CharField with a value of type SyncKeyHistory. Make sure you are setting the correct relations
[Mon Feb 06 10:53:04.830150 2017] [wsgi:error] [pid 30233:tid 139867254757120] [FolderSync] Doesn't need SYNC_NEED_CURRENT_POLICY
[Mon Feb 06 10:53:04.830225 2017] [wsgi:error] [pid 30233:tid 139867254757120] [FolderSync] self.synckey : sogov3_6327_1e487cbc_0
[Mon Feb 06 10:53:04.830255 2017] [wsgi:error] [pid 30233:tid 139867254757120] [FolderSync] (end) Status : 1
  Répondre


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 3 visiteur(s)