<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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow \, sans-serif";}
@font-face
        {font-family:"Times New Roman \,serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* 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;}
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.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.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;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle27
        {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'>Hi Irina<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'>I do not know how many pages the invoice is, as it never generates. It also does not generate the output in panel-debug.log<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'>I have the following in panel-debug.log<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:22 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:22 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:24 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:24 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::InvoiceTemplate::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:37:26 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Customer::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: DEBUG: catchup contract 15 contract_balances (now = 2017-10-26 11:37:37)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:47 ntel-sipsw1 ngcp-panel: DEBUG: *** Root::auto grant access for authenticated user<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:47 ntel-sipsw1 ngcp-panel: DEBUG: NGCP::Panel::Controller::Invoice::auto<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'>In panel.log I get the following:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: ERROR: IP=192.168.7.2 CALLED=Controller::Invoice::__ANON__ TX=14F1154286488030 USER=administrator DATA={ 'save' => 'Save', 'contract.id' => '15', 'submitid' => '', 'period' => '2017-09', 'template.id' => '2'} 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='tmp150901072587348'] 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-ZA style='color:#1F497D;mso-fareast-language:EN-US'>Oct 26 11:38:45 ntel-sipsw1 ngcp-panel: ERROR: IP=192.168.7.2 CALLED=Controller::Invoice::create TX=14F115428D02C2A0 USER=administrator DATA={ 'period' => '2017-09', 'template.id' => '2', 'contract.id' => '15', 'save' => 'Save', 'submitid' => ''} 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-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'>It seems still that mysql is “going away” for some reason.<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'>Regards <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'><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 [mailto:ipeshinskaya@sipwise.com] <br><b>Sent:</b> Wednesday, 25 October 2017 17:32<br><b>To:</b> Koot Pienaar <koot@ntelecom.co.za>; 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>Dear Koot,<span style='font-size:12.0pt'><o:p></o:p></span></p><p>I just created invoice with 112 pages on the NGCP VM:  5.3.1 pro.<o:p></o:p></p><p>In your /var/log/ngcp/panel-debug.log you can see debug looks like:<o:p></o:p></p><p>           rsvg-convert -a -f pdf -z 0.8 /tmp/Rd13zp00eh/111.svg /tmp/Rd13zp00eh/112.svg<o:p></o:p></p><p>you can find it also using:<o:p></o:p></p><p>           grep -r rsvg-convert /var/log/ngcp/.<o:p></o:p></p><p>This debug is produced before attempt to insert data into DB.<o:p></o:p></p><p>My question is: how many pages are in the invoice that makes panel to fail?<o:p></o:p></p><p>Also, do I understand it correct that you use CE NGCP version? I will try to reproduce it there too.<o:p></o:p></p><p><o:p> </o:p></p><p>Best regards,<o:p></o:p></p><p>Irina peshinskaya<o:p></o:p></p><p><o:p> </o:p></p><div><p class=MsoNormal>On 25.10.2017 12:07, Koot Pienaar wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><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.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'> </span><o:p></o:p></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</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-ZA style='color:#1F497D;mso-fareast-language:EN-US'> </span><o:p></o:p></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 [<a href="mailto:spce-user-bounces@lists.sipwise.com">mailto:spce-user-bounces@lists.sipwise.com</a>] <b>On Behalf Of </b>Koot Pienaar<br><b>Sent:</b> Wednesday, 18 October 2017 12:56<br><b>To:</b> 'Irina Peshinskaya' <a href="mailto:ipeshinskaya@sipwise.com"><ipeshinskaya@sipwise.com></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</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>HI</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></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.</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></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</span><o:p></o:p></p></div></div><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></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> </span><o:p></o:p></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><o:p></o:p></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><o:p></o:p></p><p><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><div><p class=MsoNormal><span lang=EN-US>On 12.10.2017 12:43, Koot Pienaar wrote:</span><o:p></o:p></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><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Current version is 5.3.1</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></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><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>regards </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></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</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 lang=EN-US style='color:#1F497D'><a href="mailto:koot@ntelecom.co.za"><span lang=EN-ZA style='font-family:"Arial Narrow , sans-serif",serif'>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 lang=EN-US style='color:#1F497D'><a href="http://www.ntelecom.co.za/"><span style='font-family:"Arial Narrow , sans-serif",serif'>www.ntelecom.co.za</span></a></span><o:p></o:p></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@01D34E4F.92E23EC0" alt="Description: Description: Description:                   Description:  Description: Description: Description:                   Description:  cid:image003.png@01CFA5C0.7BBDE4A0"></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-ZA> </span><o:p></o:p></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@01D34E4F.92E23EC0" alt="Description: Description: images (1)"></span></a></span><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 lang=EN-US style='color:#1F497D'><a href="mailto:koot@ntelecom.co.za"><span lang=EN-ZA style='font-family:"Arial Narrow , sans-serif",serif'>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></div><p class=MsoNormal><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></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><o:p></o:p></p></div></div><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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</span><o:p></o:p></p><div><p class=MsoNormal><span lang=EN-US>On 12.10.2017 11:36, Koot Pienaar wrote:</span><o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span lang=EN-US>Hi Team</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I get the following error in panel.log when generating invoices with large amounts of calls. </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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=""</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></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=""</span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US>I do not see any logs in Mysql.log or mysql.err </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal><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>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: <a 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: <a href="http://www.ntelecom.co.za/">www.ntelecom.co.za</a></span><o:p></o:p></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@01D34E4F.92E23EC0" alt="Description: Description: Description:                   Description:                     Description: Description: Description: Description:                     cid:image003.png@01CFA5C0.7BBDE4A0"></span><o:p></o:p></p><p class=MsoNormal><span lang=EN-ZA> </span><o:p></o:p></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@01D34E4F.92E23EC0" alt="Description: Description: images (1)"></span></a></span><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 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><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><span lang=EN-US> </span><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:12.0pt'><br><br><br><br></span><o:p></o:p></p><pre><span lang=EN-US>_______________________________________________</span><o:p></o:p></pre><pre><span lang=EN-US>Spce-user mailing list</span><o:p></o:p></pre><pre><span lang=EN-US><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a></span><o:p></o:p></pre><pre><span lang=EN-US><a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a></span><o:p></o:p></pre></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt'> </span><o:p></o:p></p></blockquote><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"Times New Roman ,serif",serif'> </span><o:p></o:p></p></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>