Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
1255 Visualizzazioni

 Hi,


Odoo 16 CE instance is crushing because of imap. I have in and out servers configured but every few months Odoo starts to crush. Here are the logs

This is happening every second. Any solution to fix this. This is related to Outlook plugin but not sure how to fix it.

2024-03-20 10:19:04,273 72014 INFO prod.ene.eur odoo.addons.microsoft_outlook.models.microsoft_outlook_mixin: Microsoft Outlook: reuse existing access token. It expires in 62 minutes
2024-03-20 10:19:04,392 72014 INFO prod.ene.eur odoo.addons.mail.models.fetchmail: General failure when trying to fetch mail from outlook server o365-1.
Traceback (most recent call last):
  File "/opt/odoo/odoo16/odoo/addons/mail/models/fetchmail.py", line 202, in fetch_mail
    imap_server = server.connect()
  File "/opt/odoo/odoo16/odoo/addons/mail/models/fetchmail.py", line 131, in connect
    self._imap_login(connection)
  File "/opt/odoo/odoo16/odoo/addons/microsoft_outlook/models/fetchmail_server.py", line 60, in _imap_login
    connection.select('INBOX')
  File "/usr/lib/python3.10/imaplib.py", line 756, in select
    typ, dat = self._simple_command(name, mailbox)
  File "/usr/lib/python3.10/imaplib.py", line 1230, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python3.10/imaplib.py", line 1055, in _command_complete
    raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.IMAP4.error: SELECT command error: BAD [b'User is authenticated but not connected.']
Avatar
Abbandona
Autore Risposta migliore

I am not sure what is real cause but it seams that is something related to office365, outlook connector, tokens, imaplib etc.

I have everything set up already, but from time to time (every few months) Odoo start to crash. When I look at logs I see above error. Then I need to delete incoming and outgoing server conf, disable outlook plugin and then enable everything from begining (except azure app part) - only in Odoo.

Thanks

Avatar
Abbandona
Risposta migliore

I think it not right

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 24
3110
2
lug 24
5516
0
mar 15
4343
2
lug 24
6221
0
lug 24
3250