Daniel Watford created OFBIZ-13145:
--------------------------------------
Summary: Docker: Ensure log files/directory are writable before
OFBiz can startup
Key: OFBIZ-13145
URL: https://issues.apache.org/jira/browse/OFBIZ-13145
Project: OFBiz
Issue Type: Improvement
Components: Docker
Affects Versions: 18.12.16, Upcoming Branch, 24.09.01
Reporter: Daniel Watford
Following a change in the base container image used to build the OFBiz 18.12
container images, the Unix UID of the ofbiz user changed from 1000 to 1001.
For the docker-stable demo instance, the new UID did not have write permission
to the log directory on the docker host's filesystem, meaning no logs could be
written by OFBiz.
The lack of logging made investigation of some other issues difficult for the
development community.
To detect logging issues in future, the docker entry script should ensure the
log directory and any files it contains are writable by the ofbiz user. If the
ofbiz cannot write logs, the entry script fail the startup process. The failure
to start a demo site will be detected by the site monitoring system, prompting
investigation by the development community.
Note: This change is only proposed for docker container images. It may be worth
considering a similar 'fail fast' approach for logging in the main OFBiz
startup process, but this should be discussed on the mailing list first.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)