[Spce-user] Can't create customer

Serge Yuriev me at nevian.org
Thu Mar 2 17:41:09 EST 2017


Hi,

I managed to resolve this and hope found root cause - looks like a bug to me.

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).
Even more - when I edited existing customer (strange but no err here) and set this contact - customer disappeared!
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.

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.

-- 
Wbr, Serge via mobile

02.03.2017, 21:16, "Serge S. Yuriev" <me at nevian.org>:
> Hello,
> 
> root at msk-vo-s-sbc1:/var/log/ngcp# cat /etc/ngcp_version
> mr5.1.1
> root at msk-vo-s-sbc1:/var/log/ngcp# cat /etc/sipwise_ngcp_version
> System installed. NGCP version mr3.7.2 on 2015-03-05 11:16:01
> System installed. NGCP version mr3.8.1 - upgraded on 2015-04-11 13:04:54
> System installed. NGCP version mr3.8.2 - upgraded on 2015-06-17 14:43:54
> System installed. NGCP version mr4.0.1 - upgraded on 2015-08-19 12:34:53
> System installed. NGCP version mr4.1.1 - upgraded on 2015-10-28 19:50:41
> System installed. NGCP version mr4.2.1 - upgraded on 2016-02-01 17:51:38
> System installed. NGCP version mr4.3.1 - upgraded on 2016-04-18 19:49:04
> System installed. NGCP version mr4.4.1 - upgraded on 2016-06-17 18:46:51
> System installed. NGCP version mr4.5.1 - upgraded on 2016-09-06 12:02:41
> System installed. NGCP version mr4.5.2 - upgraded on 2016-10-31 18:18:12
> System installed. NGCP version mr5.0.1 - upgraded on 2016-12-15 15:18:55
> System installed. NGCP version mr5.1.1 - upgraded on 2017-03-02 21:03:24
> 
> With 5.0.1 version error was the same
> 
> Mar 2 21:13:00 msk-vo-s-sbc1 ngcp-panel: ERROR: IP=10.186.45.70 
> CALLED=Controller::Customer::create TX=14A8233362C1EF10 USER=nevian 
> DATA={ 'invoice_template.id' => '', 'status' => 'active', 
> 'subscriber_email_template.id' => '', 'billing_profiles.0.start' => '', 
> 'invoice_email_template.id' => '', 'submitid' => '', 'vat_rate' => '18', 
> 'profile_package.id' => '', 'external_id' => '', 
> 'billing_profiles.0.row.network_id' => '', 'billing_profile_definition' 
> => 'id', 'passreset_email_template.id' => '', 
> 'billing_profiles.0.row.profile_id' => '', 'save' => 'Save', 
> 'contact.id' => '2', 'billing_profiles.0.end' => '', 
> 'billing_profile.id' => '2'} MSG="Failed to create customer contract 
> ({UNKNOWN}: Can't call method "id" on an undefined value at 
> /usr/share/perl5/NGCP/Panel/Utils/ProfilePackages.pm line 538. at 
> /usr/share/perl5/Catalyst/Model/DBIC/Schema.pm line 526#012)" LOG=""
> 
> 
> -- 
> Serge S. Yuriev
> Lead VoIP engineer
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20170303/4b37892a/attachment-0001.html>


More information about the Spce-user mailing list