[Spce-user] Error rating CDR batch - after upgrade

Skyler skchopperguy at gmail.com
Wed Apr 25 05:11:38 EDT 2012


Hi,

 After upgrade from 2.4 - 2.5 rate-o-mat will not start. I have checked
contracts and I have 2 + default, all with .* destination right now.

root at prod1:/etc/init.d# /etc/init.d/ngcp-rate-o-mat start
root at prod1:/etc/init.d# Error rating CDR batch: Can't use string ("60") as
a SCALAR ref while "strict refs" in use at /usr/sbin/rate-o-mat line 908.


root at prod1:/etc/init.d# tail -f /var/log/ngcp/rate-o-mat.log
Apr 25 02:00:28 prod1-p1 rate-o-mat[4474]: Up and running.
Apr 25 02:00:28 prod1-p1 rate-o-mat[4474]: rate cdr #4
Apr 25 02:00:28 prod1-p1 rate-o-mat[4474]: Error rating CDR batch: Can't
use string ("60") as a SCALAR ref while "strict refs" in use at
/usr/sbin/rate-o-mat line 908.
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Trying to connect to billing
db...
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Successfully connected to
billing db...
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Trying to connect to accounting
db...
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Successfully connected to
accounting db...
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Up and running.
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: rate cdr #4
Apr 25 02:06:03 prod1-p1 rate-o-mat[6155]: Error rating CDR batch: Can't
use string ("60") as a SCALAR ref while "strict refs" in use at
/usr/sbin/rate-o-mat line 908.


mysql> select * from billing.billing_mappings;
+----+---------------------+----------+--------------------+-------------+------------+
| id | start_date          | end_date | billing_profile_id | contract_id |
product_id |
+----+---------------------+----------+--------------------+-------------+------------+
|  1 | NULL                | NULL     |               NULL |           1 |
         3 |
|  2 | NULL                | NULL     |                  1 |           2 |
         2 |
|  3 | NULL                | NULL     |                  2 |           3 |
      NULL |
|  4 | 2012-04-16 10:27:22 | NULL     |                  2 |           2 |
         2 |
|  6 | 2012-04-25 01:44:45 | NULL     |                  1 |           2 |
         2 |
|  8 | 2012-04-25 01:51:28 | NULL     |                  2 |           2 |
         2 |
|  9 | NULL                | NULL     |                  1 |           5 |
         2 |
+----+---------------------+----------+--------------------+-------------+------------+
7 rows in set (0.00 sec)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20120425/a7295ff8/attachment.html>


More information about the Spce-user mailing list