Device under maintenance. but can not display on the WebUI

Run and post ./validate.php

I’ve had this problem a few weeks ago, my instance of LibreNMS was not up to date.
A vm reboot + update (debian + packages + librenms) --> problem were solved