跳至內容
選單
此問題已被標幟
2 回覆
1260 瀏覽次數

 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.']
頭像
捨棄
作者 最佳答案

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

頭像
捨棄
最佳答案

I think it not right

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 24
3110
2
7月 24
5516
0
3月 15
4343
2
7月 24
6221
0
7月 24
3250