[asterisk-bugs] [Asterisk 0016081]: utils.c:938 ast_carefulwrite: Timed out trying to write causes corruption to astdb

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 15 18:37:59 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16081 
====================================================================== 
Reported By:                aragon
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16081
Category:                   Applications/app_queue
Reproducibility:            have not tried
Severity:                   block
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.26.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-15 10:02 CDT
Last Modified:              2009-10-15 18:37 CDT
====================================================================== 
Summary:                    utils.c:938 ast_carefulwrite: Timed out trying to
write causes corruption to astdb
Description: 
Agent addmember to local extensions causes the agent to be logged as
non-existent channels when ast_carefulwrite times out during login.

[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write
[Oct 15 10:40:07] NOTICE[29962]: utils.c:938 ast_carefulwrite: Timed out
trying to write

Here  is an example of the corruption where the same local extension is
logged twice.  The "outgoing" agent cannot logoff unless I manually remove
from astdb.  The local agent can logoff but since the outgoing cannot calls
entering queue fail to reach agents and the local channel cannot log back
in.

Local/3345 at queuefifteen-outgoing/n (dynamic) (Invalid) has taken no calls
yet
      Local/3345 at queuefifteen-agent/n (dynamic) (Not in use) has taken 2
calls (last was                                                            
    1915 secs ago)

====================================================================== 

---------------------------------------------------------------------- 
 (0112354) aragon (reporter) - 2009-10-15 18:37
 https://issues.asterisk.org/view.php?id=16081#c112354 
---------------------------------------------------------------------- 
Current symptoms in SVN 1.4 r223955 are exactly the same as my old ticket
https://issues.asterisk.org/view.php?id=14843 but it is no longer possible to
revert r165796

   -- Goto (zap-incoming,7434,21)
    -- Executing [7434 at zap-incoming:21] Set("Zap/4-1",
"CHANNEL(language)=en") in new stack
    -- Executing [7434 at zap-incoming:22] Gosub("Zap/4-1",
"scm-aa-main|s|1") in new stack
    -- Executing [s at scm-aa-main:1] Answer("Zap/4-1", "") in new stack
    -- Executing [s at scm-aa-main:2] AGI("Zap/4-1",
"/var/www/scopserv/telephony/scripts/agi/ivr.php|998") in new stack
    -- Launched AGI Script
/var/www/scopserv/telephony/scripts/agi/ivr.php
[Oct 15 19:21:54] NOTICE[32659]: utils.c:938 ast_carefulwrite: Timed out
trying to write
[Oct 15 19:21:54] NOTICE[32659]: utils.c:938 ast_carefulwrite: Timed out
trying to write 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-15 18:37 aragon         Note Added: 0112354                          
======================================================================




More information about the asterisk-bugs mailing list