Closed flynettech closed 1 year ago
Hi I have not done much work on the plugin this past year so its possible the new uisp update is new features. Try to run the rebuild utility in settings and see if it repopulates the users.
Regards,
I have already tried many times, I also reset the uisp server. but nothing does not repopulate the data.
Is it possible to copy and paste one of the failed api request logs from uisp.
where do i find them?
I don't know where to find the log file for the api. what I see is that it doesn't load the data, and it doesn't repopulate it. but in the mikrotik logs you see the access
it doesn't even insert, plus the billing packages in the mikrotik
In crm > settings > webhooks > request logs. There will probably be some requests related to the plugin - just copy and paste one these thanks
Fatal error: Uncaught TypeError: Argument 1 passed to MikrotikQueueSync\Synchronizer::formatSpeedForMikrotik() must be of the type float, null given, called in /data/ucrm/data/plugins/mkt-queue-sync/classes/Synchronizer.php on line 227 and defined in /data/ucrm/data/plugins/mkt-queue-sync/classes/Synchronizer.php:336
Stack trace:
thrown in /data/ucrm/data/plugins/mkt-queue-sync/classes/Synchronizer.php on line 336
Ok this error is for a different plugin. You might need to look for output for the ros-plugin.
{"status":"failed","error":true,"message":"invalid value for upload-max-limit, an integer required","duration":0,"data":[]}
{ "uuid": "06694ffb-f4fd-42a4-92d2-83a59201dc5c", "changeType": "edit", "entity": "service", "entityId": 101, "eventName": "service.edit", "extraData": { "entity": { "id": 101, "prepaid": false, "clientId": 83, "status": 1, "name": "FLY-MAX", "fullAddress": "P.Te Feccia, Chiusdino, SI, Italia", "street1": null, "street2": "P.Te Feccia", "city": "Toscana", "countryId": 126, "stateId": null, "zipCode": "53012", "note": null, "addressGpsLat": 43.1775866, "addressGpsLon": 11.1049512, "servicePlanId": 4, "servicePlanPeriodId": 19, "price": 17.5, "hasIndividualPrice": true, "totalPrice": 21.35, "currencyCode": "EUR", "invoiceLabel": null, "contractId": null, "contractLengthType": 1, "minimumContractLengthMonths": null, "activeFrom": "2022-01-15T00:00:00+0100", "activeTo": null, "contractEndDate": null, "discountType": 0, "discountValue": null, "discountInvoiceLabel": "Sconto", "discountFrom": null, "discountTo": null, "tax1Id": null, "tax2Id": null, "tax3Id": null, "invoicingStart": "2022-02-19T00:00:00+0100", "invoicingPeriodType": 2, "invoicingPeriodStartDay": 19, "nextInvoicingDayAdjustment": 2, "invoicingProratedSeparately": true, "invoicingSeparately": false, "sendEmailsAutomatically": null, "useCreditAutomatically": true, "servicePlanName": "FLY-MAX", "servicePlanPrice": 17, "servicePlanPeriod": 1, "servicePlanType": "Internet", "downloadSpeed": null, "uploadSpeed": null, "hasOutage": false, "fccBlockId": null, "lastInvoicedDate": "2023-01-18T00:00:00+0100", "unmsClientSiteId": "2a048b47-6124-48cd-8865-309d08482da4", "attributes": [ { "id": "606baf28-a036-4db8-b478-4ca97243456b", "serviceId": 101, "customAttributeId": 1, "name": "PPPoE Password", "key": "pppoePassword", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "54ce4664-4e0c-4ea2-8cda-00b6feb97210", "serviceId": 101, "customAttributeId": 2, "name": "PPPoE Username", "key": "pppoeUsername", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "3071351a-7a55-47ac-9e12-671a9e5a96d3", "serviceId": 101, "customAttributeId": 14, "name": "Hotspot", "key": "hotspot", "value": "0", "clientZoneVisible": false }, { "id": "58415908-35df-46ee-a992-db64b6cffb39", "serviceId": 101, "customAttributeId": 18, "name": "Device Name", "key": "deviceName", "value": "ITALYRouterOSPCC", "clientZoneVisible": false } ], "addressData": null, "suspensionReasonId": null, "serviceChangeRequestId": null, "setupFeePrice": null, "earlyTerminationFeePrice": null, "downloadSpeedOverride": null, "uploadSpeedOverride": null, "trafficShapingOverrideEnd": null, "trafficShapingOverrideEnabled": false, "servicePlanGroupId": null }, "entityBeforeEdit": { "id": 101, "prepaid": false, "clientId": 83, "status": 1, "name": "FLY-MAX", "fullAddress": "P.Te Feccia, Chiusdino, SI, Italia", "street1": null, "street2": "P.Te Feccia", "city": "Toscana", "countryId": 126, "stateId": null, "zipCode": "53012", "note": null, "addressGpsLat": 43.1775866, "addressGpsLon": 11.1049512, "servicePlanId": 4, "servicePlanPeriodId": 19, "price": 17.5, "hasIndividualPrice": true, "totalPrice": 21.35, "currencyCode": "EUR", "invoiceLabel": null, "contractId": null, "contractLengthType": 1, "minimumContractLengthMonths": null, "activeFrom": "2022-01-15T00:00:00+0100", "activeTo": null, "contractEndDate": null, "discountType": 0, "discountValue": null, "discountInvoiceLabel": "Sconto", "discountFrom": null, "discountTo": null, "tax1Id": null, "tax2Id": null, "tax3Id": null, "invoicingStart": "2022-02-19T00:00:00+0100", "invoicingPeriodType": 2, "invoicingPeriodStartDay": 19, "nextInvoicingDayAdjustment": 2, "invoicingProratedSeparately": true, "invoicingSeparately": false, "sendEmailsAutomatically": null, "useCreditAutomatically": true, "servicePlanName": "FLY-MAX", "servicePlanPrice": 17, "servicePlanPeriod": 1, "servicePlanType": "Internet", "downloadSpeed": null, "uploadSpeed": null, "hasOutage": false, "fccBlockId": null, "lastInvoicedDate": "2023-01-18T00:00:00+0100", "unmsClientSiteId": "2a048b47-6124-48cd-8865-309d08482da4", "attributes": [ { "id": "606baf28-a036-4db8-b478-4ca97243456b", "serviceId": 101, "customAttributeId": 1, "name": "PPPoE Password", "key": "pppoePassword", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "54ce4664-4e0c-4ea2-8cda-00b6feb97210", "serviceId": 101, "customAttributeId": 2, "name": "PPPoE Username", "key": "pppoeUsername", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "3071351a-7a55-47ac-9e12-671a9e5a96d3", "serviceId": 101, "customAttributeId": 14, "name": "Hotspot", "key": "hotspot", "value": "0", "clientZoneVisible": false }, { "id": "58415908-35df-46ee-a992-db64b6cffb39", "serviceId": 101, "customAttributeId": 18, "name": "Device Name", "key": "deviceName", "value": "ITALYRouterOSPCC", "clientZoneVisible": false } ], "addressData": null, "suspensionReasonId": null, "serviceChangeRequestId": null, "setupFeePrice": null, "earlyTerminationFeePrice": null, "downloadSpeedOverride": null, "uploadSpeedOverride": null, "trafficShapingOverrideEnd": null, "trafficShapingOverrideEnabled": false, "servicePlanGroupId": null } } }
Thanks for the log. The plugin response is "invalid value for upload-max-limit, an integer required".
Please verify that the service plan limits do not have fractions e.g. 1.2Mbps.
in the speed of the services I have not set any value
Ok I think that's the problem the service plan has no limit - try to put a limit and see if it works.
i just tried, but nothing does not repopulate the data. it doesn't even enter service plans in mikrotik
Ok Please check the logs again to see if there is a new error
{"status":"failed","error":true,"message":"invalid value for argument remote-address","duration":0,"data":[]}
Ok the error means its not able to assign an ip address. Are you able to paste the request object like before so we can see what was sent
{ "uuid": "6b5b1f8e-f2ad-4bd5-8481-706e8540bdff", "changeType": "edit", "entity": "service", "entityId": 101, "eventName": "service.edit", "extraData": { "entity": { "id": 101, "prepaid": false, "clientId": 83, "status": 1, "name": "FLY-MAX", "fullAddress": "P.Te Feccia, Chiusdino, SI, Italia", "street1": null, "street2": "P.Te Feccia", "city": "Toscana", "countryId": 126, "stateId": null, "zipCode": "53012", "note": null, "addressGpsLat": 43.1775866, "addressGpsLon": 11.1049512, "servicePlanId": 4, "servicePlanPeriodId": 19, "price": 17.5, "hasIndividualPrice": true, "totalPrice": 21.35, "currencyCode": "EUR", "invoiceLabel": null, "contractId": null, "contractLengthType": 1, "minimumContractLengthMonths": null, "activeFrom": "2022-01-15T00:00:00+0100", "activeTo": null, "contractEndDate": null, "discountType": 0, "discountValue": null, "discountInvoiceLabel": "Sconto", "discountFrom": null, "discountTo": null, "tax1Id": null, "tax2Id": null, "tax3Id": null, "invoicingStart": "2022-02-19T00:00:00+0100", "invoicingPeriodType": 2, "invoicingPeriodStartDay": 19, "nextInvoicingDayAdjustment": 2, "invoicingProratedSeparately": true, "invoicingSeparately": false, "sendEmailsAutomatically": null, "useCreditAutomatically": true, "servicePlanName": "FLY-MAX", "servicePlanPrice": 17, "servicePlanPeriod": 1, "servicePlanType": "Internet", "downloadSpeed": 100, "uploadSpeed": 20, "hasOutage": false, "fccBlockId": null, "lastInvoicedDate": "2023-01-18T00:00:00+0100", "unmsClientSiteId": "2a048b47-6124-48cd-8865-309d08482da4", "attributes": [ { "id": "606baf28-a036-4db8-b478-4ca97243456b", "serviceId": 101, "customAttributeId": 1, "name": "PPPoE Password", "key": "pppoePassword", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "54ce4664-4e0c-4ea2-8cda-00b6feb97210", "serviceId": 101, "customAttributeId": 2, "name": "PPPoE Username", "key": "pppoeUsername", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "3071351a-7a55-47ac-9e12-671a9e5a96d3", "serviceId": 101, "customAttributeId": 14, "name": "Hotspot", "key": "hotspot", "value": "0", "clientZoneVisible": false }, { "id": "58415908-35df-46ee-a992-db64b6cffb39", "serviceId": 101, "customAttributeId": 18, "name": "Device Name", "key": "deviceName", "value": "ITALYRouterOSPCC", "clientZoneVisible": false } ], "addressData": null, "suspensionReasonId": null, "serviceChangeRequestId": null, "setupFeePrice": null, "earlyTerminationFeePrice": null, "downloadSpeedOverride": null, "uploadSpeedOverride": null, "trafficShapingOverrideEnd": null, "trafficShapingOverrideEnabled": false, "servicePlanGroupId": null }, "entityBeforeEdit": { "id": 101, "prepaid": false, "clientId": 83, "status": 1, "name": "FLY-MAX", "fullAddress": "P.Te Feccia, Chiusdino, SI, Italia", "street1": null, "street2": "P.Te Feccia", "city": "Toscana", "countryId": 126, "stateId": null, "zipCode": "53012", "note": null, "addressGpsLat": 43.1775866, "addressGpsLon": 11.1049512, "servicePlanId": 4, "servicePlanPeriodId": 19, "price": 17.5, "hasIndividualPrice": true, "totalPrice": 21.35, "currencyCode": "EUR", "invoiceLabel": null, "contractId": null, "contractLengthType": 1, "minimumContractLengthMonths": null, "activeFrom": "2022-01-15T00:00:00+0100", "activeTo": null, "contractEndDate": null, "discountType": 0, "discountValue": null, "discountInvoiceLabel": "Sconto", "discountFrom": null, "discountTo": null, "tax1Id": null, "tax2Id": null, "tax3Id": null, "invoicingStart": "2022-02-19T00:00:00+0100", "invoicingPeriodType": 2, "invoicingPeriodStartDay": 19, "nextInvoicingDayAdjustment": 2, "invoicingProratedSeparately": true, "invoicingSeparately": false, "sendEmailsAutomatically": null, "useCreditAutomatically": true, "servicePlanName": "FLY-MAX", "servicePlanPrice": 17, "servicePlanPeriod": 1, "servicePlanType": "Internet", "downloadSpeed": 100, "uploadSpeed": 20, "hasOutage": false, "fccBlockId": null, "lastInvoicedDate": "2023-01-18T00:00:00+0100", "unmsClientSiteId": "2a048b47-6124-48cd-8865-309d08482da4", "attributes": [ { "id": "606baf28-a036-4db8-b478-4ca97243456b", "serviceId": 101, "customAttributeId": 1, "name": "PPPoE Password", "key": "pppoePassword", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "54ce4664-4e0c-4ea2-8cda-00b6feb97210", "serviceId": 101, "customAttributeId": 2, "name": "PPPoE Username", "key": "pppoeUsername", "value": "libi_daniele", "clientZoneVisible": false }, { "id": "3071351a-7a55-47ac-9e12-671a9e5a96d3", "serviceId": 101, "customAttributeId": 14, "name": "Hotspot", "key": "hotspot", "value": "0", "clientZoneVisible": false }, { "id": "58415908-35df-46ee-a992-db64b6cffb39", "serviceId": 101, "customAttributeId": 18, "name": "Device Name", "key": "deviceName", "value": "ITALYRouterOSPCC", "clientZoneVisible": false } ], "addressData": null, "suspensionReasonId": null, "serviceChangeRequestId": null, "setupFeePrice": null, "earlyTerminationFeePrice": null, "downloadSpeedOverride": null, "uploadSpeedOverride": null, "trafficShapingOverrideEnd": null, "trafficShapingOverrideEnabled": false, "servicePlanGroupId": null } } }
if you give me an email, I create an account and enter the server
Ok this account has a public email address please use that
ok i have invite to crm on email
ok
Which account number can I use for testing
Client ID
at your choice or 1126
you are great, it worked
Ok two problems, the service plans need to have a limit otherwise the mikrotik rejects the request and you need to specify the device name. This is because the plugin supports setup with multiple routers. I have created a drop down for the device name, i think the instructions are in the readme if you need to add more devices.
ok i tried on another user, with id 83 but nothing happens in mikrotik
Ok I think there is a bug with the profile creation. Can you check if the relevant profile has been created in ppp > profile on the mikrotik
I had created it by hand in ppp-profile, here it exists. try to delete it?
try to delete it and lets see if the plugin will create it
ok deleted
it does not create it
ok noted let me check the code and see. Will get back to you.
Thanks so much
Following this trail by far the best support
On Thu, 12 Jan 2023 at 18:46, flynettech @.***> wrote:
Thanks so much
— Reply to this email directly, view it on GitHub https://github.com/MadaMzandu/uisp-ros-plugin/issues/33#issuecomment-1380589467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGHHQ4CE4KXBIGIN7QYPO3WSARMBANCNFSM6AAAAAATZILCZA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
yes I hope it is solved with the plugin
Hi Are you able to share access again so we can test. Thanks
yes ga I sent you the email, sorry, I made a mistake with a customer, and uploaded a backup. You have already received another email
ok great
Can I use the same client id for testing?
yes
or you choose
ok thanks
{"status":"ok","error":false,"message":"account for xxxx was successfully added","duration":0,"data":[]}
Please check the mikrotik for account should be with disabled profile as the account is suspended.
yes add and disable it
{"status":"failed","error":true,"message":"failure: secret with the same name already exists","duration":0,"data":[]}
Will add a test router so that I can see the mikrotik end.
hello, after many attempts, but the plugin no longer works. it happened after the last uisp update