Skip to content

Instantly share code, notes, and snippets.

@weweliang
Created October 16, 2014 03:30
Show Gist options
  • Save weweliang/d9620fbb78ba736d7f67 to your computer and use it in GitHub Desktop.
Save weweliang/d9620fbb78ba736d7f67 to your computer and use it in GitHub Desktop.
2014-10-16 03:32:51,368 13186 INFO medeq openerp.addons.mail.mail_thread: Routing mail from wewe <imwewe@gmail.com> to 上海万德医疗有限公司<catchall@medeq.net> with Message-Id <CAAyNhWtphmJFU0srhoSacAQiWYpOLMOC8SSkFJ8DCgjBMoQN6w@mail.gmail.com>: direct reply to a private message: 26, custom_values: None, uid: 1
2014-10-16 03:32:51,392 13186 ERROR medeq openerp.sql_db: bad query: INSERT INTO "mail_message" ("id", "body", "model", "record_name", "res_id", "message_id", "parent_id", "subtype_id", "reply_to", "no_auto_thread", "date", "author_id", "type", "email_from", "subject", "create_uid", "write_uid", "create_date", "write_date") VALUES(nextval('mail_message_id_seq'), '<div dir="ltr">我们要订购100箱东西</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 11:20 AM, wewe <span dir="ltr">&lt;<a href="mailto:wewe@medeq.net" target="_blank">wewe@medeq.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>可以,合作愉快</p>
--<br>wewe
<br><small>Sent by <a style="color:inherit" href="http://medeq.net" target="_blank">上海万德医疗有限公司</a> using <a style="color:inherit" href="https://www.odoo.com/" target="_blank">Odoo</a></small>
, <span><small>access directly to <a style="color:inherit" href="http://erp.medeq.net:8069/web/signup?redirect=%2Fweb%23action%3Dmail.action_mail_redirect&amp;token=fqCBnBqLOXBxiU8GPQhe&amp;db=medeq" target="_blank">your messages </a></small></span>
</blockquote></div><br></div>', NULL, NULL, 0, '<CAAyNhWtphmJFU0srhoSacAQiWYpOLMOC8SSkFJ8DCgjBMoQN6w@mail.gmail.com>', 22, 1, '上海万德医疗有限公司 <catchall@medeq.net>', false, '2014-10-16 03:20:59', 7, 'email', 'wewe <imwewe@gmail.com>', 'Re: Re: 合作事宜', 1, 1, (now() at time zone 'UTC'), (now() at time zone 'UTC')) RETURNING id
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
TransactionRollbackError: could not serialize access due to concurrent update
CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x"
2014-10-16 03:32:51,392 13186 ERROR medeq openerp.addons.fetchmail.fetchmail: Failed to process mail from imap server info.
Traceback (most recent call last):
File "/home/odoo/GreenOdoo/source/addons/fetchmail/fetchmail.py", line 207, in fetch_mail
context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1161, in message_process
thread_id = self.message_route_process(cr, uid, msg_txt, msg, routes, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1089, in message_route_process
new_msg_id = model_pool.message_post(cr, uid, [thread_id], context=context, subtype='mail.mt_comment', **message_dict)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_thread.py", line 1648, in message_post
msg_id = mail_message.create(cr, uid, values, context=context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/addons/mail/mail_message.py", line 804, in create
newid = super(mail_message, self).create(cr, uid, values, context)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 332, in old_api
result = method(recs, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 3960, in create
record = self.browse(self._create(old_vals))
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/api.py", line 464, in new_api
result = method(self._model, cr, uid, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/models.py", line 4098, in _create
tuple([u[2] for u in updates if len(u) > 2])
File "/home/odoo/GreenOdoo/source/openerp/sql_db.py", line 158, in wrapper
return f(self, *args, **kwargs)
File "/home/odoo/GreenOdoo/source/openerp/sql_db.py", line 234, in execute
res = self._obj.execute(query, params)
TransactionRollbackError: could not serialize access due to concurrent update
CONTEXT: SQL statement "SELECT 1 FROM ONLY "public"."res_users" x WHERE "id" OPERATOR(pg_catalog.=) $1 FOR SHARE OF x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment