api/v2/devices/<device_id>/backups not working

Unimus support forum
Post Reply
swong
Posts: 9
Joined: Thu Mar 18, 2021 10:21 pm

Thu Sep 29, 2022 5:14 am

Hi there,

I have been using APIv2 to backup all configs from Unimus to my local file system for a while.

It was working well with 2.0.9 until we upgraded to 2.2 on 11-Sep and then the APIv2 not working for me.

I confirmed I can backup al latest config via api/v2/devices/backups/latest but I got page not found due to the device id not found.

-bash-4.2$ curl -s -H 'accept: application/json' -H 'Authorization: Bearer <our_token>' 'https://<our_server>/api/v2/devices/2/backups/latest'
{"timestamp":1664425593923,"code":404,"error":"Not Found","message":"Device with id 2 not found"}

Regards,
Tung
Vik@Unimus
Posts: 158
Joined: Thu Aug 05, 2021 6:35 pm

Thu Sep 29, 2022 2:02 pm

Hello,

Thank you for the report. I can confirm this is a bug. We have already identified the cause and fixed it. The fix will be available in the next release (it will be most likely a beta release for 2.3.0). As soon as that happens, I will update this thread.
swong
Posts: 9
Joined: Thu Mar 18, 2021 10:21 pm

Fri Sep 30, 2022 2:47 am

Thanks for your update!
smallsam
Posts: 5
Joined: Tue Jan 18, 2022 3:17 am

Tue Oct 25, 2022 9:54 am

I just hit this bug, fairly sure it was on the 2.2.3 to 2.2.4 upgrade.

Is a 2.2.3 downgrade or 2.2.5 release an option, I'd rather not take a 2.3 beta to fix this. It seems like it was an unintended regression.
Vik@Unimus
Posts: 158
Joined: Thu Aug 05, 2021 6:35 pm

Tue Oct 25, 2022 12:02 pm

In this case, yes, it is possible to downgrade. When we talk 2.2.4, it is possible to downgrade to whether 2.2.3 or 2.2.2 at most. If you run Unimus on Windows, you could just download an older version of the installer, whether one for 2.2.2 or 2.2.3

https://download.unimus.net/unimus/2.2.2/Installer.exe
https://download.unimus.net/unimus/2.2.3/Installer.exe

and run it. As for Linux, same applies, but with the exception that you would be only replacing Unimus binary

https://download.unimus.net/unimus/2.2.2/Unimus.jar
https://download.unimus.net/unimus/2.2.3/Unimus.jar

in the /opt/unimus folder.

In either case, I would recommend backing up Unimus DB in beforehand, just in case, and stopping Unimus first before doing either of above.
smallsam
Posts: 5
Joined: Tue Jan 18, 2022 3:17 am

Wed Oct 26, 2022 6:01 am

Thanks. We successfully downgraded to 2.2.3.
Post Reply