Symantec Access Management

 View Only
Expand all | Collapse all

Red Hat linux: Siteminder Webagent starts but get error - cannot open file: /app/CA/webagent/resources/AgentFramework_en.properties

  • 1.  Red Hat linux: Siteminder Webagent starts but get error - cannot open file: /app/CA/webagent/resources/AgentFramework_en.properties

    Posted Nov 21, 2022 07:38 AM
    I am getting these 2 error messages despite that SiteMinder Agent is running. I am bit puzzled. How is it possible for service to run with this error?

    I have referred other blogs regarding permission. I have user apache and group root for all webagent file and folders. Also webagent environment variables are set in httpd.conf file as well. That is same as other environment where we don't have this issue.

    File open error.: Permission denied
    [18/Nov/2022:23:32:06] [Error] SiteMinder Agent
    Unable to open file.
    LLAWorkerProcess.LLAWPOpenLogFile.Failed (/app/CA/webagent/log/aphis_items_trace.log)

    cannot open file: /app/CA/webagent/resources/AgentFramework_en.properties
    [18/Nov/2022:23:38:27] [Information] SiteMinder Agent
    SiteMinder agent is running.

    LLAWP Service is running as well. Here is the output of ps -efZ | grep 'httpd'

    system_u:system_r:httpd_t:s0-s0:c0.c1023 root 2335 1 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2337 1 0 23:32 ? 00:00:04 LLAWP /etc/httpd/conf/WebAgent.conf -APACHE24
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2384 2335 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 root 2387 2335 0 23:32 ? 00:00:01 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2388 2335 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2393 2335 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2465 2335 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful
    system_u:system_r:httpd_t:s0-s0:c0.c1023 apache 2626 2335 0 23:32 ? 00:00:00 /usr/sbin/httpd -k graceful


  • 2.  RE: Red Hat linux: Siteminder Webagent starts but get error - cannot open file: /app/CA/webagent/resources/AgentFramework_en.properties

    Posted Dec 01, 2022 10:24 AM
    I was able to resolve issue by change permission type of resources folder using below command. 

    chcon -t usr_t file-name. I had user permission set for apache manually for these folder but SELinux permission type was default_t. I changed to usr_t and it resolved the problem.

    However now I am getting this error:

    ile open error.: Permission denied

    [30/Nov/2022:20:12:05] [Error] SiteMinder Agent

            Unable to open file.

            LLAWP failed to open log file '/path_for_webagent/log/wa.log'.  Check disk space, permissions and configuration.

    File open error.: Permission denied

    [30/Nov/2022:20:12:05] [Error] SiteMinder Agent

            Unable to open file.

            LLAWP failed to open log file '/path_for_webagent/log/trace.log'.  Check disk space, permissions and configuration.

    I have full permission. But still it does not resolve the problem and not able to see logs. I created a file as well with all permissions but still not able to resolve the issue.

    drwxrwxrwx. 2 apache root system_u:object_r:usr_t:s0 61 Nov 30 21:14 log

    -rwxrwxrwx. 1 apache root system_u:object_r:usr_t:s0 0 Nov 30 21:06 aphis_items_wa.log
    -rwxrwxrwx. 1 apache root system_u:object_r:usr_t:s0 0 Nov 30 21:09 aphis_items_trace.log