ERROR [geoserver.logging] - Could not configure log4j overrides
ducat7 opened this issue · comments
OS:Win_7
Docker:boot2docker_18.09.3
Docker Compose file:docker-compose_gis.yml
version: "3"
services:
GeoServer:
restart: always
tty: true
image: oscarfonts/geoserver
environment:
TZ: Asia/Shanghai
volumes:
# ERROR [geoserver.logging] - Could not configure log4j overrides
- /usr/local/GeoServer/node/data:/var/local/geoserver:z
ports:
- "5080:8080"
deploy:
replicas: 1
Command:docker-compose -f docker-compose_gis.yml -p gis up -d --force-recreate
Create the container success, But, Docker logs errors:
ERROR [geoserver.logging] - Could not configure log4j overrides
1、I have closed volumes configured with no errors occurred。
2、I have:
docker-machine ssh
sudo mkdir -m 777 -p /usr/local/GeoServer/node/data && sudo chown -R root:staff /usr/local/GeoServer/node/data
This does not help。
This how to deal with it?
Similar problem here. When running startup.bat, the console says 'could not configure log4j overrides'. However, there seems to be a previous problem loading an environment variable. Do you receive that warning? Have you tried to fix it?
Same problem here
This seems to be cause by the usage of a specific user running tomcat/geoserver (here). Remove the user creation and the problem is solved.
But we loose specific user ID running the container, this may raise other problems (e.g Openshift)