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

[BUG] Dashboard is unreachable when its running within Docker container #25

Closed
michalgce opened this issue Jul 21, 2020 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@michalgce
Copy link

michalgce commented Jul 21, 2020

Describe the bug
When i start my application within docker container im not able to open dashboard.
It looks like redirect from / to /dashboard works but it results with 404.

Environment
I'm using version 0.9.11
I'm running on JRE / JDK 1.8.0

To Reproduce
Try to run jobrunr within docker

Expected behavior
Dashboard is accessible when its run within docker container

Additional context

Edit:
After spending some time on debugging i notice the problem is placed within StaticFileHttpHandler.java.
When i start my application from my IDE the path

final Path toServe = rootDir.resolve(requestUri.substring((contextPath + "/").length()));

is accessible. When i create jar file for my whole application, then the ZipFilesSystem changed and setup us my application jar name and it need firstly extract jobrunr jar from my application jar, and theres no way to extract jar which is already inside jar.

@rdehuyss
Copy link
Contributor

rdehuyss commented Jul 23, 2020

This is strange as I run end-to-end UI tests to JobRunr in a Docker container.

See https://github.com/jobrunr/jobrunr/blob/master/tests/e2e-ui-jackson/src/test/java/org/jobrunr/tests/e2e/CypressJacksonUIE2ETest.java.

Your analysis however gave me some ideas and I'll look into it ASAP.

@rdehuyss rdehuyss added the bug Something isn't working label Jul 23, 2020
@rdehuyss
Copy link
Contributor

Hi @michalgce , I released v0.9.12 which may fix your issue. (it might take an hour or 2 when it is available in Maven Central)

Can you confirm?

@michalgce
Copy link
Author

michalgce commented Jul 24, 2020

Sure, im still waiting for an update within maven

Tested, and works properly! Great job, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants