Latest FlexiManage UI can't create organization/Devices are not registring

169 views
Skip to first unread message

Mahmoud Magdy

unread,
Dec 16, 2023, 1:27:44 PM12/16/23
to flexiWAN users
In the latest Fleximanage version, when trying to create organization for an account we get error 

{
    "error""Cannot read properties of undefined (reading 'rules')",
    "code"500,
    "data": {}
}

This error with the current version not the previous one, any hints ?!

Note: Devices are registered in the DB and not displayed in the Rest API via Calls, Access tokens get in API works but not Tokens...

Mahmoud Magdy

unread,
Dec 16, 2023, 4:10:44 PM12/16/23
to flexiWAN users, Mahmoud Magdy
sorry i mean fleximanage backend not UI

flexiWAN users

unread,
Dec 18, 2023, 1:22:06 PM12/18/23
to flexiWAN users, mahmo...@gmail.com
Hi Mahmoud, 

Which server are you running the API to.
Please contact our support providing your account details so we can check the issue.

Best regards

Mahmoud Magdy

unread,
Dec 19, 2023, 5:27:31 AM12/19/23
to flexiWAN users, flexiWAN users, mahmo...@gmail.com

Hi Sorry for the confusion, we are running self hosted Fleximanage, using latest edition, shall I check with support ?!

Mahmoud Magdy

unread,
Dec 20, 2023, 4:06:43 AM12/20/23
to flexiWAN users, Mahmoud Magdy, flexiWAN users
So here are my notes:
1- if devices upgrade to latest version while backend is not, backend refuses to update device status because of new VRRP feature, there should be a backword compatability for a period here.
2- If you upgrade to latest backend version or implement new one, new notification settings are not created, hence it gives error because creating new organization checks for New Notification Settings which doesn't exist after upgrade or new organization this stops creating new orgs and retriving devices.

Mahmoud Magdy

unread,
Dec 20, 2023, 4:14:54 AM12/20/23
to flexiWAN users, Mahmoud Magdy, flexiWAN users
Adding,
the issue in this specific part of code
if (!account || response.length === 0) {
      response = await notificationsConf.find({ name: 'Default notifications settings' },
        { rules: 1, _id: 0 }).lean();
      const sortedRules = Object.fromEntries(
        Object.entries(response[0].rules).sort(([keyA], [keyB]) => keyA.localeCompare(keyB))
      );
      return sortedRules;
    }

Reply all
Reply to author
Forward
0 new messages