Hey guys,

I'm struggling to enable the WebObjects Apache adaptor log on Oracle Linux 
Server 8.6. I've configured it to write to /tmp/WebObjects.log, but it prints 
the following message to Apache's error log:

Failed to append to log file '/tmp/WebObjects.log': Permission denied. This can 
occur when the file is not writable by the child httpd process. A workaround is 
to change the ownership of the file to match the child httpd process.

I changed the log path to /var/log/httpd/mod_webobjects.log, and I could see 
log messages for the adaptor initialization (see at the end of the email). 
Then, the following error message appears on Apache's error log every time I 
send a request to my WO app.

Failed to append to log file '/var/log/httpd/mod_webobjects.log': Permission 
denied. This can occur when the file is not writable by the child httpd 
process. A workaround is to change the ownership of the file to match the child 
httpd process.

I've tried changing the file owner to apache, permissions to 777, changing the 
log file context to system_u:object_r:httpd_log_t:s0, and even disabled SELinux 
completely. Same error. It looks like Apache can't write to the log file from 
child httpd processes.

Any ideas on what could be causing this error and how to solve it?

Cheers,

HP

Here's a list of messages logged to /var/log/httpd/mod_webobjects.log during 
Apache's initialization.

Debug: init_adaptor(): beginning initialization. Adaptor version 4.6.6.
Info: init_adaptor(): config options are: String table:
config = file:///opt/webobjects/config/WOConfig.xml
confinterval = 10
logPath = /var/log/httpd/mod_webobjects.log
logLevel = Debug
Info: Adaptor shared state file: /tmp/WOAdaptorState
Info: Adaptor info user: <no user set>, password: <no password set>
Debug: init_adaptor(): someone installed a SIGPIPE handler
Debug: init_adaptor(): WOShmem_init succeeded
Debug: init_adaptor(): tr_init succeeded
Debug: init_adaptor(): hl_init succeeded
Debug: init_adaptor(): lb_init succeeded
Info: WOShmem_alloc(): allocated region "application list" (872 x 256)
Info: WOShmem_alloc(): allocated region "instance list" (168 x 32768)
Info: WOShmem_alloc(): allocated region "configTimes" (40 x 1)
Info: WOShmem_alloc(): allocated region "configServers" (6208 x 1)
Info: ac_init(): reading configuration from: 
file:///opt/webobjects/config/WOConfig.xml
Debug: init_adaptor(): ac_init succeeded
Debug: init_adaptor(): transaction_init() succeeded
Debug: Checking config file /opt/webobjects/config/WOConfig.xml
Debug: Checking config /opt/webobjects/config/WOConfig.xml
Debug: Checking config /opt/webobjects/config/WOConfig.xml mod time
Info: Reading configuration from /opt/webobjects/config/WOConfig.xml
Info: ac_newInstance(): added my-app:1 (2000)
Info: WebObjects_post_config(): WebObjects adaptor initialization succeeded.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to