Hi Chris*,
> Am 16.11.2023 um 20:12 schrieb Christopher Schultz > <ch...@christopherschultz.net>: > > Christoph, > > On 11/15/23 10:32, Christoph Kukulies wrote: >> I'm running tomcat9 under Ubuntu 22.04 with an haproxy 2.8 in front of it. >> I'm wondering about the following in the logs: >> Nov 15 16:19:23 mail tomcat9[832]: Reloading memory user database >> [UserDatabase] from updated source >> [file:/var/lib/tomcat9/conf/tomcat-users.xml] >> Nov 15 16:19:23 mail tomcat9[832]: The specified user database >> [conf/tomcat-users.xml] could not be found >> Nov 15 16:19:33 mail tomcat9[832]: Reloading memory user database >> [UserDatabase] from updated source >> [file:/var/lib/tomcat9/conf/tomcat-users.xml] >> Nov 15 16:19:33 mail tomcat9[832]: The specified user database >> [conf/tomcat-users.xml] could not be found >> Nov 15 16:19:43 mail tomcat9[832]: Reloading memory user database >> [UserDatabase] from updated source >> [file:/var/lib/tomcat9/conf/tomcat-users.xml] >> Nov 15 16:19:43 mail tomcat9[832]: The specified user database >> [conf/tomcat-users.xml] could not be found >> Nov 15 16:19:53 mail tomcat9[832]: Reloading memory user database >> [UserDatabase] from updated source >> [file:/var/lib/tomcat9/conf/tomcat-users.xml] >> Nov 15 16:19:53 mail tomcat9[832]: The specified user database >> [conf/tomcat-users.xml] could not be found >> File /var/lib/tomcat9/conf/tomcat-users.xml is definitely there. >> It occurs every 10 seconds. >> Don't know who is causing this and why. Permissions? Ownership wrong? >> -rw-r----- 1 root root 2756 Jan 15 2022 tomcat-users.xml >> Believe the ownership was wrong. Maybe it came from migrating an old >> installation. >> What are the correct perms/ownership in /var/lib/tomcat9 and below? > > What is the user-owner of the JVM process? > > Check that all of the above would be both readable and executable by that > user: > > ls -ld /var > ls -ld /var/lib > ls -ld /var/lib/tomcat9 > ls -ld /var/lib/tomcat9/conf > > ... and of course that the JVM user can read > /var/lib/tomcat9/conf/tomcat-users.xml which I assume is true since you said > you already checked it. > > What is the cwd of the JVM process? > > The first message ("reloading") has the full path, and the second message > ("file not found") only mentions a relative path. I wonder if that is the > difference. > Could it be that the second path relates to a missing env-Variable $CATALINA_BASE or $CATALINA_HOME? Peter > -chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org