Adminkonto nicht mehr erreichbar wegen 2-Faktor-Authentifizierung

Habe noch diesen Thread gefunden: Not able to execute occ command on Synology - #2 by MichaIng

Dort hatte auch jemand eine „unhandled exception” und die Lösung war, (damals noch mit PHP 5.6) den Befehl mit php56 statt nur php auszuführen.

Finde also heraus, welche PHP Version auf deiner Synology läuft, und passe den Befehl entsprechend an.