<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    OK so there is nothing wrong with the queries. Is it possible you
    hit a maximum connections limit in mysql? And what is your max
    allowed packet size?<br>
    <br>
    Best regards,<br>
    <br>
    --<br>
    Tijmen de Mes<br>
    AG Projects<br>
    <br>
    <br>
    Op 6/7/11 4:07 PM, Duane Larson schreef:
    <blockquote
      cite="mid:BANLkTinEmfCQf1Q3_Y9FXJv6jt6S3TwEng@mail.gmail.com"
      type="cite">
      <div>When I execute</div>
      <div>update active_sessions set
        val='Q0RSYzokdGhpcy0+aW4gPSAnJzsgJHRoaXMtPnB0ID0gYXJyYXkoKTsgJHRoaXMtPnB0WydhdXRoJ10gPSAnMSc7ICR0aGlzLT5wdFsnY2hhbGxlbmdlJ10gPSAnMSc7ICRHTE9CQUxTWydhdXRoJ10gPSBuZXcgQ0RSVG9vbF9BdXRoOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoID0gYXJyYXkoKTsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsndWlkJ10gPSAnZm9ybSc7ICRHTE9CQUxTWydhdXRoJ10tPmF1dGhbJ3Blcm0nXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydzb3VyY2UnXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydleHAnXSA9ICcyMTQ3NDgzNjQ3JzsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsncmVmcmVzaCddID0gJzIxNDc0ODM2NDcnOyAkR0xPQkFMU1snY2hhbGxlbmdlJ10gPSAnJzsg',
        changed='20110606111425', count=count+1 where
        sid='99eeb2a6426095d5708d0a5149196bae' and name='CDRc'</div>
      <div>&nbsp;</div>
      <div>manually it is ok</div>
      <div>Query OK, 1 row affected (0.00 sec)<br>
        Rows matched: 1&nbsp; Changed: 1&nbsp; Warnings: 0</div>
      <div>&nbsp;</div>
      <div>This doesn't happen all the time.&nbsp; It appears that something
        happens after a while and then I start getting the </div>
      <div>MySQL error: 1036 (Table 'active_sessions' is read only)
        Session halted. </div>
      <div>errors.</div>
      <div>&nbsp;</div>
      <div>I will have to look into this more.&nbsp; If anyone has any ideas
        let me know.</div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
      <div><br>
        <br>
        &nbsp;</div>
      <div class="gmail_quote">On Tue, Jun 7, 2011 at 8:10 AM, Tijmen de
        Mes <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:tijmen@ag-projects.com">tijmen@ag-projects.com</a>&gt;</span>
        wrote:<br>
        <blockquote style="border-left: 1px solid rgb(204, 204, 204);
          margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"
          class="gmail_quote">
          <div text="#000000" bgcolor="#ffffff">Hi,<br>
            <br>
            It looks like there is something wrong with your database.
            What happens if you execute the active sessions query
            manually?<br>
            <br>
            Do you have an empty database, or are there valid
            destinations in ther (from the sample data)?<br>
            <br>
            Best regards,<br>
            <br>
            --<br>
            Tijmen de Mes<br>
            AG Projects<br>
            <br>
            Op 6/6/11 6:37 PM, Duane Larson schreef:
            <blockquote type="cite">
              <div>
                <div class="h5">
                  <div>I am having some database errors with a new
                    install of CDRTool.&nbsp; One error I keep seeing in my
                    syslog is</div>
                  <div>&nbsp;</div>
                  <div>Database error: Invalid SQL: select *,
                    UNIX_TIMESTAMP(AcctStartTime) as
                    timestamp#012&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from radacct201105 where&nbsp;
                    (1=1)&nbsp; and&nbsp; Normalized = '0' and AcctStopTime not
                    like '0000-00-00 00:00:00%'&nbsp; order by RadAcctId asc</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>I don't see any issues with this log, but I don't
                    know why it is trying to look for radacct201105.&nbsp; It
                    was never created and the database doesn't exist
                    since this month is 201106.</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>Then I see another issue and this does cause
                    issues with the CDRTool application.&nbsp; With this I am
                    not able to log into the CDRTool and see the
                    following error at the bottom of the login page</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>MySQL error: 1036 (Table 'active_sessions' is
                    read only) Session halted. </div>
                  <div>&nbsp;</div>
                  <div>When I look in the syslog I see the following
                    error</div>
                  <div>&nbsp;</div>
                  <div>Database error: Invalid SQL: update
                    active_sessions set
                    val='Q0RSYzokdGhpcy0+aW4gPSAnJzsgJHRoaXMtP<br>
nB0ID0gYXJyYXkoKTsgJHRoaXMtPnB0WydhdXRoJ10gPSAnMSc7ICR0aGlzLT5wdFsnY2hhbGxlbmdlJ10gPSAnMSc7ICRHTE9CQUxTWydhdXRoJ10gPSBuZXcgQ0RSVG9vbF9BdXRoO<br>
yAkR0xPQkFMU1snYXV0aCddLT5hdXRoID0gYXJyYXkoKTsgJEdMT0JBTFNbJ2F1dGgnXS0+YXV0aFsndWlkJ10gPSAnZm9ybSc7ICRHTE9CQUxTWydhdXRoJ10tPmF1dGhbJ3Blcm0nX<br>
SA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydzb3VyY2UnXSA9ICcnOyAkR0xPQkFMU1snYXV0aCddLT5hdXRoWydleHAnXSA9ICcyMTQ3NDgzNjQ3JzsgJEdMT0JBTFNbJ2F1d<br>
                    GgnXS0+YXV0aFsncmVmcmVzaCddID0gJzIxNDc0ODM2NDcnOyAkR0xPQkFMU1snY2hhbGxlbmdlJ10gPSAnJzsg',
                    changed='20110606111425', count=count+1 where sid=<br>
                    '99eeb2a6426095d5708d0a5149196bae' and name='CDRc'</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>&nbsp;</div>
                  <div>If I stop cdrtool and try to restart it I am not
                    able to restart CDRTool and see the following error
                    in syslog</div>
                  <div>Database error: Invalid SQL: delete from memcache
                    where `key` = 'destinations_sip' or `key` =
                    'destinations'</div>
                  <div>&nbsp;</div>
                  <div>In order to get CDRTool to start up again I have
                    to stop and restart MySQL database.</div>
                  <div>&nbsp;</div>
                  <div>Any ideas what could be wrong?&nbsp; This is the
                    latest version of CDRTool and I am running it on
                    Ubuntu Maverick.</div>
                  <div>&nbsp;</div>
                </div>
              </div>
              <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
          </div>
          <br>
          _______________________________________________<br>
          Users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      --<br>
      *--*--*--*--*--*<br>
      Duane<br>
      *--*--*--*--*--*<br>
      --<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>