Generally, the License Status of a Server will enter **In Grace** period when the Virtual DataPort Server is unable to connect back to the Solution Manager Server. If the server is running and tries to retrieve the license again, but if there is no response from the License Manager possibly because of a network problem, then it will enter the grace period. The grace period is a period of time in which the server can still work normally, despite not having a valid license. However, the grace period lasts for five days and during this period, if you stop any of the components, then, you will not be able to start it again because a Denodo component will only start if it reaches the License manager.
If the license manager is running and has a valid license available for the server then restarting the components (Virtual DataPort, Data catalog) should resolve the issue.
For more information, you can take a look at the [How Licenses Work](https://community.denodo.com/docs/html/browse/latest/en/solution_manager/administration/license_management/how_licenses_work/how_licenses_work) section of the Solution Manager Administration Guide.
Also, regarding the "bad substitution" error, it seems to be a syntax error that occurs when you execute your Bash script and also might be caused by different reasons. Hence, you could review the script if there is any change made.
Additionally, if you still need help and if you are a user with valid support access then you can create a support case in [Denodo Support Site](https://support.denodo.com/) so that our support team will assist you further.
Hope this helps!