Unable to Navigate the Portal while Downloading Folders or Files

Hello everyone,

When I initiate a download operation in the Files app, I am unable to navigate the portal. It hangs and eventually fails with proxy error. As soon as the download completes, I am able to navigate without any issues. The issue is similar to the one described below.
Proxy error during downloading folders and files - Get Help - Open OnDemand

Please note that this is specific for download operation. Upload operation works correctly.

We are using OnDemand version 4.1.4, running in OS AlmaLinux 9.7

Thank you in advance for the support.

Best regards.
Pedro D.R. Santos

Hi Pedro,

Unfortunately I can’t seem to replicate on OSC systems running 4.1.4, although I do see a spinner pop up while the server processes the download. Is this the piece it gets stuck on or does the spinner close but navigation to other pages is still blocked?

Another detail that could be helpful, do you experience this when downloading files or folders or both?

Thanks for the reply @bsingleton. It happens for the download of both files and folders (folders are zipped automatically). I don’t see any spinner when downloading. The download starts instantly and I can follow it in the downloads tab of my browser.

I am using Microsoft Edge browser and I have download and upload limit set to 20GB.

Could this be due to an issue in nginx the configuration? To me it looks like the download is blocking the PUN process, which is unable to process any other requests until the download completes or is cancelled.

Thank again for your help.

Hi @jeff.ohrstrom, any chance you can provide your feedback? Thanks.

Yea I can replicate and imagine this is the issue as well. One would think the app is multithreaded to be able to handle things like this - but I guess not.

I am now reading that multi-threading is only available in passenger enterprise versions…

Thanks @jeff.ohrstrom for the confirmation. Any ideas for a workaround or a potential fix to allow parallel downloads? The upload functionality works really well. Maybe the download could be updated/refactored to use the same logic as the upload?

Thanks again for your help.

Maybe? I’m not entirely sure because I think uploads are handled by rack & nginx at first, then the rails webserver once it’s complete.

@jeff.ohrstrom should I create a feature request / issue in GitHub? Thanks!

Sure! I think that’s the best route.

Thanks @jeff.ohrstrom. I have just created the following issue: Unable to Navigate the Portal while Downloading Folders or Files · Issue #5416 · OSC/ondemand