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

Frontend service couldn't start when set PAC4J_SESSIONSTORE_PROVIDER #7998

Closed
tinolyu opened this issue May 9, 2023 · 4 comments
Closed
Labels
bug Bug report

Comments

@tinolyu
Copy link
Contributor

tinolyu commented May 9, 2023

Describe the bug
Frontend service couldn't start when set PAC4J_SESSIONSTORE_PROVIDER, error log:

Oops, cannot start the server.
com.google.inject.CreationException: Unable to create injector, see the following errors:

1) No implementation for play.cache.SyncCacheApi was bound.
  at auth.AuthModule.configure(AuthModule.java:81) (via modules: com.google.inject.util.Modules$OverrideModule -> auth.AuthModule)

1 error
        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:554)
        at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:161)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:108)
        at com.google.inject.Guice.createInjector(Guice.java:87)
        at com.google.inject.Guice.createInjector(Guice.java:78)
        at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:200)
        at play.inject.guice.GuiceBuilder.injector(GuiceBuilder.java:211)
        at play.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.java:121)
        at play.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.java:32)
        at play.api.ApplicationLoader$JavaApplicationLoaderAdapter$1.load(ApplicationLoader.scala:181)
        at play.core.server.ProdServerStart$.start(ProdServerStart.scala:53)
        at play.core.server.ProdServerStart$.main(ProdServerStart.scala:29)
        at play.core.server.ProdServerStart.main(ProdServerStart.scala)

To Reproduce
Steps to reproduce the behavior:

  1. Add PAC4J_SESSIONSTORE_PROVIDER=PlayCacheSessionStore to docker-compose.yaml
  2. Run Datahub customized quickstart datahub docker quickstart --quickstart-compose-file docker-compose.yaml

Expected behavior
Frontend up and running.

Screenshots

Desktop (please complete the following information):

  • OS: macOS
  • Version v0.10.2

Additional context

@tinolyu tinolyu added the bug Bug report label May 9, 2023
@jakobhanna
Copy link
Contributor

have the same Issue, now even without PAC4J_SESSIONSTORE_PROVIDER=PlayCacheSessionStore. See #7733.

@tinolyu
Copy link
Contributor Author

tinolyu commented May 19, 2023

have the same Issue, now even without PAC4J_SESSIONSTORE_PROVIDER=PlayCacheSessionStore. See #7733.

hmm were you able to figure it out? I'm thinking of downgrading to v0.10.0😞

@jakobhanna
Copy link
Contributor

we had to downgrade

@tinolyu
Copy link
Contributor Author

tinolyu commented May 23, 2023

we had to downgrade

Hey I was able to fix this issue.
#7221 (comment)

@tinolyu tinolyu closed this as completed May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

2 participants