Internal server error on deleting duplicated version package

NR
Nicola Rodella
MADLAB S.R.L.

After uploading a .pcg file with my apk version 2.12.170, I couldn't find it in the list (not understood why it was not visible), so I proceeded to upload the same file, thus causing a duplication of the package.

Subsequently, trying to delete one of the two duplicate packages, the API returns a 500 internal server error and now i'm not to assign neither to delete the packages so it is unusable.

This is the API that returns the error: .../MobiControl/WebConsole/api/packages/9d318a5b-84c6-4909-a883-0902fd7e67cd/versions/2.12.170?buildVersion=64.0

I think that uploading two packages with same version is causing a really bad mess.

2 years ago
SOTI MobiControl
ANSWERS
RS
Rafael Schäfer
2 years ago

I recommend to remove the link to your MDM, even it shouldn't be possible to misuse that without the relevant user etc. everyone can take a look into their API from their own mobicontrol instance to look into and help you.

BTT: How did you upload it (API or Console) and what happens if you proceed in the console instead of API?

I assume you know the package ID (or could get it via API), then you can do following:

  1. Do a server backup before doing following, no guarantee
  2. Goto the server menu in the console
  3. CTRL+Shift+Left_Click on the Site name 
  4. A hidden menu appears, be very carefully here because you could break anything
  5. Choose "package" from the dropdown
  6. Search for the relevant package ID's (ensure they are not used anywhere before)
  7. Delete the issuing package(s)

Quick note: Haven't done it this way ever before, so i don't know if you could break anything or everything using this procedure but i know about this possibility because we had an issue with a plug-in we solved like this way in the past.

NR
Nicola Rodella
2 years ago

I proceeded all with web interface, i was looking at Edge Developer Tools to understand what was going on.

I uploaded with the "New Package" then "Android" and uploading the pcg file. Nothing special was done.

RS
Rafael Schäfer
2 years ago

Ok, just wanted to be sure nothing on API side was maybe done wrong.
Normally, if the version number you define in the package studio for this package, is the same you shouldn't be able to upload it (duplicate) but if you raise it, it should be able to be uploaded and then available as a new version.

But as you already work with packages, i assume you already know this and showed the above possibility to remove packages directly.

NR
Nicola Rodella
2 years ago

I can confirm that tipically Soti prevent to upload the same version twice because it happens sometimes.

But this time although the pcg was uploaded successfully i could not see the new version in the list, so i uploaded the second time and then here we are.

RS
Rafael Schäfer
2 years ago

Ok, independent from my first post/procedure could maybe help you, I would recommend you to reach out to Soti why this was possible to happen (then it's maybe worth to have it in the current state, so don't delete the package now).

I recommend to create a case at Soti then you can take a look into it together with them to ensure also this won't happen again in the future.

NR
Nicola Rodella
2 years ago

I tried to do the shortcut but nothing happens. Am i doing wrong?

Could you please provide me where could i open a ticket to Soti?

RS
Rafael Schäfer
2 years ago
G
GPMOD@SOTI
2 years ago

Hi Nicola

Thanks for posting on SOTI Pulse and thanks Rafael for responding to the post. 

It is quite unusual behavior as MobiControl won't allow the same version of package duplicate. 

I would suggest opening a support case, as this particular issue requires further troubleshooting with logs.  

Log a case

Thank you. 

Kind regards,

Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |