[asterisk-bugs] [JIRA] (ASTERISK-26633) res_odbc: SQL Execute returned "Deadlock found when trying to get lock; try restarting transaction"

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Jan 10 14:14:10 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-26633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-26633:
------------------------------------

    Assignee: wushumasters  (was: Unassigned)
      Status: Waiting for Feedback  (was: Triage)

I'm not sure the issue is within Asterisk, but we can try something.

Can you try two things?

1. Build the latest UnixODBC 2.3.4
2. After trying that, then with that new version try upping "max_connections" (res_odbc.conf) to something above 1.

Provide debug from the new attempt. Thanks!

> res_odbc: SQL Execute returned "Deadlock found when trying to get lock; try restarting transaction"
> ---------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26633
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26633
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_odbc
>    Affects Versions: 13.13.0
>         Environment: Debian 8 64 bits + Mysql
>            Reporter: wushumasters
>            Assignee: wushumasters
>         Attachments: debug, debug_complete, extconfig.conf, extensions.conf, full.log, odbc.ini, odbcinst.ini, queues.conf, res_odbc.conf, sqlerror.log
>
>
> Hello,
> If i settings my queues to "ringall" and receive many calls i start to had this message from mysql 
> {noformat}
> [2016-11-30 15:50:26] WARNING[12027][C-00001731] res_odbc.c: SQL Execute returned an error: HY000: [MySQL][ODBC 5.1 Driver][mysqld-5.5.52-0+deb8u1-log]Deadlock found when trying to get lock; try restarting transaction
> [2016-11-30 15:50:26] WARNING[12027][C-00001731] res_odbc.c: SQL Execute error -1!
> {noformat}
> I attached a log where this only happens when a agent not answer a call and the app write in the queue_log RINGNOANSWER
> Sorry my english
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list