No projects and workspaces showing after update to v4.0

Just around 10-15 users not totally sure and 69 projects.

As i update i just noticed as i wanted to look project numbers up, i started cryosparc and still had the projects overview html in browser and it did load correctly, though switching to another field like sessions didnt load and then back to projects it didnt load anymore also.
So it seems only the first asked page is laoded and then it hangs.

cheers
Kilian

I got the same Keyerror: ‘resource_slots’ after upgrading to v4.0. Also, I am not able to see anything in the central window, which actually appears as a blank screen, and the Job builder shows up as a blank tab as well.

This happened when I made the regular cluster installation, which worked fine in v3.4

Hi @KiSchnelle ,

Thanks for the additional info. Could you please try the following:

  1. Enter the CryoSPARC MongoDB shell: cryosparcm mongo
  2. Once in the shell, run: db.workspaces.createIndex({ "project_uid_num": 1, "uid_num": 1 })
  3. Next, run: db.workspaces.createIndex({ "project_uid_num": 1, "session_uid_num": 1 })
  4. Exit the MongoDB shell: exit

Try refreshing the web application and please let me know what you see.

- Suhail

FYI not sure if related, there is no functionality of the GUI with old Safari browser (13). I had to update mac beyond Catalina now to either Big Sur or Monterey.

@CryoEM1 Do you have a screenshot of this?

First i just noticed after doing the commands that P1 was deleted before and doesnt exist:D
Doesnt now either but the rest is showing up now, though it is still not normal, but i found some more detail.

Its somehow linked to the home page tab.
When i load on the project view directly i can switch between it and session view and manager view and instance view and others without problem, BUT as soon as i load home once it gets displayed also correctly, but then switching to any other page, it is not loading correctly. also normal browser refresh is not working, i have to click refresh then cancel the refresh and then refresh again then its working again until i have been in home page once.

Also the get sessions error from above still appears in log but also when switching between just sessions and project view, which seems to work. So not sure its related actually.

I have 1 screenshot but have since updated. could you give me offline email to send?

@CryoEM1 you can send us an email at [email address removed].

Hi @KiSchnelle ,

Do you still see the MongoDB RAM error messages in the application logs? Could you please attach a screen recording?

- Suhail

I still see the error in the log, though we can use cryosparc normally if we just dont use the home tab ever:D i recorded my screen and will send it via email to you, since people here may want to keep projects private.

Basically what i see
going to home tab → any other tab after will not load properly → fixable by refresh-cancel refresh- refresh again

if you do the refresh thing on the home tab itsself → other tabs will just be blank or management not even open

the sort error appears anyway when switching to projects/session tab but does not seem to really have an impact

cheers
Kilian

Hi @KiSchnelle ,

We haven’t been able to reproduce this on our end. Are you still encountering this error? Are you accessing CryoSPARC via a proxy or via SSH tunnel?

Please refer to this post re: Apache proxy: Apache Proxy does't work with CryoSPARC v4 - #24 by posertinlab
Other users have reported updating their browser solves the issue: Web interface is unstable and hangs after upgrading to V4.0.2 - #3 by RD_Cryo

- Suhail

Sorry, i was really busy the last weeks and didnt manage to came back to this.

The actual situation ist that we are running v4.0.2 and everything works except:

  • Going to home tab breaks loading of following tabs, we still then need to refresh, cancel refresh, refresh again. This is what i already shown you in the videos
  • Tutorial & Guides and everything doesnt load on home tab.
2022-11-02 09:39:53,897 ERROR | Get EMDB latest entries error:  request to https://www.ebi.ac.uk/emdb/api/search/structure_determination_method:singleparticle?rows=6 failed, reason: connect ETIMEDOUT 193.62.193.80:443 Cu: request to https://www.ebi.ac.uk/emdb/api/search/structure_determination_method:singleparticle?rows=6 failed, reason: connect ETIMEDOUT 193.62.193.80:443
2022-11-02 09:39:53,897 ERROR |     at ClientRequest.<anonymous> (/home/cryosparcuser/cryosparc_master/cryosparc_app/custom-server/dist/server/index.js:911:18735)
2022-11-02 09:39:53,897 ERROR |     at ClientRequest.emit (node:events:526:28)
2022-11-02 09:39:53,897 ERROR |     at TLSSocket.socketErrorListener (node:_http_client:442:9)
2022-11-02 09:39:53,897 ERROR |     at TLSSocket.emit (node:events:526:28)
2022-11-02 09:39:53,897 ERROR |     at emitErrorNT (node:internal/streams/destroy:157:8)
2022-11-02 09:39:53,897 ERROR |     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
2022-11-02 09:39:53,897 ERROR |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2022-11-02 09:39:53,897 ERROR |   type: 'system',
2022-11-02 09:39:53,897 ERROR |   errno: 'ETIMEDOUT',
2022-11-02 09:39:53,897 ERROR |   code: 'ETIMEDOUT',
2022-11-02 09:39:53,897 ERROR |   erroredSysCall: 'connect'
2022-11-02 09:39:53,897 ERROR | }

But as long as we just avoid the home tab, everything works perfect.

We connect vie ssh tunnel. The server has http, https proxy defined in /etc/environment, in capital and non capital. The server has no other way of reaching the outside. Before in version 3+ tutorials and stuff where still loading.

Since you cant reproduce it, could it be that the problems are actually related. That if the home tab cant reach the online sources and gets this errors somehow breaks and then when switching to another view its not loading correctly?
I mean could you just cancel outside connection on your test system so that the tutorials and stuff also is not loading and then try if going to another view then home as shown in the videos is breaking the loading of them?

cheers
Kilian

Hi @KiSchnelle ,

No problem at all, thank you for all the information you’ve provided!

Good news: we’ve identified the issue and have made a fix. It will be available later this week - I’ll post letting you know when you can update.

Thank you!

- Suhail

Hi @KiSchnelle ,

A fix for this is now available in CryoSPARC v4.0.3. Please update when you get a chance.

- Suhail

Hello,

i just updated and i sadly got to inform you that its still the same.

  • first load of home tab is totally normal → clicking on projects will be just white instead of any project shown
  • can be fixed with refresh - cancel refresh - refresh again just like before, then everything works aslong as i avoid home tab
  • going to home tab then will display home tab normally
  • going back to projects will display projects itsself but no content like job images in it, cant open resource manager etc
  • going back to home tab will now not load processing history, job by status etc
  • doing refresh - cancel - refresh now on home tab will disaply it again correctly but then going back to projects its totally white again, just like when at point 1

Edit:
i just had the white projects page open while writing this and it loaded normally suddenly after a few minutes without me doing anything:D

Edit2:
Ok it gets interesting now:D I just timed it several times now:

  • After openening home tab first time or doing refresh-cancel-refresh on it then going to project tab the tab is white
  • content load in everytime roghly after 120s(128 mostly), so theres a timeout in your code i would suspect, if that helps you
  • other cryosparc tabs are also unresponsive in that 120s, for example if i just open a new tab with normal localhost:39000, its stuck loading until that 120s from the first tab are over, and then instantly loads exact at the same time as the project view in the other browser tab

Edit3:
I tried it with 2 different machines, the freezing is local to one machine and one browser in the 120s. I normally use chrome but if i open in the 120s localhost:39000 tab in safari it laods normally. But if i do it generally in safari its the same, so its not a bug just on chrome. (I found also actually that on safari it just needs a normal refresh and not refresh-cancel-refresh as in chrome btw :D)
But in general its reproducible on the other machine.

cheers
Kilian

Hi @KiSchnelle ,

Could you double check you’re running on v4.0.3? We’re pretty confident that the changes introduced in that version resolve the only possible way certain requests from the browser to server result in a timeout (usually after 1-2 minutes as you described).

In order to debug I’ll need more technical information as well - please email us with your logs (cryosparcm snaplogs) and browser diagnostics.

Thanks,
Suhail

Quite confident yes:D

cryosparcuser@kermit103:/sbdata/software/apps/kilian$ cryosparcm update --check
CryoSPARC current version v4.0.3
          update starting on Fri 04 Nov 2022 02:41:04 PM UTC

  current version v4.0.3
      new version v4.0.3

Already up to date.

I will put the logs together and send it to you via mail:)

cheers
Kilian

I got the same issues recently when I updated cryosparc to v4.0.3. I am still waiting for a solution.
Thanks,
Edward

Hi all,

We’ve released a new version today: CryoSPARC v4.1 (December 12, 2022)!

If you’re still having trouble loading the homepage, there’s a configuration variable you can set in cryosparc_master/config.sh to prevent this error from occurring:

export CRYOSPARC_DISABLE_EXTERNAL_REQUESTS="true"

Regards,
Suhail

I recently came across a similar problem after updating to Cryosparc V4.1.2 and for me, switching to a browser other than Firefox seemed to fix the error. Hope this helps someone!