<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="-1">Hello Koot,<br>
      <br>
    </font><font size="-1">yes, I see now.<br>
      <br>
    </font><font size="-1">The root reason could be big "data" size for
      the invoice, considering "MySQL server has gone away" error.</font><br>
    <font size="-1"><br>
      Could you please share output of the:<br>
    </font><br>
    <font size="-1">    grep max_allowed_packet /etc/mysql/my.cnf<br>
      <br>
    </font><font size="-1">Values in my config are:<br>
    </font>
    <blockquote><font size="-1">max_allowed_packet                = 128M<br>
        max_allowed_packet                = 128M<br>
      </font></blockquote>
    <font size="-1">Do these values look like close to your generated
      invoices size?</font><br>
    <font size="-1">If yes, you can increase config value</font>
    <blockquote><font size="-1">www_admin.filesize_limit in your
        /etc/ngcp-config/config.yml and apply these changes.</font></blockquote>
    <font size="-1">Best regards,</font><br>
    <font size="-1">Irina Peshinskaya<br>
    </font>
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 12.10.2017 12:43, Koot Pienaar
      wrote:<br>
    </div>
    <blockquote
      cite="mid:037901d3433e$95fe9840$c1fbc8c0$@ntelecom.co.za"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">HI Irina<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Current version
            is 5.3.1<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"
style="margin-bottom:7.5pt;line-height:15.0pt;background:whitesmoke;word-break:break-all"><span
style="font-size:10.0pt;font-family:Consolas;color:#333333;mso-fareast-language:AF">ngcp-panel
            5.3.1.2+0~mr5.3.1.2<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">regards <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">Koot Pienaar<o:p></o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">VoIP Coordinator<o:p></o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">Ntelecom Central<o:p></o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">Tel: 051 412 6300<o:p></o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US"><o:p> </o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">Email: </span><span
              style="color:#1F497D;mso-fareast-language:AF"><a
                moz-do-not-send="true" href="mailto:koot@ntelecom.co.za"><span
                  style="font-family:"Arial
                  Narrow","sans-serif"" lang="EN-ZA">koot@ntelecom.co.za</span></a></span><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US"><o:p></o:p></span></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-US">Website: </span><span
              style="color:#1F497D;mso-fareast-language:AF"><a
                moz-do-not-send="true" href="http://www.ntelecom.co.za/"><span
                  style="font-family:"Arial
                  Narrow","sans-serif"" lang="EN-US">www.ntelecom.co.za</span></a></span><span
              style="color:#1F497D;mso-fareast-language:AF"><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"><img
                id="_x0000_i1028"
                src="cid:part3.F2C3BDA5.6879BEB9@sipwise.com"
                alt="Description: Description: Description: Description:
                Description: Description: Description: Description:
                cid:image003.png@01CFA5C0.7BBDE4A0" height="185"
                border="0" width="129"></span><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA"><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA"><o:p> </o:p></span></p>
          <p class="MsoNormal"><a moz-do-not-send="true"
              href="https://twitter.com/ntel_koot"><span
                style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF;text-decoration:none"><img
                  id="_x0000_i1027"
                  src="cid:part4.BCF13202.C6E87632@sipwise.com"
                  alt="Description: Description: images (1)" height="44"
                  border="0" width="153"></span></a><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA"><o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">Confidentiality Notice: <o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">This e-mail may contain confidential
              information and is intended only for the use of the
              recipient named above. <o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">Should you receive this e-mail in error,
              please forward it to </span><span
              style="color:#1F497D;mso-fareast-language:AF"><a
                moz-do-not-send="true" href="mailto:koot@ntelecom.co.za"><span
                  style="font-family:"Arial
                  Narrow","sans-serif"" lang="EN-ZA">koot@ntelecom.co.za</span></a></span><span
              style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">  and delete from your in-box. <o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">Any disclosure, copying, distribution or
              action on the contents of this e-mail is strictly
              prohibited. <o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-family:"Arial
Narrow","sans-serif";color:#404040;mso-fareast-language:AF"
              lang="EN-ZA">Please consider the environment before
              printing this email and/or any related attachments.<o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:AF"
                  lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:AF"
                lang="EN-US"> Irina Peshinskaya
                [<a class="moz-txt-link-freetext" href="mailto:ipeshinskaya@sipwise.com">mailto:ipeshinskaya@sipwise.com</a>] <br>
                <b>Sent:</b> 12 October 2017 11:13 AM<br>
                <b>To:</b> Koot Pienaar; <a class="moz-txt-link-abbreviated" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
                <b>Subject:</b> Re: [Spce-user] Unable to creat large
                invoices<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Dear Koot,<br>
          <br>
          Could you please remind me your ngcp-panel version? <br>
          All concatenations I see in the Invoice.pm are too far from
          line 169.<br>
          <br>
          Thanks in advance.<br>
          <br>
          Best regards,<br>
          Irina Peshinskaya<o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 12.10.2017 11:36, Koot Pienaar wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal">Hi Team<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">I get the following error in panel.log
            when generating invoices with large amounts of calls. <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">Oct 12 10:28:20 ntel-sipsw1 ngcp-panel:
            ERROR: IP=2.1.1.86 CALLED=Controller::Invoice::__ANON__
            TX=14ECC54ADC9EF410 USER=administrator DATA={ 'template.id'
            => '2', 'period' => '2017-09', 'submitid' => '',
            'contract.id' => '15', 'save' => 'Save'} MSG="Failed
            to save invoice meta data.
            (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception:
            DBD::mysql::st execute failed: MySQL server has gone away
            [for Statement "INSERT INTO `billing`.`invoices` (
            `amount_net`, `amount_total`, `amount_vat`, `contract_id`,
            `data`, `period_end`, `period_start`, `serial`) VALUES ( ?,
            ?, ?, ?, ?, ?, ?, ? )" with ParamValues: 0=5923.9,
            1=6753.25, 2=829.346, 3="15", 4=undef, 5='2017-09-30
            23:59:59', 6='2017-09-01 00:00:00', 7='tmp150779690053912']
            at /usr/share/perl5/NGCP/Panel/Controller/Invoice.pm line
            290#012)" LOG=""<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">Oct 12 10:28:20 ntel-sipsw1 ngcp-panel:
            ERROR: IP=2.1.1.86 CALLED=Controller::Invoice::create
            TX=14ECC54AE303C380 USER=administrator DATA={ 'submitid'
            => '', 'contract.id' => '15', 'save' => 'Save',
            'template.id' => '2', 'period' => '2017-09'}
            MSG="Failed to create invoice. ({UNKNOWN}: Use of
            uninitialized value $contract_id in concatenation (.) or
            string at /usr/share/perl5/NGCP/Panel/Controller/Invoice.pm
            line 169. at /usr/share/perl5/Catalyst/Model/DBIC/Schema.pm
            line 526#012)" LOG=""<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">I do not see any logs in Mysql.log or
            mysql.err <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">Koot Pienaar</span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">VoIP Coordinator</span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">Ntelecom Central</span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">Tel: 051 412 6300</span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US"> </span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">Email: </span><span
              style="mso-fareast-language:AF"><a moz-do-not-send="true"
                href="mailto:koot@ntelecom.co.za"><span lang="EN-ZA">koot@ntelecom.co.za</span></a></span><o:p></o:p></p>
          <p class="MsoNormalCxSpMiddle"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto"><span
              lang="EN-US">Website: </span><span
              style="mso-fareast-language:AF"><a moz-do-not-send="true"
                href="http://www.ntelecom.co.za/"><span lang="EN-US">www.ntelecom.co.za</span></a></span><o:p></o:p></p>
          <p class="MsoNormal"><img id="Picture_x0020_1"
              src="cid:part3.F2C3BDA5.6879BEB9@sipwise.com"
              alt="Description: Description: Description: Description:

              Description: Description: Description: Description:

              cid:image003.png@01CFA5C0.7BBDE4A0" height="185"
              border="0" width="129"><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA"> </span><o:p></o:p></p>
          <p class="MsoNormal"><a moz-do-not-send="true"
              href="https://twitter.com/ntel_koot"><span
                style="text-decoration:none"><img id="Picture_x0020_2"
                  src="cid:part10.12138D80.71F2D261@sipwise.com"
                  alt="Description: Description: images (1)" height="44"
                  border="0" width="153"></span></a><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA">Confidentiality
              Notice: </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA">This e-mail may
              contain confidential information and is intended only for
              the use of the recipient named above. </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA">Should you receive
              this e-mail in error, please forward it to </span><span
              style="mso-fareast-language:AF"><a moz-do-not-send="true"
                href="mailto:koot@ntelecom.co.za"><span lang="EN-ZA">koot@ntelecom.co.za</span></a></span><span
              lang="EN-ZA">  and delete from your in-box. </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA">Any disclosure,
              copying, distribution or action on the contents of this
              e-mail is strictly prohibited. </span><o:p></o:p></p>
          <p class="MsoNormal"><span lang="EN-ZA">Please consider the
              environment before printing this email and/or any related
              attachments.</span><o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman","serif";mso-fareast-language:AF"><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>Spce-user mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:AF"><o:p> </o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>