Openolat upgrade problems

51 views
Skip to first unread message

Piotr Sz

unread,
Jul 24, 2023, 8:53:32 AM7/24/23
to OpenOlat
Hello, i'd be gratefull for any help

Im trying to upgrade Openolat 17.0.2 to latest 17.2.11

My environment is:

-Debian 11
i have no user openolat, just user tomcat (without bash)  

Tomcat 9 directory is /opt/tomcat
Java 11 direcotry is /usr/lib/jvm
Openolat directory is /opt/tomcat/webapps/
Olat data directory is /opt/olatdata

When im following update instructions i got 404 error , obviously paths are wrong

What should i do ?
i tried tomcat 10, lower version of olat, no luck 

Please help :)

here's catalina.out file
24-Jul-2023 14:39:04.316 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.65
24-Jul-2023 14:39:04.318 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Jul 14 2022 12:28:53 UTC
24-Jul-2023 14:39:04.318 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.65.0
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            5.10.0-17-amd64
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/lib/jvm/java-11-openjdk-amd64
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.16+8-post-Debian-1deb11u1
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Debian
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /opt/tomcat-9.0.65_v17
24-Jul-2023 14:39:04.319 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /opt/tomcat-9.0.65_v17
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/tomcat/conf/logging.properties
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms4096m
24-Jul-2023 14:39:04.328 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx12g
24-Jul-2023 14:39:04.329 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.net.preferIPv4Stack=true
24-Jul-2023 14:39:04.329 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
24-Jul-2023 14:39:04.329 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/tomcat
24-Jul-2023 14:39:04.329 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/tomcat
24-Jul-2023 14:39:04.329 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/tomcat/temp
24-Jul-2023 14:39:04.330 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
24-Jul-2023 14:39:04.518 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
24-Jul-2023 14:39:04.536 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-443"]
24-Jul-2023 14:39:04.691 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [511] milliseconds
24-Jul-2023 14:39:04.728 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
24-Jul-2023 14:39:04.728 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.65]
24-Jul-2023 14:39:04.732 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/tomcat-9.0.65_v17/webapps/ROOT]
24-Jul-2023 14:39:08.898 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
24-Jul-2023 14:39:08.915 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
24-Jul-2023 14:39:08.936 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/tomcat-9.0.65_v17/webapps/ROOT] has finished in [4,204] ms
24-Jul-2023 14:39:08.939 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
24-Jul-2023 14:39:08.963 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-443"]
24-Jul-2023 14:39:08.968 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [4276] milliseconds

Oliver Kant

unread,
Jul 24, 2023, 9:02:34 AM7/24/23
to open...@googlegroups.com
Hello,

it seems, it is looking for OpenOlat below
/opt/tomcat-9.0.65_v17/webapps/ and not /opt/tomcat/webapps/
(CATALINA_BASE and CATALINA_HOME both point there).

Please check your paths and your configuration files.

Of course it is always best to follow the installation manual which can
be found here:
https://docs.openolat.org/manual_admin/installation/installGuide/

Best Regards
Oliver
> --
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOlat".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> <http://groups.google.com/group/openolat?hl=de>
> -------------------------------------------------------------------------------------------------------------------
> OpenOlat - infinite learning - http://www.openolat.org
> <http://www.openolat.org>
> ---
> You received this message because you are subscribed to the Google
> Groups "OpenOlat" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openolat+u...@googlegroups.com
> <mailto:openolat+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Piotr Sz

unread,
Jul 24, 2023, 9:07:22 AM7/24/23
to OpenOlat
thank you for answer, 
/opt/tomcat is a symlink to  /opt/tomcat-9.0.65_v17/ 
what other paths should i check ? 

i wish i could install it proper way, with user, symlinks and everything in one folder 

Oliver Kant

unread,
Jul 24, 2023, 9:15:23 AM7/24/23
to open...@googlegroups.com
Hello,

can you please show us your anonymized ROOT.xml (no Passwords,
Usernames..)? Maybe that can help.

You can always try to make a new install of OpenOlat using the
Installation Guide. It uses one user (openolat or whatever you name it)
and one folder.

Best Regards
Oliver
> > argument: --add-opens=java.base/java.io <http://java.io>=ALL-UNNAMED
> https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com> <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOlat".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> <http://groups.google.com/group/openolat?hl=de>
> -------------------------------------------------------------------------------------------------------------------
> OpenOlat - infinite learning - http://www.openolat.org
> <http://www.openolat.org>
> ---
> You received this message because you are subscribed to the Google
> Groups "OpenOlat" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openolat+u...@googlegroups.com
> <mailto:openolat+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com?utm_medium=email&utm_source=footer>.

Piotr Sz

unread,
Jul 24, 2023, 10:00:52 AM7/24/23
to OpenOlat
ROOT.xml ?  do you mean server.xml in tomcat or something else ? 

actually i did make new fresh install and it works great with that symlinks and user, is it posiible to migrate data from old Olat to new fresh one ? (like copy olatdata dir and import postgres dumped db) 

Oliver Kant

unread,
Jul 24, 2023, 10:35:26 AM7/24/23
to open...@googlegroups.com
It is basically the webapps/manager/META-INF/context.xml moved to
%CATALINA_BASE%/conf/Catalina/localhost/ROOT.xml with a couple of
changes as to where the docBase is and several other things.

This way, the file is more upgrade-friendly as it resides outside of
anything that might change (tomcat, OpenOlat..) when upgrading.

When you just made a new install nex to the old one, the file might be
interesting to you after all, since you can change the db settings to
use your already existing values. And you can of course copy all your
files to the actual olatdata folder, but please make sure (db and files)
that your user has sufficient rights to access, alter everything.

Best Regards
Oliver
> <http://java.io <http://java.io>>=ALL-UNNAMED
> https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com> <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com>> <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer> <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/openolat/d79fd31f-1efe-49c5-aadf-795ddcf348c9n%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
> >
> > --
> > --
> > Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> > Groups-Gruppe "OpenOlat".
> > Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine
> E-Mail
> > an open...@googlegroups.com
> > Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> > openolat+u...@googlegroups.com
> > Weitere Optionen finden Sie in dieser Gruppe unter
> > http://groups.google.com/group/openolat?hl=de
> <http://groups.google.com/group/openolat?hl=de>
> > <http://groups.google.com/group/openolat?hl=de
> <http://groups.google.com/group/openolat?hl=de>>
> >
> -------------------------------------------------------------------------------------------------------------------
> > OpenOlat - infinite learning - http://www.openolat.org
> <http://www.openolat.org>
> > <http://www.openolat.org <http://www.openolat.org>>
> > ---
> > You received this message because you are subscribed to the Google
> > Groups "OpenOlat" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to openolat+u...@googlegroups.com
> > <mailto:openolat+u...@googlegroups.com>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com <https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com> <https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/openolat/d094d1ec-cfe8-4a93-b62c-5d815bad68aan%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> --
> Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
> Groups-Gruppe "OpenOlat".
> Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
> an open...@googlegroups.com
> Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
> openolat+u...@googlegroups.com
> Weitere Optionen finden Sie in dieser Gruppe unter
> http://groups.google.com/group/openolat?hl=de
> <http://groups.google.com/group/openolat?hl=de>
> -------------------------------------------------------------------------------------------------------------------
> OpenOlat - infinite learning - http://www.openolat.org
> <http://www.openolat.org>
> ---
> You received this message because you are subscribed to the Google
> Groups "OpenOlat" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openolat+u...@googlegroups.com
> <mailto:openolat+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openolat/df441147-b6d3-482e-9313-59772b4164d3n%40googlegroups.com <https://groups.google.com/d/msgid/openolat/df441147-b6d3-482e-9313-59772b4164d3n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Piotr Sz

unread,
Jul 27, 2023, 4:41:43 AM7/27/23
to OpenOlat
hi Oliver,

unfortunately i dont have anything like that

no manager in webapps, only ROOT, but there is no such thing as context.xml, inm webapps/ROOT/META-INF/maven/org.openolat/openolat-lms i have pom.xml and pom.properities

My %CATALINA_BASE%/conf/Catalina/localhost/ is empty

there is context.xml in %CATALINA_BASE%/conf/Catalina/localhost/ , but there are no any credentials info

context.xml in %CATALINA_BASE%/conf/Catalina/localhost/:
<Context>
        <Resources allowLinking="true" />
        <Resources cachingAllowed="true" />
        <Resources cacheMaxSize="1024000" />
 <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Manager pathname="" />
</Context>


One file with credentials to postgres is in %CATALINA_BASE%/webapps/ROOT/WEB-INF/classes, its olat.local.properties (i grepped everything, only that file has password and username)

Well, i think im gonna try new instance on that server with a instalation guide.
its 600GB olatdata, so i hope its gonna work

thanks for help

Thorsten Weissenberger

unread,
Aug 9, 2023, 6:10:10 PM8/9/23
to OpenOlat
Hi,

Piotr Sz schrieb am Montag, 24. Juli 2023 um 14:53:32 UTC+2:

Im trying to upgrade Openolat 17.0.2 to latest 17.2.11

My environment is:

- Debian 11
- Tomcat 9 directory is /opt/tomcat
- Java 11 direcotry is /usr/lib/jvm

You need Tomcat 10.1 and Java 17. See Installation guide.

 Best Regards
Reply all
Reply to author
Forward
Message has been deleted
0 new messages