Description | This article describes how to solve the error 'code: -20001', 'message: Internal error' that occurs while deleting a newly created VDOM for a managed FortiGate in the FortiManager Device database. |
Scope | FortiManager with Workspace mode enabled. |
Solution |
Conditions:
This applies to a specific condition when a new VDOM is created by mistake for a managed FortiGate in FortiManager's device DB using CLI scripts but then while trying to delete that gives an 'Internal error'.
However, if the VDOM configuration was Saved and then deleted, the newly created VDOM will be deleted without any error.
Debug commands to capture the logs:
FMG # diagnose debug reset
Error in the FortiManager debug:
2024-09-02 11:07:04 Request:
Resolution: The following command will fix this issue and delete the unwanted VDOM from the FortiManager's device database.
FMG # diag cdb upgrade check resync-dev-vdoms Checking: Resync and add any missing vdoms from device database to DVM database The above changes will be made to the database, however it is recommended to perform a backup first. Upgrading: Resync and add any missing vdoms from device database to DVM database Database upgrade complete.
Related article: Technical Tip: How to check FortiManager database integrity prior to upgrade |