Secure Hub not automatically installed on DEP/VPP enrolled iOS

Secure Hub not automatically installed on DEP/VPP enrolled iOS

book

Article ID: CTX226952

calendar_today

Updated On:

Description

Device is enrolled in DEP/VPP. Secure Hub is one of two required apps. The other app is installed, Secure Hub is not.

Resolution

 

Delete this license from database by using SQL query, replace '0987654321' with referenced License ID string: 
delete from AVPP_LICENSE where LICENSE_ID= '0987654321'; 

 


Problem Cause

DEP/VPP license for Secure Hub still associated to device in XMS license database after device being unenrolled.  The Apple License Server is unable to find a license to correctly disassociate, as it has already been removed.

In order to properly validate this as being the issue, set custom logger(s) as described.  
 

Please add each of the custom loggers individually and set all module debug level to "trace".

com.citrix.ios.vpp.wsclient.cron

com.citrix.ios.vpp.wsclient.request

com.citrix.ios.vpp.wsclient.request.VPPRequest  

Initiate a license disassociation from console, and review XMS Debug Log.  An excerpt of attempt is below:

​2017-08-23T10:50:57.141-0400 | 76A253F6AB490FA  | TRACE | http-nio-14443-exec-8 | com.citrix.ios.vpp.wsclient.request.VPPRequest | Sending VPP Request: https://vpp.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageVPPLicensesByAdamIdSrv
 ->{"adamIdStr":"123456789","notifyDissociation":true,"sToken":"eyJvcobOYW1lIjoiTW9vZHkncyBDb3Jwb3JhdAvhbiIsImV4cERhdGUiOiIyMDE3LTA5LTIzVDExOjIyOjQyLTA3MDAiLCJ0b2tlbiI6ImtWSnFVTGE2SWtNYVdTbEViM3dsTi9QUUJwd21vWWt2aHp2aC8zWHlCdXJtVllTbk9aQW5ldkxmcTBMc0ZBSXF6eExGV3lVVHBNNlZEbEtKQ2YxSUhRPT0ifQ==","STDQ":"STDQ","disassociateLicenseIdStrs":["0987654321"]}
2017-08-23T10:50:57.268+0800 | 76A253F6AB490FA  | TRACE | http-nio-14443-exec-12 | com.citrix.ios.vpp.wsclient.request.VPPRequest | {"adamIdStr":"123456789","notifyDissociation":true,"sToken":"eyJvcobOYW1lIjoiTW9vZHkncyBDb3Jwb3JhdAvhbiIsImV4cERhdGUiOiIyMDE3LTA5LTIzVDExOjIyOjQyLTA3MDAiLCJ0b2tlbiI6ImtWSnFVTGE2SWtNYVdTbEViM3dsTi9QUUJwd21vWWt2aHp2aC8zWHlCdXJtVllTbk9aQW5ldkxmcTBMc0ZBSXF6eExGV3lVVHBNNlZEbEtKQ2YxSUhRPT0ifQ==","STDQ":"STDQ","disassociateLicenseIdStrs":["0987654321"]}

2017-08-23T10:50:59.741+0800 | 76A253F6AB490FA  | TRACE | http-nio-14443-exec-12 | com.citrix.ios.vpp.wsclient.request.VPPRequest | {"uId":"121679","disassociations":[{"licenseIdStr":"0987654321","errorMessage":"No license to disassociate.","errorCode":9602,"errorNumber":9602}],"status":-1}

2017-08-23T10:50:59.742+0800 | 76A253F6AB490FA  | ERROR | http-nio-14443-exec-12 | com.citrix.ios.vpp.wsclient.request.VPPRequest | Apple feedback: Unknown error

2017-08-23T10:50:59.746+0800 | 76A253F6AB490FA | ERROR | http-nio-14443-exec-12 | com.citrix.controlpoint.service.impl.AVPPServiceImpl | Error while disassociating VPP license [0987654321] (vppAccountId=8) from VPP account com.citrix.ios.vpp.wsclient.VPPClientException: ErrorCode returned by Apple: {code=-1, reason='Unknown error'}

Additional Information

We always recommend to create a database backup prior to making any changes to database directly.