MDM install storedownloadd crash leads to unusable appdownload files

Originator:michalm.mac
Number:rdar://47880834 Date Originated:7.2.2019
Status:Open Resolved:
Product:macOS + SDK Product Version:10.14.3/18D42
Classification:Serious bug Reproducible:Sometimes
 
Area:
App Store

Summary:
I am testing DEP deployment. Right after MacBook enrolled into MDM. MDM server told the MacBook to install Device Assigned applications obtained through VPP. storedownloadd started downloading the applications but it crashed along the way. This left the user with bunch of . appdownload files in /Applications. When . appdownload is clicked Mac App Store app is opened with account page which is useless since applications in questing are device assigned. 

There is a caching server on our network and from logs I can see MacBook was using caching server to download package installers. Also there was second unathorized caching server on the network when this happend.

Steps to Reproduce:
1. Have a brand new install of 10.14.3 on machine with DEP
2. Go through SetupAssistant and let it enroll the machine into MDM
3. MDM tells the device to install Device Assigned applications.
4. storedownloadd starts downloading packages (possible with use of Caching server)
5. For some reason storedownloadd crashes
6. Incomplete downloades end up as . appdownload placeholders

Expected Results:
macOS automatically tries to download incomplete appdownload OR
user can direct macOS to resume these downlaods (VPP device assigned applicaton) manually.

Actual Results:
There are bunch of .appdownload files and confused user.
After reboot download is not automatically atempted.

First attempt to push those apps via MDM again ended with Mac App Store alert saying it's not possible to install something at this time (Sorry for not having this alert text it was in different language). After reboot I was able to reinitiate download by manually commanding the maching to install VPP apps.

Version/Build:
10.14.3/18D42

Configuration:
MacBook Air 2018
Caching server with advanced configuration (serving two subnets). Another (rogue) caching server on the network.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!