ITISFoundation / osparc-issues

🐼 issue-only repo for the osparc project
3 stars 5 forks source link

Public template shows blank page #1527

Open elisabettai opened 5 months ago

elisabettai commented 5 months ago

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

  1. Click on the link
  2. Wait for the service to load
  3. 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 commented 5 months ago

@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 commented 5 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

@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 https://github.com/ITISFoundation/osparc-simcore/pull/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...