Ubuntu goes to "Minimal" after unknown period of time

Hi,
Does it work if you execute $ sudo reboot to reboot the system? We have remote devices and generally reboot the devices with the command. You may give it a try.