The PlatformWebServices.log file is not populated in the correct location


In SAS® 9.4M7 (TS1M7) and SAS® 9.4M8 (TS1M8), the PlatformWebServices.log file might not be created in the expected path.

On UNIX operating systems, directories might be created with the name ${env:GUI_LOGDIR}. On Microsoft Windows operating systems, the PlatformWebServices.log file might not be created at all.

This issue can occur if the GUI_LOGDIR environment variable is not set in the Web Application Server.

Circumvention

On UNIX operating systems, complete these steps:

  1. Navigate to SAS-configuration-directory/Lev1/Web/WebAppServer/SASServer14_1/bin/. Add the following line in the setenv.sh file: 

          export GUI_LOGDIR="$CATALINA_BASE/logs/"

  2. Confirm that there is a SASGridManager-log4j.xml file in the folder SAS-configuration-directory/Lev1/Web/Common/LogConfig.
    If the file is not there, refer to
    SAS Note 68188, "The SAS® Grid Manager log does not populate as expected for Platform Web Services."

  3. Restart SASServer14 with the following commands:

       SAS-configuration-directory/Lev1/Web/WebAppServer/SASServer14_1/bin/tcruntime-ctl.sh stop
       SAS-configuration-directory/Lev1/Web/WebAppServer/SASServer14_1/bin/tcruntime-ctl.sh start

  4. Confirm that the PlatformWebServices.log file is created in the folder SAS-configuration-directory/Lev1/Web/WebAppServer/SASServer14_1/logs.

  5. After you confirm that the file is present, remove the ${env:GUI_LOGDIR} directories.

On Windows operating systems, complete these steps:

  1. Navigate to SAS-configuration-directory\Lev1\Web\WebAppServer\SASServer14_1\conf\. Open wrapper.conf and go to the set section at the top of the file. If the following line is present, remove it:

           set.GUI_LOGDIR=$CATALINA_BASE/logs/

    If the following line is not present, add it:

           set.GUI_LOGDIR=%CATALINA_BASE%/logs/

  2. Rebuild the Windows Service for SASServer14_1, as described here:
    Rebuild Windows Service for Each SAS Web Application Server Instance

  3. Start the SASServer14_1 service.

  4. Confirm that the PlatformWebServices.log file is created in SAS-configuration-directory\Lev1\Web\WebAppServer\SASServer14_1\logs.