-
Notifications
You must be signed in to change notification settings - Fork 188
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
New changes in Dockerfile break Dashboard on Staging #3263
Comments
Would it make sense to rip out the |
Yes if it temporarily gets the dashboard working. |
My guess is staging is not happy with the telescope/src/api/status/Dockerfile Line 53 in 7944fa0
|
I'm just baffled cause it seems some other dockerfiles have this line as well but they don't seem to be affected. |
The problem here is that we're asking the We should be using |
@humphd I'm checking all the |
@manekenpix , should I fix all the other |
@Kevan-Y I don't even know if that's the issue. All the other |
@manekenpix I don't think it's an issue of PORT maybe, on portainer I can see that the env |
@Kevan-Y thanks for checking 👍 |
Regardless, |
Test scenario (each scenario doesn't contain any change from previous scenario):
I think in telescope/src/api/status/src/server.js Line 55 in 78bd995
|
Anything that gets However, I think this In a GitHub Actions Workflow, you can get the following:
We can stamp these values into the I already do this for all the URLs we pass to next.js when we build the front-end, see https://github.com/Seneca-CDOT/telescope/blob/master/.github/workflows/docker-build-and-push.yml. We could add some more |
I was looking at the previous commit. But don't remember why we return |
It's so that the front-end could get it to display on the front landing page. But we don't need to do that in the status service, we can build that info into the |
If we do this, we'll have |
I don't think it matters as much in development. |
I checked the code, in our front-end we don't call the status healthcheck to get that info. In development, when we run |
What happened:
Dashboard is broken on staging.
(Clicking on the "i" on the hero banner)
https://dev.api.telescope.cdot.systems/v1/status/
What should have happened:
Should show the dashboard
How to reproduce it (as precise as possible):
Go here: https://dev.api.telescope.cdot.systems/v1/status/
Anything else we need to know?:
The docker logs show a healthcheck fail from the
Status
image. (Sometimes it happens toPosts
too)I went through the commit history to traceback the commit that may have caused this.
It seems like it was commit e1b73fd19100a9d91a458ac538b2f349a6744340 that had this problem
The commit before this is stable, and the dashboard works.
Scanning the changes in the commit, it seems like this line here is terminating the process as an error when healthcheck fails.
I tested locally changing
exit 1
toexit 0
and the dashboard showed.This is only a temporary solution, but I think we should investigate more on
healthcheck
.The text was updated successfully, but these errors were encountered: