Q: Can't Enrol Imaged Mac
Hi,
I've setup Profile Manager and have enrolled devices set configuration profiles etc, for the few Macs that we have here at our school. I've made a NetRestore image of one MacBook Air after it was configured the way that we want it. Now when I deploy that image to our second MacBook Air, afterwards, I can't enrol the device in Profile Manager. It comes up with an error in the Profiles preference pane when installing the profile. The error is a whole heap of numbers and letters (different each time) followed by Server error 1. I can enrol the first MacBook as normal but If I un-enrol it, the second Mac will enrol (no error) but will only appear as a placeholder device. If the first MacBook is enrolled and I try to enrol the second, using some accounts but not others it will say that it is already enrolled (It shows 'This Mac' as enrolled) but with the serial number of the first Mac.
It seems that there is some identifier that the Macs have in common after imaging that Profile Manager uses.
This is the log from when the first MacBook isn't enrolled and I enrol the second, getting a placeholder:
1:: [11574] [2015/10/23 13:01:05.475] <10.129.81.54> Time since script start: 46756us [https://osxserver.stpats.local/devicemanagement/api/device/mdm_connect]
1:: [11574] [2015/10/23 13:01:05.475] <10.129.81.54> >>> Processing PUT mdm_connect
0:: [11574] [2015/10/23 13:01:05.484] <10.129.81.54> LabSession_for_incoming_request: LabSession for UserID ACD94F95-20FB-44FE-BDBE-67C25C5A4CE4, UDID 6ceca2dd48355e80befbf348905e3d48: OWNER LS: <User[2272]@>
1:: [11574] [2015/10/23 13:01:05.484] <10.129.81.54> Found target OWNER LS: <User[2272]@>
0:: [11574] [2015/10/23 13:01:05.484] <10.129.81.54> Status="Idle"
0:: [11574] [2015/10/23 13:01:05.491] <10.129.81.54> EXCEPTION: 500 Internal Server Error - ExecuteSQLFunction: attempt to call function 'dm_auto_update_all_profiles_for_mdm_target' without a schema defined. at
#0 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/db .php(227): DieInternalError('ExecuteSQLFunct...')
#1 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/md m_connect.php(88): ExecuteSQLFunction('dm_auto_update_...', Array)
#2 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/db .php(396): _connect_transaction_1(Array)
#3 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/md m_connect.php(128): PerformInTransaction('_connect_transa...', Array)
#4 {main}
1:: [11574] [2015/10/23 13:01:05.491] <10.129.81.54> <<< Sent Final Output (26 bytes) - PUT mdm_connect
0:: [11574] [2015/10/23 13:01:05.491] <10.129.81.54> Completed in 63ms | 500 Internal Server Error [https://osxserver.stpats.local/devicemanagement/api/device/mdm_connect]
This is from the log after enrolling the first Macbook when I try to enrol the second:
1:: [12076] [2015/10/23 13:27:09.812] <10.129.81.54> >>> Processing PUT mdm_checkin
0:: [12076] [2015/10/23 13:27:09.814] <10.129.81.54> checkin: "Authenticate"
0:: [12076] [2015/10/23 13:27:09.851] [FILTERED]
0:: [12076] [2015/10/23 13:27:09.852] [FILTERED]
0:: [12076] [2015/10/23 13:27:09.852] [FILTERED]
1:: [12076] [2015/10/23 13:27:09.853] <10.129.81.54> <<< Sent Final Output (25 bytes) - PUT mdm_checkin
0:: [12076] [2015/10/23 13:27:09.853] <10.129.81.54> Completed in 47ms | 500 Internal Server Error [https://osxserver.stpats.local/devicemanagement/api/device/mdm_checkin]
1:: [11573] [2015/10/23 13:27:09.960] <10.129.81.54> Time since script start: 6008us [https://osxserver.stpats.local/devicemanagement/api/device/mdm_checkin]
1:: [11573] [2015/10/23 13:27:09.960] <10.129.81.54> >>> Processing PUT mdm_checkin
0:: [11573] [2015/10/23 13:27:09.962] <10.129.81.54> checkin: "CheckOut"
0:: [11573] [2015/10/23 13:27:09.967] <10.129.81.54> EXCEPTION: 403 Forbidden - tombstone target not found at
#0 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/md m_checkin.php(142): DieForbidden('tombstone targe...')
#1 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/db .php(396): _checkin_transaction(Array)
#2 /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/php/md m_checkin.php(173): PerformInTransaction('_checkin_transa...', Array)
#3 {main}
1:: [11573] [2015/10/23 13:27:09.968] <10.129.81.54> <<< Sent Final Output (14 bytes) - PUT mdm_checkin
0:: [11573] [2015/10/23 13:27:09.968] <10.129.81.54> Completed in 14ms | 403 Forbidden [https://osxserver.stpats.local/devicemanagement/api/device/mdm_checkin]
Any help would be greatly appreciated. I can't seem to get past this problem.
Posted on Oct 22, 2015 8:59 PM