Profile Manager does not send APN(?)
Hi
I am managing small Apple infrastructure in company. As server I have setup Mac Mini with MacOS Server to deploy profiles and be able to remotely lock/wipe endpoints (MacBooks). Almost year after setting it up I realise while testing one thing that from the very beginning there is problem with APN. Now I'm stuck with not fully functional server which I can access only remotely because Mac Mini is placed in other company branch. Unfortunately I was in big rush when I was setting it up and wasn't able to test everything and while making tests on test infrastructure everything worked fine. For now endpoints are communicating with server only at first login after startup/reboot and after that in random manner (sometimes in few minutes, sometimes in few hours). From logs I have managed get one important (I guess) line:
[DMDevicemgrd sendPendingPushNotifications]: APNS hasn't been initialized yet, unable to send push notificationsI have tested connection to APNs servers with app "Push Diagnostics" but it shows that there is no problem with connecting to APNs servers, also test push is working fine. When I am turning on logging for APS I get nothing (Resolve issues with Profile Manager in macOS Server - Apple Support). There even isn't created /Library/Logs/apsd.log file. I had renew APNS cert but of course it did not help. I did not renew Code Sigining Cert but it is still valid. I tried to restart Profile Manager (turned it off and on) but this also did not help. I am lack of idea how to fix this problem other way than reinstall server and reconfigure all endpoints but like I wrote earlier server is placed in other company branch so it's not so easy. Maybe someone have any idea how to fix this?