<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div>Hi,<div><br></div><div>I managed to resolve this and hope found root cause - looks like a bug to me.</div><div><br></div><div>Contact I tried to use for this customer for some reason was not linked to reseller(possible somewhere back in time it wasn't mandatory).</div><div>Even more - when I edited existing customer (strange but no err here) and set this contact - customer disappeared!</div><div>Unable to fix this via web - did directly in db. Changed reseller_id field for this contact from NULL to real one. After this old customer showed up again and I able to add the new one. No side effects I see so far.<br><br>One more thing: contact in question not displayed reseller form in edit mode while others does. After fixing db we can choose reseller in edit mode.<br><br>-- <br>Wbr, Serge via mobile<br><br>02.03.2017, 21:16, "Serge S. Yuriev" <<a href="mailto:me@nevian.org">me@nevian.org</a>>:<br><blockquote type="cite"><p>Hello,<br><br>root@msk-vo-s-sbc1:/var/log/ngcp# cat /etc/ngcp_version<br>mr5.1.1<br>root@msk-vo-s-sbc1:/var/log/ngcp# cat /etc/sipwise_ngcp_version<br>System installed. NGCP version mr3.7.2 on <span>2015-03-05 11</span>:16:01<br>System installed. NGCP version mr3.8.1 - upgraded on <span>2015-04-11 13</span>:04:54<br>System installed. NGCP version mr3.8.2 - upgraded on <span>2015-06-17 14</span>:43:54<br>System installed. NGCP version mr4.0.1 - upgraded on <span>2015-08-19 12</span>:34:53<br>System installed. NGCP version mr4.1.1 - upgraded on <span>2015-10-28 19</span>:50:41<br>System installed. NGCP version mr4.2.1 - upgraded on <span>2016-02-01 17</span>:51:38<br>System installed. NGCP version mr4.3.1 - upgraded on <span>2016-04-18 19</span>:49:04<br>System installed. NGCP version mr4.4.1 - upgraded on <span>2016-06-17 18</span>:46:51<br>System installed. NGCP version mr4.5.1 - upgraded on <span>2016-09-06 12</span>:02:41<br>System installed. NGCP version mr4.5.2 - upgraded on <span>2016-10-31 18</span>:18:12<br>System installed. NGCP version mr5.0.1 - upgraded on <span>2016-12-15 15</span>:18:55<br>System installed. NGCP version mr5.1.1 - upgraded on <span>2017-03-02 21</span>:03:24<br><br>With 5.0.1 version error was the same<br><br>Mar 2 21:13:00 msk-vo-s-sbc1 ngcp-panel: ERROR: IP=10.186.45.70 <br>CALLED=Controller::Customer::create TX=14A<span>8233362</span>C1EF10 USER=nevian <br>DATA={ 'invoice_template.id' => '', 'status' => 'active', <br>'subscriber_email_template.id' => '', 'billing_profiles.0.start' => '', <br>'invoice_email_template.id' => '', 'submitid' => '', 'vat_rate' => '18', <br>'profile_package.id' => '', 'external_id' => '', <br>'billing_profiles.0.row.network_id' => '', 'billing_profile_definition' <br>=> 'id', 'passreset_email_template.id' => '', <br>'billing_profiles.0.row.profile_id' => '', 'save' => 'Save', <br>'contact.id' => '2', 'billing_profiles.0.end' => '', <br>'billing_profile.id' => '2'} MSG="Failed to create customer contract <br>({UNKNOWN}: Can't call method "id" on an undefined value at <br>/usr/share/perl5/NGCP/Panel/Utils/ProfilePackages.pm line 538. at <br>/usr/share/perl5/Catalyst/Model/DBIC/Schema.pm line 526#012)" LOG=""<br><br></p><span>-- <br>Serge S. Yuriev<br>Lead VoIP engineer<br></span><p><br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user">https://lists.sipwise.com/listinfo/spce-user</a><br></p></blockquote></div></div></body></html>