IBM Support

Changing the plugin-cfg.xml file dynamically without having to restart the
Web server

Troubleshooting


Problem

If the Web server and plug-in are on a UNIX system and you change the log level (for example, change the log level from Error to Trace or from Trace to Error) in the plugin-cfg.xml file, this change is not picked up dynamically. You must restart the Web server to pick up the changes. The following errors are in the /logs/http_plugin.log file: If you restart the Web server, the changes are picked up.

Symptom

ERROR: ws_config_parser:handleLogEnd: Failed to open log file
'/opt/IBM/WebSphere/Plugin/logs/sunwebserver/http_plugin.log', OS Err:13

Cause

When the Web server restarts, the parent process has the root access and it can load the plug-in configuration file. The child process, started with user ID nobody, does not have enough authority to the log file.

Resolving The Problem

Give permission to the http_plugin.log file; for example:
# chmod 766 http_plugin.log

Or, give the chown to the same user as a child process of httpd; for example:

# chown myuser http_plugin.log

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Plug-in","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF012","label":"IBM i"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5;8.0;7.0","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Plug-in","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21211601