Database upgrade failure


Foglight Repository Database Type: Oracle (External Database)

I want to upgrade the fms server from version to 5.9.2.

But the database upgrade can't be successfully performed within the installer itself.So I run the script under the path "<foglight_home>\bin\" as mentioned in the official document .

And there was an error occurred.The error information as blow:

[foglight@GSFGADBV1211 bin]$ ./
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
2018-08-02 17:18:33.084 INFO Current database schema version:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.hibernate.dialect.Dialect.<clinit>(
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 10 more

So how can I solve this problem? Or how can I upgrade my database successfully? 

THX for any answers.

  • Hello Huang,

    which user did you use to run the DB upgrade script?

    A NoClassDefFoundError could appear if a class library with the class definition was available when the program was compiled but cannot be found during runtime. If you use an OS user which does not have access on the needed libraries in Foglight, such an error could appear.

    Please make sure that the user which is running the DB upgrade script is the user who owns the Foglight installation.

    If the issue still exist, you might need to create a Service Request so we can investigate deeper and check the installation log files for further errors.

    Kind Regards