megamsys / vertice

Omni scheduler/core engine for Megam Vertice
https://www.megam.io
Apache License 2.0
12 stars 22 forks source link

metrics billable items event errors #416

Closed vijaykanthm28 closed 7 years ago

vijaykanthm28 commented 7 years ago

When the x509 key for the whmcs server (https://ddos-hosting.com) isn't signed by a known authority we get a message

x509: certificate signed by unknown authority

Failed to process watch event: result=error;message=Authentication Failed;"

In our case https://ddos-hosting.com doesn't have a key signed by a known authority.

Mar 08 16:27:17 clou4 virtengine[997]: time="2017-03-08T16:27:17+02:00" level=debug msg="[Body] ({"id":"BAL8849234619947321537","account_id":"testadmin@astimp.ro","credit":"1999.243972","json_claz":"Megam::Balances","created_at":"2017-03-08T16:27:17.853956654+02:00","updated_at":"2017-03-08T16:27:17.853956691+02:00"})" Mar 08 16:27:17 clou4 virtengine[997]: time="2017-03-08T16:27:17+02:00" level=debug msg="Request [GET] ==> http://188.240.231.85:8999/v2/addons/WHMCS" Mar 08 16:27:17 clou4 virtengine[997]: time="2017-03-08T16:27:17+02:00" level=debug msg="Request WHMCS [POST] ==> https://ddos-hosting.com" Mar 08 16:27:17 clou4 virtengine[997]: --- https://ddos-hosting.com/includes/api.php Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=warning msg="Failed to process watch event: Post https://ddos-hosting.com/includes/api.php?accesskey=team4megam: x509: certificate signed by unknown authority" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=info msg="Event:BILL:transaction" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request [POST] ==> http://188.240.231.85:8999/v2/billedhistories/content" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="[Body] ({"assembly_id":"ASM5480944053170391815","bill_type":"VM","billing_amount":"0.003224","start_date":"2017-03-08T16:17:16+02:00","end_date":"2017-03-08T16:27:16+02:00","currency_type":""})" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=info msg="Event:BILL:deduct" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request [GET] ==> http://188.240.231.85:8999/v2/balances/testadmin@astimp.ro" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request [POST] ==> http://188.240.231.85:8999/v2/balances/bill" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="[Body] ({"id":"BAL8849234619947321537","account_id":"testadmin@astimp.ro","credit":"1999.242360","json_claz":"Megam::Balances","created_at":"2017-03-08T16:27:18.102377442+02:00","updated_at":"2017-03-08T16:27:18.102377492+02:00"})" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request [GET] ==> http://188.240.231.85:8999/v2/addons/WHMCS" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request WHMCS [POST] ==> https://ddos-hosting.com" Mar 08 16:27:18 clou4 virtengine[997]: --- https://ddos-hosting.com/includes/api.php Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=warning msg="Failed to process watch event: Post https://ddos-hosting.com/includes/api.php?accesskey=team4megam: x509: certificate signed by unknown authority" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=info msg="Event:BILL:transaction" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="Request [POST] ==> http://188.240.231.85:8999/v2/billedhistories/content" Mar 08 16:27:18 clou4 virtengine[997]: time="2017-03-08T16:27:18+02:00" level=debug msg="[Body] ({"assembly_id":"ASM5262741834497816292","bill_type":"VM","billing_amount":"0.001612","start_date":"2017-03-08T16:17:16+02:00","end_date":"2017-03-08T16:27:16+02:00","currency_type":""})"

Mar 08 15:30:20 ubuntu virtengine[9917]: time="2017-03-08T15:30:20+01:00" level=debug msg="Request [GET] ==> http://146.0.247.2:9000/v2/balances/klajdi@atomdeploy.com" Mar 08 15:30:20 ubuntu virtengine[9917]: time="2017-03-08T15:30:20+01:00" level=debug msg="Request [POST] ==> http://146.0.247.2:9000/v2/balances/bill" Mar 08 15:30:20 ubuntu virtengine[9917]: time="2017-03-08T15:30:20+01:00" level=debug msg="[Body] ({"id":"BAL7461231309882805257","account_id":"klajdi@atomdeploy.com","credit":"38.993107","json_claz":"Megam::Balances","created_at":"2017-03-08T15:30:20.961829684+01:00","updated_at":"2017-03-08T15:30:20.961829817+01:00"})" Mar 08 15:30:20 ubuntu virtengine[9917]: time="2017-03-08T15:30:20+01:00" level=debug msg="Request [GET] ==> http://146.0.247.2:9000/v2/addons/WHMCS" Mar 08 15:30:20 ubuntu virtengine[9917]: time="2017-03-08T15:30:20+01:00" level=debug msg="Request WHMCS [POST] ==> https://billing.atomdeploy.com/" Mar 08 15:30:20 ubuntu virtengine[9917]: --- https://billing.atomdeploy.com/includes/api.php Mar 08 15:30:21 ubuntu virtengine[9917]: time="2017-03-08T15:30:21+01:00" level=warning msg="Failed to process watch event: result=error;message=Authentication Failed;" Mar 08 15:30:21 ubuntu virtengine[9917]: time="2017-03-08T15:30:21+01:00" level=info msg="Event:BILL:transaction" Mar 08 15:30:21 ubuntu virtengine[9917]: time="2017-03-08T15:30:21+01:00" level=debug msg="Request [POST] ==> http://146.0.247.2:9000/v2/billedhistories/content" Mar 08 15:30:21 ubuntu virtengine[9917]: time="2017-03-08T15:30:21+01:00" level=debug msg="[Body] ({"assembly_id":"ASM9160654914938339465","bill_type":"VM","billing_amount":"0.002279","start_date":"2017-03-08T15:20:15+01:00","end_date":"2017-03-08T15:30:15+01:00","currency_type":""})"

vijaykanthm28 commented 7 years ago

issue fixed