How many users do you have on the FOG system?
It’s possible PHP ran out of memory trying to process them all. (you can change the php memory value in the FOG Settings)
edit: Might be a similar situation to https://forums.fogproject.org/topic/11713/503-service-unavailable-error/61