[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] Sorcery Cache Error
From:       Ross Beer <ross.beer () outlook ! com>
Date:       2016-02-25 15:31:49
Message-ID: DUB129-W58215B3654AD0EB18D40B0FFA60 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Hi George,
 
I have created an issue on Jira as requested, the issue can be found here:
 
https://issues.asterisk.org/jira/browse/ASTERISK-25811
 
Thank you for your assistance with this bug,
 
Kind regards,

Ross
 
From: george.joseph@fairview5.com
Date: Thu, 25 Feb 2016 08:15:15 -0700
To: asterisk-dev@lists.digium.com
Subject: Re: [asterisk-dev] Sorcery Cache Error



On Thu, Feb 25, 2016 at 7:20 AM, Ross Beer <ross.beer@outlook.com> wrote:



Hi,
 
I am receiving the below message when using Sorcery cache:
 
[2016-02-25 13:47:02] ERROR[17353]: res_sorcery_memory_cache.c:1559 \
sorcery_memory_cache_delete: Unable to delete object \
'<ENDPOINT>;@115bb1375dae1799c68048e7abef7e05' from sorcery cache  Contact \
                <ENDPOINT>/sip:<ENDPOINT>@<IP Address>:39212;transport=TLS has been \
                deleted
    -- Added contact 'sip:<ENDPOINT>@<IP Address>:39212;transport=TLS' to AOR \
'<ENDPOINT>' with expiration of 60 seconds  Contact <ENDPOINT>/sip:<ENDPOINT>@<IP \
Address>:39212;transport=TLS has been created  Contact <ENDPOINT>/sip:<ENDPOINT>@<IP \
Address>:39212;transport=TLS is now Unknown.  RTT: 0.000 msec  
The device had previously registered and therefore the device should have been in the \
cache. When this issue occurs it blocks the registration of an endpoint causing it to \
go offline. I can replicate this issue by pressing 'Re-register' within the Snom \
interface.  
Firstly I can't find documentation on 'full_backend_cache' on the Wiki page: \
https://wiki.asterisk.org/wiki/display/AST/Sorcery+Caching ​I think this was on my \
todo list from a few weeks ago when I was experimenting with full_backend_cache. \
:)​   
Therefore is full cache setup in the same way as other object settings?
 
[res_pjsip] ; 
auth/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 auth=config,pjsip.conf,criteria=type=auth
auth=realtime,ps_auths
 
aor/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 aor=config,pjsip.conf,criteria=type=aor
aor=realtime,ps_aors
 
domain_alias/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 domain_alias=config,pjsip.conff,criteria=type=domain_alias
domain_alias=realtime,ps_domain_aliases
 
endpoint/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 endpoint=config,pjsip.conf,criteria=type=endpoint
endpoint=realtime,ps_endpoints
 
contact/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 contact=config,pjsip.conf,criteria=type=contact
contact=realtime,ps_contacts
​If you don't use realtime for contacts and let it default to the astdb, does \
everything else work?​ 

 
[res_pjsip_endpoint_identifier_ip]
identify/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache=yes
 identify=config,pjsip.conf,criteria=type=identify
identify=realtime,ps_endpoint_id_ips

Looking at the real-time database the ID is present all be it encoded with \
<ENDPOINT>^3B which is the encoding for a semicolon. Therefore it looks like the \
cache isn't matching the object correctly or not being inserted in the first place. 

​I can look at this this afternoon.​  Can you open an Jira issue?

 
I don't believe this relates to the full_backend_cache as this issue is also present \
on another test box which is using standard cache.  
Any advice on how to resolve/investigate the issue would be helpful.


​I think you've provided enough.​ 
 
Kind regards,
 
Ross
 		 	   		  

--

_____________________________________________________________________

-- Bandwidth and Colocation Provided by http://www.api-digital.com --



asterisk-dev mailing list

To UNSUBSCRIBE or update options visit:

   http://lists.digium.com/mailman/listinfo/asterisk-dev



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev 		 	   		  


[Attachment #5 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi George,<BR>&nbsp;<BR>I have created an \
issue&nbsp;on Jira as requested, the&nbsp;issue&nbsp;can be found \
here:<BR>&nbsp;<BR><a \
href="https://issues.asterisk.org/jira/browse/ASTERISK-25811">https://issues.asterisk.org/jira/browse/ASTERISK-25811</a><BR>&nbsp;<BR>Thank \
you for your assistance with this bug,<BR>&nbsp;<BR>Kind \
regards,<BR><br>Ross<br>&nbsp;<BR><div><hr id="stopSpelling">From: \
george.joseph@fairview5.com<br>Date: Thu, 25 Feb 2016 08:15:15 -0700<br>To: \
asterisk-dev@lists.digium.com<br>Subject: Re: [asterisk-dev] Sorcery Cache \
Error<br><br><div dir="ltr"><div class="ecxgmail_default" style="font-family: arial \
narrow,sans-serif;"><br></div><div class="ecxgmail_extra"><br><div \
class="ecxgmail_quote">On Thu, Feb 25, 2016 at 7:20 AM, Ross Beer <span \
dir="ltr">&lt;<a href="mailto:ross.beer@outlook.com" \
target="_blank">ross.beer@outlook.com</a>&gt;</span> wrote:<br><blockquote \
class="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, \
204); border-left-width: 1px; border-left-style: solid;">


<div><div dir="ltr">Hi,<br>&nbsp;<br>I am receiving the below message when using \
Sorcery cache:<br>&nbsp;<br><blockquote dir="ltr"><font size="2" style="font-size: \
10pt;">[2016-02-25 13:47:02] ERROR[17353]: res_sorcery_memory_cache.c:1559 \
sorcery_memory_cache_delete: Unable to delete object \
'&lt;ENDPOINT&gt;;@115bb1375dae1799c68048e7abef7e05' from sorcery \
cache<br>&nbsp;Contact &lt;ENDPOINT&gt;/sip:&lt;ENDPOINT&gt;@&lt;IP \
Address&gt;:39212;transport=TLS has been deleted<br>&nbsp;&nbsp;&nbsp; -- Added \
contact 'sip:&lt;ENDPOINT&gt;@&lt;IP Address&gt;:39212;transport=TLS' to AOR \
'&lt;ENDPOINT&gt;' with expiration of 60 seconds<br>&nbsp;Contact \
&lt;ENDPOINT&gt;/sip:&lt;ENDPOINT&gt;@&lt;IP Address&gt;:39212;transport=TLS has been \
created<br>&nbsp;Contact &lt;ENDPOINT&gt;/sip:&lt;ENDPOINT&gt;@&lt;IP \
Address&gt;:39212;transport=TLS is now Unknown.&nbsp; RTT: 0.000 \
msec</font><br></blockquote>&nbsp;<br>The device had previously registered and \
therefore the device should have been in the cache. When this issue occurs it blocks \
the registration of an endpoint causing it to go offline. I can replicate this issue \
by pressing 'Re-register' within the Snom interface.<br>&nbsp;<br>Firstly I can't \
find documentation on 'full_backend_cache' on the Wiki page: <a \
href="https://wiki.asterisk.org/wiki/display/AST/Sorcery+Caching" \
target="_blank">https://wiki.asterisk.org/wiki/display/AST/Sorcery+Caching</a></div></div></blockquote><div><br></div><div><div \
class="ecxgmail_default" style='font-family: "arial narrow",sans-serif;'>​I think \
this was on my todo list from a few weeks ago when I was experimenting with \
full_backend_cache. :)​</div></div><div>&nbsp;</div><blockquote \
class="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, \
204); border-left-width: 1px; border-left-style: solid;"><div><div \
dir="ltr"><br>&nbsp;<br>Therefore is full cache setup in the same way as other object \
settings?<br>&nbsp;<br><blockquote dir="ltr"><font size="2">[res_pjsip] ; \
<br>auth/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=28800,e \
xpire_on_reload=yes,full_backend_cache=yes<br>auth=config,pjsip.conf,criteria=type=auth<br>auth=realtime,ps_auths</font><br><font \
size="2"></font>&nbsp;<br><font \
size="2">aor/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum=288 \
00,expire_on_reload=yes,full_backend_cache=yes<br>aor=config,pjsip.conf,criteria=type=aor<br>aor=realtime,ps_aors</font><br><font \
size="2"></font>&nbsp;<br><font \
size="2">domain_alias/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_ma \
ximum=28800,expire_on_reload=yes,full_backend_cache=yes<br>domain_alias=config,pjsip.c \
onff,criteria=type=domain_alias<br>domain_alias=realtime,ps_domain_aliases</font><br><font \
size="2"></font>&nbsp;<br><font \
size="2">endpoint/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximu \
m=28800,expire_on_reload=yes,full_backend_cache=yes<br>endpoint=config,pjsip.conf,criteria=type=endpoint<br>endpoint=realtime,ps_endpoints</font><br><font \
size="2"></font>&nbsp;<br><font \
size="2">contact/cache=memory_cache,object_lifetime_stale=3600,object_lifetime_maximum \
=28800,expire_on_reload=yes,full_backend_cache=yes<br>contact=config,pjsip.conf,criter \
ia=type=contact<br>contact=realtime,ps_contacts</font></blockquote></div></div></blockquote><div><br></div><div><div \
class="ecxgmail_default" style='font-family: "arial narrow",sans-serif;'>​If you \
don't use realtime for contacts and let it default to the astdb, does everything else \
work?​</div></div><div>&nbsp;<br></div><blockquote class="ecxgmail_quote" \
style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: \
1px; border-left-style: solid;"><div><div dir="ltr"><blockquote dir="ltr"><br><font \
size="2"></font>&nbsp;<br><font \
size="2">[res_pjsip_endpoint_identifier_ip]<br>identify/cache=memory_cache,object_life \
time_stale=3600,object_lifetime_maximum=28800,expire_on_reload=yes,full_backend_cache= \
yes<br>identify=config,pjsip.conf,criteria=type=identify<br>identify=realtime,ps_endpoint_id_ips</font><br><br></blockquote>Looking \
at the real-time database the ID is present all be it encoded with \
&lt;ENDPOINT&gt;^3B which is the encoding for a semicolon. Therefore it looks like \
the cache isn't matching the object correctly or not being inserted in the first \
place. <br></div></div></blockquote><div><br></div><div><div class="ecxgmail_default" \
style='font-family: "arial narrow",sans-serif;'>​I can look at this this \
afternoon.​ &nbsp;Can you open an Jira \
issue?</div><br></div><div><br></div><blockquote class="ecxgmail_quote" \
style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: \
1px; border-left-style: solid;"><div><div dir="ltr">&nbsp;<br>I don't believe this \
relates to the full_backend_cache as this issue is also present on another test box \
which is using standard cache.<br>&nbsp;<br>Any advice on how to resolve/investigate \
the issue would be helpful.<br></div></div></blockquote><div><br></div><div><br></div><div><div \
class="ecxgmail_default" style='font-family: "arial narrow",sans-serif;'>​I think \
you've provided enough.​</div></div><div>&nbsp;<br></div><blockquote \
class="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, \
204); border-left-width: 1px; border-left-style: solid;"><div><div \
dir="ltr">&nbsp;<br>Kind regards,<span class="ecxHOEnZb"><font \
color="#888888"><br>&nbsp;<br>Ross<br> 		 	   		  </font></span></div></div> \
<br>--<br> _____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" \
target="_blank" rel="noreferrer">http://www.api-digital.com</a> --<br> <br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
&nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" \
target="_blank" rel="noreferrer">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div></div>
 <br>-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev</div> 		 	   		  \
</div></body> </html>



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic