Device is enrolled in DEP/VPP. Secure Hub is one of two required apps. The other app is installed, Secure Hub is not.
Delete this license from database by using SQL query, replace '0987654321' with referenced License ID string:
delete from AVPP_LICENSE where LICENSE_ID= '0987654321';
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'}
We always recommend to create a database backup prior to making any changes to database directly.