Wildbook icon indicating copy to clipboard operation
Wildbook copied to clipboard

ShephardProperties does not always load properties from the correct path

Open lewisfm opened this issue 1 year ago • 4 comments

ShephardProperties is passed relative paths when loading properties, which are read relative to the current working directory. This is often the Tomcat install (System.getProperty("catalina.home")), but this is not always true (e.g. when running Tomcat manually or when using the Homebrew service). Thus, properties will sometimes fail to load.

lewisfm avatar Apr 30 '24 04:04 lewisfm

#505 proved to be a breaking change. issues need to be resolved for this to be considered complete

TanyaStere42 avatar May 07 '24 23:05 TanyaStere42

We could not load Properties files on an Ubuntu 18.04 machine, causing Wildbook to fail to start and throw messages such as:

++ StartupWildbook.skipInit() test on null [/tmp/WB_SKIP_INIT] --> false
2024-05-07T23:05:21.760Z WildbookIAM init() called on context context0
2024-05-07T23:05:21.760Z WildbookIAM init() called on context context0
2024-05-07T23:05:21.765Z ####### TestPlugin ####### org.ecocean.ia.plugin.TestPlugin@72120ec7[TestPlugin] init() called on context context0
Super weird case met in ShepherdProperties.getProps(IA.properties, , null, null). Returning generated default props.
IA.getProperty(enableTestPlugin) has no properties; IA.properties unavailable?
2024-05-07T23:05:21.772Z ####### TestPlugin ####### org.ecocean.ia.plugin.TestPlugin@72120ec7[TestPlugin] init() called on context context0
INFO: IAPluginManager.startup() called
Super weird case met in ShepherdProperties.getProps(IA.properties, , context0, null). Returning generated default props.
IA.getProperty(IBEISIADisableIdentification) has no properties; IA.properties unavailable?
++ StartupWildbook.skipInit() test on PRIMEIA [/tmp/WB_SKIP_INIT_PRIMEIA] --> false
2024-05-07T23:05:21.772Z INFO: WildbookIAM.prime(context0) called - NOTE this is deprecated and does nothing now.
 ???? setting iaPrimed to true
Super weird case met in ShepherdProperties.getProps(commonConfiguration.properties, , context0, null). Returning generated default props.
Super weird case met in ShepherdProperties.getProps(commonConfiguration.properties, , context0, null). Returning generated default props.
07-May-2024 23:05:21.778 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
07-May-2024 23:05:21.782 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
* StartupWildbook destroyed called for: Wildbook® [ via /var/lib/tomcat8/webapps/wildbook/]```

TanyaStere42 avatar May 07 '24 23:05 TanyaStere42