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

Public template shows blank page #1527

Closed
elisabettai opened this issue Jun 19, 2024 · 7 comments
Closed

Public template shows blank page #1527

elisabettai opened this issue Jun 19, 2024 · 7 comments
Labels
Feedback Feedback through frontend type:bug Issue that prevents to perform a certain task, features that don't work as t

Comments

@elisabettai
Copy link
Contributor

elisabettai commented Jun 19, 2024

Long Story Short
This public template shows a blank page: https://osparc.io/study/9641ba42-c4db-11ed-b8b9-02420a0b5f22
Edit: also sarvalidation.site
Please note that these are public links in scientific publications

Expected Behavior
The template shows the voila-based UI

Steps to reproduce
1, Open Firefox
2. Click on the link
3. Wait for the service to load
4. You will see a blank page

If you click on "Reload" to reload the iframe of refresh the browser tab, the correct UI is displayed

Environment
Reproducible at the first try with Firefox and Chrome

Additional context
In my browser log, I see this call gets a 502 Bad Gateway response 3 times
GET https://_service-uuid_.services.osparc.io/
And Server is Caddy

@elisabettai elisabettai added type:bug Issue that prevents to perform a certain task, features that don't work as t Feedback Feedback through frontend labels Jun 19, 2024
@elisabettai
Copy link
Contributor Author

elisabettai commented Jun 19, 2024

@GitHK or @odeimaiz, do you have an idea on why that can happen? It was working before (at least when I created the service and template, Oct. 2023)

@GitHK
Copy link
Contributor

GitHK commented Jun 19, 2024

For me it sometimes works and sometimes it does not work. It might be related to the issues OM is trying to fix. But I am not sure.

When pressing the refresh button it loads.
Screenshot 2024-06-19 at 13 29 40

@elisabettai
Copy link
Contributor Author

elisabettai commented Jun 20, 2024

I am also getting the same blank page on Firefox when I try to access sarvalidation.site. It works if I reload/refresh,
fyi @odeimaiz, also the e2e publications is mainly red.

Browser console shows again 502 Bad Gateway when trying to GET gttps://service_uuid.services.osparc.io/.
Very reproducible for me on Firefox

@SCA-ZMT
Copy link
Contributor

SCA-ZMT commented Jun 20, 2024

I confirm the blank template... In addition, the reload/refresh only works to fix sarvalidation.site if the user is logged in. Otherwise you get the osparc login page instead of the template when you reload.

@odeimaiz
Copy link
Member

odeimaiz commented Jun 20, 2024

I confirm the blank template... In addition, the reload/refresh only works to fix sarvalidation.site if the user is logged in. Otherwise you get the osparc login page instead of the template when you reload.

In the publication case, there is a reload button, but not for the sarvalidation.site
image

@odeimaiz
Copy link
Member

@GitHK @elisabettai @SCA-ZMT

It's similar to what happens with the Loading page that says starting/ready, the backend is ready, but the frontend is not shown.

As described in ITISFoundation/osparc-simcore#5963, the frontend polls the state of the dynamic service and when this says Ready (which is the container's status), the frontend still needs to make sure the url is reachable, because some traefik rules in the backend need to be added and these might not be there yet. In this "ping" call from the frontend to the dynamic service's content, the backend responds with a 502 or a 302... or whatever the server behind the app says, but if it's not a successful response (200-299), the website might not be displayed. It depends on the browser...

We might need to change this logic...

@mrnicegyu11
Copy link
Member

close as fixed after talking to @odeimaiz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feedback Feedback through frontend type:bug Issue that prevents to perform a certain task, features that don't work as t
Projects
None yet
Development

No branches or pull requests

5 participants