This guide has been designed with our installation manual in mind. You should think about what data to backup if you didn't use those guides. A backup is mandatory!
It is normally no problem to skip some (major/minor) versions; an upgrade from 10.0.0 to 15.3.5 should work as well as an upgrade from 15.2.0 to 15.2.1, it will simply take more time to finish.
If you are upgrading from any version lower than 14.x.x to a version 14.x.x or higher, you will need to also upgrade from log4j to log4j2. An example for a log4j2.xml can be found at the end of this manual in the appendix. Adapt it to your needs.
If you are upgrading from any version lower than 15.3.x to a version 15.3.x or higher, you will need to also upgrade to Tomcat 9 and Java 11. Additionally, remove the following line from your ~/bin/setenv.sh:
-Djava.endorsed.dirs=./common/endorsed \
Create the file ~/lib/log4j2.xml containing the following and adapt it to your file structure and needs.
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <Appenders> <RollingFile name="RollingFile" fileName="/home/openolat/logs/olat.log" filePattern="/home/openolat/logs/olat.log.%d{yyyy-MM-dd}"> <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %marker %c{1} ^%%^ I%X{ref}-J%sn ^%%^ %logger{36} ^%%^ %X{identityKey} ^%%^ %X{ip} ^%%^ %X{referer} ^%%^ %X{userAgent} ^%%^ %msg%ex{full,separator( )}%n" /> <Policies> <TimeBasedTriggeringPolicy interval="1" /> </Policies> </RollingFile> </Appenders> <Loggers> <Logger name="org.apache.commons.httpclient" additivity="false" level="warn"> <AppenderRef ref="RollingFile" /> </Logger> <Logger name="org.apache.pdfbox" additivity="false" level="fatal"> <AppenderRef ref="RollingFile" /> </Logger> <Logger name="org.apache.fontbox" additivity="false" level="fatal"> <AppenderRef ref="RollingFile" /> </Logger> <Logger name="org.hibernate.engine.internal.StatisticalLoggingSessionEventListener" additivity="false" level="fatal"> <AppenderRef ref="RollingFile" /> </Logger> <!-- Change the level to debug to see the SQL statements generated by Hibernate --> <Logger name="org.hibernate.SQL" additivity="false" level="fatal"> <AppenderRef ref="RollingFile" /> </Logger> <Logger name="org.hibernate.type.descriptor.sql.BasicBinder" additivity="false" level="fatal"> <AppenderRef ref="RollingFile" /> </Logger> <Root level="info"> <AppenderRef ref="RollingFile" /> </Root> </Loggers> </Configuration>