What happened?
It happened that I tried to run DAB while another DAB instance was running already, and of course the second instance reported an exception as port 5000 was already in use. With DAB version 0.8 the exception and the error message is clear, while with the latest 0.9.5-rc the exception is not shown and a generic error Error: Failed to start the engine. is reported, which is not helpful to understand what is the problem.
DAB was configurated to run in development mode, so detailed information on exception are expected.
Version
Microsoft.DataApiBuilder 0.9.5-rc+73a02dcd3b85a73ac36a5675432a45b7a3cc4a7d
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
No response
Relevant log output
Information: Microsoft.DataApiBuilder 0.9.5-rc+73a02dcd3b85a73ac36a5675432a45b7a3cc4a7d
Information: User provided config file: .\swa-db-connections\staticwebapp.database.config.json
Loading config file from .\swa-db-connections\staticwebapp.database.config.json.
Information: Loaded config file: .\swa-db-connections\staticwebapp.database.config.json
Information: Setting default minimum LogLevel: Debug for Development mode.
Starting the runtime engine...
Loading config file from .\swa-db-connections\staticwebapp.database.config.json.
info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[63]
User profile is available. Using 'C:\Users\damauri\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
info: Azure.DataApiBuilder.Core.Services.ISqlMetadataProvider[0]
[FindRelatedSessions] REST path: /rest/FindRelatedSessions
info: Azure.DataApiBuilder.Core.Services.ISqlMetadataProvider[0]
[GetSessionsCountAggregate] REST path: /rest/GetSessionsCountAggregate
dbug: Azure.DataApiBuilder.Core.Resolvers.IQueryExecutor[0]
Executing query: SELECT name as result_field_name, TYPE_NAME(system_type_id) as result_type, is_nullable FROM sys.dm_exec_describe_first_result_set_for_object (OBJECT_ID('dbo.stp_FindRelatedSessions'), 0) WHERE is_hidden is not NULL AND is_hidden = 0
dbug: Azure.DataApiBuilder.Core.Resolvers.IQueryExecutor[0]
Executing query: SELECT name as result_field_name, TYPE_NAME(system_type_id) as result_type, is_nullable FROM sys.dm_exec_describe_first_result_set_for_object (OBJECT_ID('dbo.stp_GetSessionsCountAggregate'), 0) WHERE is_hidden is not NULL AND is_hidden = 0
dbug: Azure.DataApiBuilder.Core.Services.ISqlMetadataProvider[0]
Logging primary key information for entity: FindRelatedSessions.
dbug: Azure.DataApiBuilder.Core.Services.ISqlMetadataProvider[0]
Logging primary key information for entity: GetSessionsCountAggregate.
info: Azure.DataApiBuilder.Core.Configurations.RuntimeConfigValidator[0]
Validating entity relationships.
info: Azure.DataApiBuilder.Service.Startup[0]
Successfully completed runtime initialization.
Unable to launch the runtime due to an error.
Error: Failed to start the engine.
Code of Conduct
What happened?
It happened that I tried to run DAB while another DAB instance was running already, and of course the second instance reported an exception as port 5000 was already in use. With DAB version 0.8 the exception and the error message is clear, while with the latest 0.9.5-rc the exception is not shown and a generic error
Error: Failed to start the engine.is reported, which is not helpful to understand what is the problem.DAB was configurated to run in
developmentmode, so detailed information on exception are expected.Version
Microsoft.DataApiBuilder 0.9.5-rc+73a02dcd3b85a73ac36a5675432a45b7a3cc4a7d
What database are you using?
Azure SQL
What hosting model are you using?
Local (including CLI)
Which API approach are you accessing DAB through?
No response
Relevant log output
Code of Conduct