27-04-2017, 12:38
Bonjour,
Je reviens vers vous concernant SOGo, j'ai effectué la mise à jour vers CremeCRM 1.6.11, voici le journal apache2 lors de la synchronisation ActiveSync, il y a vraiment du mieux dans la journalisation :-)
J'obtiens le vrai nom du dossier utilisateur SOGO : sogov3_5b42_1eb1fe82_0
Les contacts voulant se synchroniser et qui s'affiche dans le traceback sont bien ceux de mon téléphone (j'ai caché volontairement NOM PRENOM)
[Thu Apr 27 12:24:53.450288 2017] [wsgi:error] [pid 1576] 2017-04-27 12:24:53 [ERROR] - creme.creme_core.middleware.exceptions : Error (status=500)
[Thu Apr 27 12:24:53.450331 2017] [wsgi:error] [pid 1576] Traceback (most recent call last):
[Thu Apr 27 12:24:53.450340 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Apr 27 12:24:53.450346 2017] [wsgi:error] [pid 1576] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Apr 27 12:24:53.450353 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:24:53.450365 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:24:53.450372 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:24:53.450378 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:24:53.450389 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/views/sync.py", line 45, in main_sync
[Thu Apr 27 12:24:53.450396 2017] [wsgi:error] [pid 1576] sync.synchronize()
[Thu Apr 27 12:24:53.450403 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 207, in synchronize
[Thu Apr 27 12:24:53.450409 2017] [wsgi:error] [pid 1576] as_ = self._sync(policy_key, folders, sync_key, True)
[Thu Apr 27 12:24:53.450420 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 224, in _sync
[Thu Apr 27 12:24:53.450427 2017] [wsgi:error] [pid 1576] as_.send(policy_key, as_folder, synckey, fetch)
[Thu Apr 27 12:24:53.450434 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 72, in send
[Thu Apr 27 12:24:53.450440 2017] [wsgi:error] [pid 1576] self.send_for_folder(policy_key, folder, synckey, fetch, headers)
[Thu Apr 27 12:24:53.450451 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 258, in send_for_folder
[Thu Apr 27 12:24:53.450458 2017] [wsgi:error] [pid 1576] entity = save_entity(data, user, folder)
[Thu Apr 27 12:24:53.450464 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/mappings/contact.py", line 295, in save_contact
[Thu Apr 27 12:24:53.450475 2017] [wsgi:error] [pid 1576] c.save() #TODO: are the addresses OK (when they do not have a PK yet) ??
[Thu Apr 27 12:24:53.450482 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/persons/models/contact.py", line 217, in save
[Thu Apr 27 12:24:53.450488 2017] [wsgi:error] [pid 1576] super(AbstractContact, self).save(*args, **kwargs)
[Thu Apr 27 12:24:53.450495 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/creme_core/models/entity.py", line 338, in save
[Thu Apr 27 12:24:53.450506 2017] [wsgi:error] [pid 1576] super(CremeEntity, self).save(*args, **kwargs)
[Thu Apr 27 12:24:53.450513 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 685, in save
[Thu Apr 27 12:24:53.450519 2017] [wsgi:error] [pid 1576] "unsaved related object '%s'." % field.name
[Thu Apr 27 12:24:53.450525 2017] [wsgi:error] [pid 1576] ValueError: save() prohibited to prevent data loss due to unsaved related object 'billing_address'.
[Thu Apr 27 12:25:06.092869 2017] [wsgi:error] [pid 1576] [FolderSync] Doesn't need SYNC_NEED_CURRENT_POLICY
[Thu Apr 27 12:25:06.092940 2017] [wsgi:error] [pid 1576] [FolderSync] self.synckey : sogov3_5b42_1eb1fe82_0
[Thu Apr 27 12:25:06.093784 2017] [wsgi:error] [pid 1576] [FolderSync] (end) Status : 1
[Thu Apr 27 12:25:07.426586 2017] [wsgi:error] [pid 1576] 2017-04-27 12:25:07 [ERROR] - creme.activesync.commands.airsync : Entity : NOM PRENOM\r (pk=167) big error in the mapping
[Thu Apr 27 12:25:08.300601 2017] [wsgi:error] [pid 1576] 2017-04-27 12:25:08 [ERROR] - creme.creme_core.middleware.exceptions : Error (status=500)
[Thu Apr 27 12:25:08.300616 2017] [wsgi:error] [pid 1576] Traceback (most recent call last):
[Thu Apr 27 12:25:08.300623 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Apr 27 12:25:08.300639 2017] [wsgi:error] [pid 1576] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Apr 27 12:25:08.300646 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:25:08.300653 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:25:08.300660 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:25:08.300672 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:25:08.300685 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/views/sync.py", line 45, in main_sync
[Thu Apr 27 12:25:08.300692 2017] [wsgi:error] [pid 1576] sync.synchronize()
[Thu Apr 27 12:25:08.300698 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 207, in synchronize
[Thu Apr 27 12:25:08.300711 2017] [wsgi:error] [pid 1576] as_ = self._sync(policy_key, folders, sync_key, True)
[Thu Apr 27 12:25:08.300718 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 224, in _sync
[Thu Apr 27 12:25:08.300725 2017] [wsgi:error] [pid 1576] as_.send(policy_key, as_folder, synckey, fetch)
[Thu Apr 27 12:25:08.300731 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 72, in send
[Thu Apr 27 12:25:08.300744 2017] [wsgi:error] [pid 1576] self.send_for_folder(policy_key, folder, synckey, fetch, headers)
[Thu Apr 27 12:25:08.300751 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 258, in send_for_folder
[Thu Apr 27 12:25:08.300758 2017] [wsgi:error] [pid 1576] entity = save_entity(data, user, folder)
[Thu Apr 27 12:25:08.300770 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/mappings/contact.py", line 295, in save_contact
[Thu Apr 27 12:25:08.300777 2017] [wsgi:error] [pid 1576] c.save() #TODO: are the addresses OK (when they do not have a PK yet) ??
[Thu Apr 27 12:25:08.300784 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/persons/models/contact.py", line 217, in save
[Thu Apr 27 12:25:08.300796 2017] [wsgi:error] [pid 1576] super(AbstractContact, self).save(*args, **kwargs)
[Thu Apr 27 12:25:08.300803 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/creme_core/models/entity.py", line 338, in save
[Thu Apr 27 12:25:08.300810 2017] [wsgi:error] [pid 1576] super(CremeEntity, self).save(*args, **kwargs)
[Thu Apr 27 12:25:08.300816 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 685, in save
[Thu Apr 27 12:25:08.300828 2017] [wsgi:error] [pid 1576] "unsaved related object '%s'." % field.name
[Thu Apr 27 12:25:08.300836 2017] [wsgi:error] [pid 1576] ValueError: save() prohibited to prevent data loss due to unsaved related object 'billing_address'.
Je reviens vers vous concernant SOGo, j'ai effectué la mise à jour vers CremeCRM 1.6.11, voici le journal apache2 lors de la synchronisation ActiveSync, il y a vraiment du mieux dans la journalisation :-)
J'obtiens le vrai nom du dossier utilisateur SOGO : sogov3_5b42_1eb1fe82_0
Les contacts voulant se synchroniser et qui s'affiche dans le traceback sont bien ceux de mon téléphone (j'ai caché volontairement NOM PRENOM)
[Thu Apr 27 12:24:53.450288 2017] [wsgi:error] [pid 1576] 2017-04-27 12:24:53 [ERROR] - creme.creme_core.middleware.exceptions : Error (status=500)
[Thu Apr 27 12:24:53.450331 2017] [wsgi:error] [pid 1576] Traceback (most recent call last):
[Thu Apr 27 12:24:53.450340 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Apr 27 12:24:53.450346 2017] [wsgi:error] [pid 1576] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Apr 27 12:24:53.450353 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:24:53.450365 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:24:53.450372 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:24:53.450378 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:24:53.450389 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/views/sync.py", line 45, in main_sync
[Thu Apr 27 12:24:53.450396 2017] [wsgi:error] [pid 1576] sync.synchronize()
[Thu Apr 27 12:24:53.450403 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 207, in synchronize
[Thu Apr 27 12:24:53.450409 2017] [wsgi:error] [pid 1576] as_ = self._sync(policy_key, folders, sync_key, True)
[Thu Apr 27 12:24:53.450420 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 224, in _sync
[Thu Apr 27 12:24:53.450427 2017] [wsgi:error] [pid 1576] as_.send(policy_key, as_folder, synckey, fetch)
[Thu Apr 27 12:24:53.450434 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 72, in send
[Thu Apr 27 12:24:53.450440 2017] [wsgi:error] [pid 1576] self.send_for_folder(policy_key, folder, synckey, fetch, headers)
[Thu Apr 27 12:24:53.450451 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 258, in send_for_folder
[Thu Apr 27 12:24:53.450458 2017] [wsgi:error] [pid 1576] entity = save_entity(data, user, folder)
[Thu Apr 27 12:24:53.450464 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/mappings/contact.py", line 295, in save_contact
[Thu Apr 27 12:24:53.450475 2017] [wsgi:error] [pid 1576] c.save() #TODO: are the addresses OK (when they do not have a PK yet) ??
[Thu Apr 27 12:24:53.450482 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/persons/models/contact.py", line 217, in save
[Thu Apr 27 12:24:53.450488 2017] [wsgi:error] [pid 1576] super(AbstractContact, self).save(*args, **kwargs)
[Thu Apr 27 12:24:53.450495 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/creme_core/models/entity.py", line 338, in save
[Thu Apr 27 12:24:53.450506 2017] [wsgi:error] [pid 1576] super(CremeEntity, self).save(*args, **kwargs)
[Thu Apr 27 12:24:53.450513 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 685, in save
[Thu Apr 27 12:24:53.450519 2017] [wsgi:error] [pid 1576] "unsaved related object '%s'." % field.name
[Thu Apr 27 12:24:53.450525 2017] [wsgi:error] [pid 1576] ValueError: save() prohibited to prevent data loss due to unsaved related object 'billing_address'.
[Thu Apr 27 12:25:06.092869 2017] [wsgi:error] [pid 1576] [FolderSync] Doesn't need SYNC_NEED_CURRENT_POLICY
[Thu Apr 27 12:25:06.092940 2017] [wsgi:error] [pid 1576] [FolderSync] self.synckey : sogov3_5b42_1eb1fe82_0
[Thu Apr 27 12:25:06.093784 2017] [wsgi:error] [pid 1576] [FolderSync] (end) Status : 1
[Thu Apr 27 12:25:07.426586 2017] [wsgi:error] [pid 1576] 2017-04-27 12:25:07 [ERROR] - creme.activesync.commands.airsync : Entity : NOM PRENOM\r (pk=167) big error in the mapping
[Thu Apr 27 12:25:08.300601 2017] [wsgi:error] [pid 1576] 2017-04-27 12:25:08 [ERROR] - creme.creme_core.middleware.exceptions : Error (status=500)
[Thu Apr 27 12:25:08.300616 2017] [wsgi:error] [pid 1576] Traceback (most recent call last):
[Thu Apr 27 12:25:08.300623 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Apr 27 12:25:08.300639 2017] [wsgi:error] [pid 1576] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Apr 27 12:25:08.300646 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:25:08.300653 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:25:08.300660 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
[Thu Apr 27 12:25:08.300672 2017] [wsgi:error] [pid 1576] return view_func(request, *args, **kwargs)
[Thu Apr 27 12:25:08.300685 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/views/sync.py", line 45, in main_sync
[Thu Apr 27 12:25:08.300692 2017] [wsgi:error] [pid 1576] sync.synchronize()
[Thu Apr 27 12:25:08.300698 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 207, in synchronize
[Thu Apr 27 12:25:08.300711 2017] [wsgi:error] [pid 1576] as_ = self._sync(policy_key, folders, sync_key, True)
[Thu Apr 27 12:25:08.300718 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/sync.py", line 224, in _sync
[Thu Apr 27 12:25:08.300725 2017] [wsgi:error] [pid 1576] as_.send(policy_key, as_folder, synckey, fetch)
[Thu Apr 27 12:25:08.300731 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 72, in send
[Thu Apr 27 12:25:08.300744 2017] [wsgi:error] [pid 1576] self.send_for_folder(policy_key, folder, synckey, fetch, headers)
[Thu Apr 27 12:25:08.300751 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/commands/airsync.py", line 258, in send_for_folder
[Thu Apr 27 12:25:08.300758 2017] [wsgi:error] [pid 1576] entity = save_entity(data, user, folder)
[Thu Apr 27 12:25:08.300770 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/activesync/mappings/contact.py", line 295, in save_contact
[Thu Apr 27 12:25:08.300777 2017] [wsgi:error] [pid 1576] c.save() #TODO: are the addresses OK (when they do not have a PK yet) ??
[Thu Apr 27 12:25:08.300784 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/persons/models/contact.py", line 217, in save
[Thu Apr 27 12:25:08.300796 2017] [wsgi:error] [pid 1576] super(AbstractContact, self).save(*args, **kwargs)
[Thu Apr 27 12:25:08.300803 2017] [wsgi:error] [pid 1576] File "/var/www/hybird-creme_crm-1.6-f560ac19d8b7/creme/creme_core/models/entity.py", line 338, in save
[Thu Apr 27 12:25:08.300810 2017] [wsgi:error] [pid 1576] super(CremeEntity, self).save(*args, **kwargs)
[Thu Apr 27 12:25:08.300816 2017] [wsgi:error] [pid 1576] File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 685, in save
[Thu Apr 27 12:25:08.300828 2017] [wsgi:error] [pid 1576] "unsaved related object '%s'." % field.name
[Thu Apr 27 12:25:08.300836 2017] [wsgi:error] [pid 1576] ValueError: save() prohibited to prevent data loss due to unsaved related object 'billing_address'.