Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
724 Vizualizări

Good morning everyone,

I'm experiencing an issue with fetchmail and incoming mail. The other day, everything was working perfectly, but today, some incoming servers are not functioning properly. What's strange is that all servers that aren't associated with "user" accounts are working fine, but those associated with addresses like info@... are not. I'm not sure if there's some connection between them that I'm not seeing in Odoo, but they were working fine the other day. The error message I'm encountering is as follows it appears when i press the button "search now" in the incoming server: 

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo-server/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 368, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/odoo/odoo-server/odoo/http.py", line 357, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 921, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 546, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1328, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1316, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 464, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 451, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 236, in fetch_mail
    server.write({'date': fields.Datetime.now()})
  File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 96, in write
    self._update_cron()
  File "/odoo/odoo-server/addons/fetchmail/models/fetchmail.py", line 245, in _update_cron
    cron = self.env.ref('fetchmail.ir_cron_mail_gateway_action')
  File "/odoo/odoo-server/odoo/api.py", line 584, in ref
    if record.exists():
  File "/odoo/odoo-server/odoo/models.py", line 4902, in exists
    self.env.cr.execute(query_str, params)
  File "", line 2, in execute
  File "/odoo/odoo-server/odoo/sql_db.py", line 90, in check
    return f(self, *args, **kwargs)
  File "/odoo/odoo-server/odoo/sql_db.py", line 311, in execute
    res = self._obj.execute(query, params)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block


Imagine profil
Abandonează
Cel mai bun răspuns

Hi,

I think error is somewhat related to the wait time as it is being raised.

Also you can check the log in the odoo server to see the more details about the error to help you to fix it.

Imagine profil
Abandonează