servoy_log.txt is created but is not updated

Questions and answers for all installation-related topics for Servoy products

servoy_log.txt is created but is not updated

Postby bodnarescu.diana » Thu Jun 06, 2024 5:36 pm

Hello,

Does anybody have a suggestion why, for Servoy 2024.3.2 on a Linux server, the servoy_log.txt is created but is not updated? It stays at 0B.
tomcat user has R and W rights on the file.
I think it is something in the war because an older 2022.3.5 instance updates it's corresponding servoy_log.txt, but i don't know where to look.
I don't have much Linux experience, any suggestion is appreciated.

Thank you,
Diana Bodnarescu
Servoy Valued Professional
Freelance Servoy Developer
bodnarescu.diana
 
Posts: 28
Joined: Tue Mar 29, 2016 10:43 am

Re: servoy_log.txt is created but is not updated

Postby robert.edelmann » Thu Jun 06, 2024 6:43 pm

You should get the tomcat logs in /var/log/tomcat9/catalina.out do you see any messages there that relate to the logging?

If you build the war, do you set the ServoyHome directory correctly? You can set this in the export, either in the exporter or via the parameter "-userHomeDirectory".

Alternatively you can set the ServoyHome in the Tomcat-Startup in /usr/share/tomcat9/bin/setenv.sh:
Code: Select all
export CATALINA_OPTS="$CATALINA_OPTS -XX:+UseG1GC"
export CATALINA_OPTS="$CATALINA_OPTS -XX:+DisableExplicitGC"
[...]
export CATALINA_OPTS="$CATALINA_OPTS -DSERVOY_USER_HOME=/home/ServoyHome"


Tomcat runs without this file, so it's not necessarily there, you should look where the tomcat on your system (lbs_release -a tells you what distribution you are running) expects this file and create/edit it there.

But for starters, check your war export and the catalina.out for more information, that's the faster route.
mit freundlichen Grüßen
Robert Stefan Edelmann
User avatar
robert.edelmann
 
Posts: 103
Joined: Wed Aug 14, 2013 6:12 pm

Re: servoy_log.txt is created but is not updated

Postby bodnarescu.diana » Thu Jun 13, 2024 3:50 pm

Hi Robert,

Thank you for your suggestions.

In catalina.out i see no errors or warnings, just an info which i understand typically appears during Tomcat startup and can be safely ignored:
Code: Select all
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs.
Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them.
Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.


in the war the ServoyHome directory is:
Code: Select all
servoy.user.home=/var/lib/tomcat9/tomcat_home

Which I assume is correct because it creates the file:
Code: Select all
/var/lib/tomcat9/tomcat_home/.servoy/server/myInstance/servoy_log.txt

just not updates it.

An upgrade to Java 21.0.2+13-Ubuntu-122.04.1 did not fix it..
Diana Bodnarescu
Servoy Valued Professional
Freelance Servoy Developer
bodnarescu.diana
 
Posts: 28
Joined: Tue Mar 29, 2016 10:43 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests