1. Chen Mey Lee
  2. PowerServer
  3. Thursday, 10 November 2022 07:20 AM UTC

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>"

  }

}

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 10 November 2022 15:51 PM UTC
  2. PowerServer
  3. # 1

Hi Chen,

After making these configuration changes make sure to restart the Application Pool so that the new config is loaded.
Also, verify that the user running the application pool has write access to the Logging folder

Regards,
Francisco

Comment
  1. Logan Liu @Appeon
  2. Friday, 11 November 2022 02:14 AM UTC
Hi Chen, you can also change the path of the log. refer to https://docs.appeon.com/ps2022/Log4net_logging.html

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
  1. Helpful 2
  1. Chen Mey Lee
  2. Friday, 11 November 2022 02:23 AM UTC
It worked. Thanks Francisco
  1. Helpful 1
  1. Chen Mey Lee
  2. Friday, 11 November 2022 09:57 AM UTC
I will try PowerServerLabel and PowerServerResult , thanks Logan.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.