Article ID: 130809, created on May 15, 2017, last review on May 22, 2017

  • Applies to:
  • Odin Business Automation Standard 4.5

Symptoms

OBAS log files are cleaned up by a custom script. On attempt to change log level under Top > Configuration Director > Logging and Errors > Log Settings the following error occurs:

Internal Server Error

Also, the following messages can be found in /var/log/hspcd/error_log:

[Mon May 15 13:41:31 2017] [error] Can't open /var/log/hspc/upgrade.log (Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm line 103.\n
[Mon May 15 13:41:31 2017] [error] [client 10.198.5.184] File does not exist: /var/opt/hspc-root/frontend/en/500.shtml
[Mon May 15 13:41:37 2017] [error] Can't open /var/log/hspc/upgrade.log (Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm line 103.\n
[Mon May 15 13:41:37 2017] [error] [client 10.198.5.184] File does not exist: /var/opt/hspc-root/frontend/en/500.shtml
[Mon May 15 13:41:40 2017] [error] Can't open /var/log/hspc/upgrade.log (Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm line 103.\n
[Mon May 15 13:41:40 2017] [error] [client 10.198.5.184] File does not exist: /var/opt/hspc-root/frontend/en/500.shtml
[Mon May 15 13:41:42 2017] [error] Can't open /var/log/hspc/upgrade.log (Permission denied) at /usr/share/perl5/vendor_perl/Log/Log4perl/Appender/File.pm line 103.\n
[Mon May 15 13:41:42 2017] [error] [client 10.198.5.184] File does not exist: /var/opt/hspc-root/frontend/en/500.shtml

Cause

File /var/log/hspc/upgrade.log is recreated with incorrect root:root ownership by servicemon service, while the file should belong to apache user:

# ls -la /var/log/hspc/upgrade.log
-rw-r--r-- 1 root root 0 Jan 23 08:01 /var/log/hspc/upgrade.log

Such behavior was classified as software issue PBAS-30574 and was fixed in OBAS 4.5.7 release.

Resoltion

To resolve the issue, please upgrade to 4.5.7 as described in How to upgrade OBAS system to the latest available version.

Workaround for 4.5.6 and older versions

  1. Disable the custom cleanup script execution.
  2. Change back apache:apache ownership for /var/log/hspc/upgrade.log file:

    # chown apache:apache /var/log/hspc/upgrade.log
    
  3. Consider to use logrotate utility in order to rotate OBAS logs.

See also:

OBAS log rotation

[INFO] Storage of OBAS logs on remote server

624ca542e40215e6f1d39170d8e7ec75 caea8340e2d186a540518d08602aa065 400e18f6ede9f8be5575a475d2d6b0a6 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF