Hi,
We encounter intermittent error "Datawindow Error : Http Error! :Service Temporarily unavailable"
After set below powerserver logging setting to true in Logging.JSON file, does it automatically log error details to "Logging/logs/powerserver.log"?
{
// PowerServer log configuration
// see https://docs.microsoft.com/e-us/aspnet/core/fundamentals/logging
"Logging": {
// onfigures whether to enable file server for logging
"EnableFileServer": true,
// Sets the default log output level of all the logging providers
"LogLevel": {
// Sets the default log output level
"Default": "Warning",
// Sets the Microsoft log output level
"Microsoft": "Warning",
// Sets the Microsoft.Hosting.Lifetime log output level
"Microsoft.Hosting.Lifetime": "Information"
},
// Configures the log output of Application Insights
"ApplicationInsights": {
"LogLevel": {
// Sets the default log output level
"Default": "Warning"
}
}
},
"PowerServer": {
// PowerServer debug log configuration
"LoggingOptions": {
// Sets whether to output SQL related logs
"EnableSqlLog": true,
// Sets whether to output logs related with session status changes
"EnableSessionLog": true,
// Sets whether to output logs related with transaction status changes
"EnableTransactionLog": true
}
},
"ApplicationInsights": {
// Configures the Application Insights key for telemetry data transfer
"InstrumentationKey": "<put instrumentation key here>"
}
}
For the Service Temporarily Unavailable error, except for restarting PowerServer API or checking database operations with PowerServer logs. it may be helpful to use some resource monitor software on your server to see whether it's overloaded.
Since we have enhanced PowerServer performance in PB 2022, please try to upgrade your project to 2022 to see whether this issue still exists. https://docs.appeon.com/ps2022/PowerServer_performance_enhancements.html
Regards, Logan