Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container ignores provided props config #185

Open
AlexanderShniperson opened this issue Apr 15, 2022 · 0 comments
Open

Docker container ignores provided props config #185

AlexanderShniperson opened this issue Apr 15, 2022 · 0 comments

Comments

@AlexanderShniperson
Copy link

Hi

i try to run docker container

docker run \
--name obpexplorer -d -p 8082:8082 \
-e "props.resource.dir=/obp-config" \
--mount type=bind,source="$(pwd)"/explorer-config,target=/obp-config \
openbankproject/api-explorer

with that props config from Docker

but it failed to find it

2022-04-15 15:35:03.231:INFO::main: Logging initialized @987ms to org.eclipse.jetty.util.log.StdErrLog
2022-04-15 15:35:04.636:INFO:oejs.Server:main: jetty-9.4.33.v20201020; built: 2020-10-20T23:39:24.803Z; git: 1be68755656cef678b79a2ef1c2ebbca99e25420; jvm 14.0.2+12-46
2022-04-15 15:35:04.824:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///var/lib/jetty/webapps/] at interval 1
2022-04-15 15:35:12.590:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=4549ms
2022-04-15 15:35:13.649:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2022-04-15 15:35:13.650:INFO:oejs.session:main: No SessionScavenger set, using defaults
2022-04-15 15:35:13.654:INFO:oejs.session:main: node0 Scavenging every 600000ms
2022-04-15 15:35:16 main Props [ERROR] Failed to find a properties file (but properties were accessed).  Searched: /props/jetty.7e82a5f50c82.props, /props/jetty.props, /props/7e82a5f50c82.props, /props/default.props, /jetty.7e82a5f50c82.props, /jetty.props, /7e82a5f50c82.props, /default.props
2022-04-15 15:35:16 main Boot [INFO] running mode: Development mode
2022-04-15 15:35:16 main Boot [INFO] external props folder: List()
2022-04-15 15:35:16 main HTTPProvider [ERROR] Failed to Boot! Your application may not run properly
java.lang.Exception: defaultAuthProvider must be specified in the props file!
	at bootstrap.liftweb.Boot.boot(Boot.scala:128)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:364)
	at net.liftweb.util.ClassHelpers$$anonfun$createInvoker$1.apply(ClassHelpers.scala:362)
	at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2040)
	at net.liftweb.http.DefaultBootstrap$$anonfun$boot$1.apply(LiftRules.scala:2040)
	at net.liftweb.common.Full.map(Box.scala:610)
	at net.liftweb.http.DefaultBootstrap$.boot(LiftRules.scala:2040)
	at net.liftweb.http.provider.HTTPProvider$class.bootLift(HTTPProvider.scala:88)
	at net.liftweb.http.LiftFilter.bootLift(LiftServlet.scala:928)
	at net.liftweb.http.provider.servlet.ServletFilterProvider$class.init(ServletFilterProvider.scala:40)
	at net.liftweb.http.LiftFilter.init(LiftServlet.scala:928)
	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:140)
	at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:739)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:734)
	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:763)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1457)
	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1422)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:911)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
	at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
	at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:517)
	at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:157)
	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:173)
	at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:441)
	at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:66)
	at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:784)
	at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:753)
	at org.eclipse.jetty.util.Scanner.scan(Scanner.java:641)
	at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:540)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:146)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:605)
	at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:252)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)
	at org.eclipse.jetty.xml.XmlConfiguration.lambda$main$2(XmlConfiguration.java:1908)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:554)
	at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1857)
2022-04-15 15:35:16.242:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@3967e60c{root,/,file:///tmp/jetty/jetty-0_0_0_0-8080-root_war-_-any-2717734227032265865/webapp/,AVAILABLE}{/var/lib/jetty/webapps/root.war}
2022-04-15 15:35:16.324:INFO:oejs.AbstractConnector:main: Started ServerConnector@2d746ce4{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2022-04-15 15:35:16.327:INFO:oejs.Server:main: Started @14145ms

Is this a legacy container issue?

The docker API-Explorer container taken from here:
https://hub.docker.com/r/openbankproject/api-explorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant