<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (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:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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 \, sans-serif";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
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;}
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;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle26
        {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]--></head><body bgcolor=white lang=AF link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>I am still unable to create invoices that have large size for calculation.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Any assistance would be appreciated, seems to be mysql related<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='color:windowtext'>From:</span></b><span lang=EN-US style='color:windowtext'> Spce-user [mailto:spce-user-bounces@lists.sipwise.com] <b>On Behalf Of </b>Koot Pienaar<br><b>Sent:</b> Wednesday, 18 October 2017 12:56<br><b>To:</b> 'Irina Peshinskaya' <ipeshinskaya@sipwise.com>; Spce-user@lists.sipwise.com<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><span lang=EN-US style='color:#1F497D'>HI<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I followed your guide and increase the size limit to 512M but still get the same error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='color:windowtext'>From:</span></b><span lang=EN-US style='color:windowtext'> Irina Peshinskaya [<a href="mailto:ipeshinskaya@sipwise.com">mailto:ipeshinskaya@sipwise.com</a>] <br><b>Sent:</b> Thursday, 12 October 2017 16:18<br><b>To:</b> Koot Pienaar <<a href="mailto:koot@ntelecom.co.za">koot@ntelecom.co.za</a>>; <a 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><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Hello Koot,<br><br>yes, I see now.<br><br>The root reason could be big "data" size for the invoice, considering "MySQL server has gone away" error.</span><span lang=EN-US><br></span><span lang=EN-US style='font-size:10.0pt'><br>Could you please share output of the:<br></span><span lang=EN-US><br></span><span lang=EN-US style='font-size:10.0pt'>    grep max_allowed_packet /etc/mysql/my.cnf<br><br>Values in my config are:</span><span lang=EN-US style='font-size:12.0pt'><o:p></o:p></span></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>max_allowed_packet                = 128M<br>max_allowed_packet                = 128M</span><span lang=EN-US><o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Do these values look like close to your generated invoices size?</span><span lang=EN-US><br></span><span lang=EN-US style='font-size:10.0pt'>If yes, you can increase config value</span><span lang=EN-US> <o:p></o:p></span></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>www_admin.filesize_limit in your /etc/ngcp-config/config.yml and apply these changes.</span><span lang=EN-US><o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt'>Best regards,</span><span lang=EN-US><br></span><span lang=EN-US style='font-size:10.0pt'>Irina Peshinskaya</span><span lang=EN-US><o:p></o:p></span></p><p><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><p class=MsoNormal><span lang=EN-US>On 12.10.2017 12:43, Koot Pienaar wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>HI Irina</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Current version is 5.3.1</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><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 lang=EN-US style='font-size:10.0pt;font-family:Consolas;color:#333333'>ngcp-panel 5.3.1.2+0~mr5.3.1.2</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>regards </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><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 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 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 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 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 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 lang=EN-US>Email: </span><span lang=EN-US style='color:#1F497D'><a href="mailto:koot@ntelecom.co.za"><span lang=EN-ZA style='font-family:"Arial Narrow \, sans-serif"'>koot@ntelecom.co.za</span></a></span><span 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 lang=EN-US>Website: </span><span lang=EN-US style='color:#1F497D'><a href="http://www.ntelecom.co.za/"><span style='font-family:"Arial Narrow \, sans-serif"'>www.ntelecom.co.za</span></a></span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><img border=0 width=129 height=185 style='width:1.3437in;height:1.927in' id="_x0000_i1025" src="cid:image001.png@01D34D81.4A190530" alt="Description: Description: Description: Description:                 Description: Description: Description: Description:                 cid:image003.png@01CFA5C0.7BBDE4A0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><a href="https://twitter.com/ntel_koot"><span style='text-decoration:none'><img border=0 width=153 height=44 style='width:1.5937in;height:.4583in' id="_x0000_i1026" src="cid:image002.jpg@01D34D81.4A190530" alt="Description: Description: images (1)"></span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Confidentiality Notice: </span><span lang=EN-US><o:p></o:p></span></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><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Should you receive this e-mail in error, please forward it to </span><span lang=EN-US style='color:#1F497D'><a href="mailto:koot@ntelecom.co.za"><span lang=EN-ZA style='font-family:"Arial Narrow \, sans-serif"'>koot@ntelecom.co.za</span></a></span><span lang=EN-ZA>  and delete from your in-box. </span><span lang=EN-US><o:p></o:p></span></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><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Please consider the environment before printing this email and/or any related attachments.</span><span lang=EN-US><o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><span lang=EN-US><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 lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:windowtext'> Irina Peshinskaya [<a 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 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</span><span lang=EN-US><o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US>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></span></p><div><p class=MsoNormal><span lang=EN-US>On 12.10.2017 11:36, Koot Pienaar wrote:<o:p></o:p></span></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hi Team<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I get the following error in panel.log when generating invoices with large amounts of calls. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I do not see any logs in Mysql.log or mysql.err <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span 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 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 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 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 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 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 lang=EN-US>Email: <a href="mailto:koot@ntelecom.co.za"><span lang=EN-ZA>koot@ntelecom.co.za</span></a><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 lang=EN-US>Website: <a href="http://www.ntelecom.co.za/">www.ntelecom.co.za</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><img border=0 width=129 height=185 style='width:1.3437in;height:1.927in' id="Picture_x0020_1" src="cid:image001.png@01D34D81.4A190530" alt="Description: Description: Description: Description:               Description: Description: Description: Description:               cid:image003.png@01CFA5C0.7BBDE4A0"><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><a href="https://twitter.com/ntel_koot"><span style='text-decoration:none'><img border=0 width=153 height=44 style='width:1.5937in;height:.4583in' id="Picture_x0020_2" src="cid:image002.jpg@01D34D81.4A190530" alt="Description: Description: images (1)"></span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Confidentiality Notice: </span><span lang=EN-US><o:p></o:p></span></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><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Should you receive this e-mail in error, please forward it to </span><span lang=EN-US><a 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><span lang=EN-US><o:p></o:p></span></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><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA>Please consider the environment before printing this email and/or any related attachments.</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:12.0pt'><br><br><br></span><span lang=EN-US><o:p></o:p></span></p><pre><span lang=EN-US>_______________________________________________<o:p></o:p></span></pre><pre><span lang=EN-US>Spce-user mailing list<o:p></o:p></span></pre><pre><span lang=EN-US><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><o:p></o:p></span></pre><pre><span lang=EN-US><a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><o:p></o:p></span></pre></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt'> </span><span lang=EN-US><o:p></o:p></span></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>