[Creme 2.5] Probleme de synchro des mails
#1
Bonjour,

Nous rencontrons un souci avec la synchronisation des mails.
Certains mails, bloquent la synchro dans crème. il faut les enlever a la main dans la boite mail pour pourvoir débloquer.
nous sommes sous crème 2.5 en docker

au niveau des logs j'ai
Code :
[2024-07-10 15:29:57] ERROR - creme.creme_core.creme_jobs.base :

Traceback (most recent call last):

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/creme_jobs/base.py", line 119, in execute

    self._execute(job)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/creme_jobs/entity_emails_sync.py", line 265, in _execute

    if self._create_email_to_sync(

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/creme_jobs/entity_emails_sync.py", line 213, in _create_email_to_sync

    person=cache.get_entity(sender, owner),

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/creme_jobs/entity_emails_sync.py", line 83, in get_entity

    entity = EntityCredentials.filter(

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/auth/entity_credentials.py", line 155, in filter

    queryset=queryset.filter(cls._build_sandbox_Q(user)),

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/auth/entity_credentials.py", line 113, in _build_sandbox_Q

    teams = user.teams

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/models/auth.py", line 1081, in teams

    assert not self.is_team

AssertionError
et aussi

Code :
[pid: 51|app: 0|req: 2268/5237] 172.27.0.1 () {64 vars in 1381 bytes} [Wed Jul 10 15:32:07 2024] GET /emails/synchronization/portal => generated 37403 bytes in 88 msecs (HTTP/1.1 200) 9 headers in 398 bytes (1 switches on core 0)

/srv/creme/venv/lib/python3.8/site-packages/formtools/__init__.py:2: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

  from pkg_resources import DistributionNotFound, get_distribution
Merci d'avance!
  Répondre
#2
Bonsoir,

je regarderai ça après mes vacances (donc oui il y aura plus de délais que d'habitude). Le 2ème message n'est pas inquiétant, en revanche il semble que vous ayez trouvé un bug (ça a l'air en lien avec les équipes -- j'espère que vous en utilisez sinon je ne comprends pas haha).

Désolé pour le timing un peu nul.

À bientôt !
  Répondre
#3
Bonjour, pas de soucis pour le délai!

Il y a bien 2 équipes crées.

Bonnes vacances!
  Répondre
#4
Voici d'autres erreurs que nous avons :

Code :
[2024-07-17 14:28:21] ERROR - django.request : Internal Server Error: /emails/synchronization/email_to_sync/accept

[pid: 51|app: 0|req: 3102/6770] 172.27.0.1 () {68 vars in 1399 bytes} [Wed Jul 17 14:28:21 2024] POST /emails/synchronization/email_to_sync/accept => generated 64 bytes in 249 msecs (HTTP/1.1 500) 8 headers in 278 bytes (1 switches on core 0)

[2024-07-17 14:28:34] ERROR - creme.creme_core.middleware.exceptions : Error (status=409)

Traceback (most recent call last):

  File "/srv/creme/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response

    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 104, in view

    return self.dispatch(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/views/generic/base.py", line 381, in dispatch

    return super().dispatch(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 143, in dispatch

    return handler(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/views/synchronization.py", line 321, in post

    raise ConflictError(

creme.creme_core.core.exceptions.ConflictError: Vous ne pouvez pas supprimer les dernier destinataire.

[2024-07-17 14:28:34] WARNING - django.request : Conflict: /emails/synchronization/email_to_sync/90/recipient/delete

[pid: 52|app: 0|req: 1656/6771] 172.27.0.1 () {68 vars in 1425 bytes} [Wed Jul 17 14:28:34 2024] POST /emails/synchronization/email_to_sync/90/recipient/delete => generated 54 bytes in 24 msecs (HTTP/1.1 409) 8 headers in 265 bytes (1 switches on core 0)

[2024-07-17 14:28:55] ERROR - creme.creme_core.middleware.exceptions : Error (status=500)

Traceback (most recent call last):

  File "/srv/creme/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 197, in _get_response

    response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 104, in view

    return self.dispatch(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/creme_core/views/generic/base.py", line 381, in dispatch

    return super().dispatch(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/django/views/generic/base.py", line 143, in dispatch

    return handler(request, *args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/views/synchronization.py", line 158, in post

    self.perform_operation(e2s)

  File "/srv/creme/venv/lib/python3.8/site-packages/creme/emails/views/synchronization.py", line 232, in perform_operation

    folder = get_folder_model().objects.get_or_create(

  File "/srv/creme/venv/lib/python3.8/site-packages/django/db/models/manager.py", line 87, in manager_method

    return getattr(self.get_queryset(), name)(*args, **kwargs)

  File "/srv/creme/venv/lib/python3.8/site-packages/django/db/models/query.py", line 916, in get_or_create

    return self.get(**kwargs), False

  File "/srv/creme/venv/lib/python3.8/site-packages/django/db/models/query.py", line 640, in get

    raise self.model.MultipleObjectsReturned(

creme.documents.models.folder.Folder.MultipleObjectsReturned: get() returned more than one Folder -- it returned more than 20!

[2024-07-17 14:28:55] ERROR - django.request : Internal Server Error: /emails/synchronization/email_to_sync/accept
  Répondre


Atteindre :


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