# Proxy error when downloading folders and files under "Home Directory" of "File" menu in open ondemand

**URL:** <https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480>\
**Category:** Get Help\
**Created:** [May 10, 2024, 9:07am UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480 "2024-05-10T09:07:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy888-333](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jimmy888-333/32/1540_2.png) [@Jimmy888-333](https://discourse.openondemand.org/u/Jimmy888-333)\
**Post date:** [May 10, 2024, 9:07am UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/1 "2024-05-10T09:07:25Z")

</div>

Hi Support,

When I download folders containing 5417 files and 70 sub-folders from “Home Directory” in “Files” menu, with a total size of 1.08GB, I occasionally encounter the following proxy timeout error. For example, when I attempt to download the folder three times, it fails one or two times out of the three.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/2/2b82ad66a03c12538691c298c27c29d4ee281350.png)

This is quite frustrating. Could you please tell me what caused of this problem and suggest potential solutions? For instance, tune the web server settings or adjust the timeout value in OnDemand, etc?

OS Version: Rocky version 8.8  
The Open OnDemand version is 3.0.3

Thanks

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 10, 2024, 1:32pm UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/2 "2024-05-10T13:32:06Z")

</div>

I’ll have to try to replicate, but I’d ask what you see in both the apache logs and the ondemand-nginx logs to indicate what the error may have been.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 10, 2024, 7:40pm UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/3 "2024-05-10T19:40:45Z")

</div>

🤦‍♂️ I don’t have to replicate or see errors - I misread the error in your very first post. It’s failing to determine the directory size using `du`. So I’d guess it’s an issue of your machine querying the filesystem (again through `du`).

This du command times out after 5 seconds which is what’s throwing this error for you. Turns out, there’s a configuration `OOD_DOWNLOAD_DIR_TIMEOUT_SECONDS` which you can use in your `env` file to set that to 10 or similar.

---

<div class="post-metadata">

**Author:** ![Jimmy888-333](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jimmy888-333/32/1540_2.png) [@Jimmy888-333](https://discourse.openondemand.org/u/Jimmy888-333)\
**Post date:** [May 16, 2024, 1:53am UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/4 "2024-05-16T01:53:37Z")

</div>

Hi Jeff,

Thanks for your reply. And, I tried this using the following steps but the proxy error still exists,

1. On Open OnDemand server, using ssh terminal, login as my account and go to my home directory
2. Enter a command “echo $SHELL”
3. Confirmed “/usr/bin/bash” is used
4. Enter a command “nano .bashrc”
5. Enter “export OOD\_DOWNLOAD\_DIR\_TIMEOUT\_SECONDS=300” in the .bashrc file
6. Logout and Login
7. Enter a command “echo $OOD\_DOWNLOAD\_DIR\_TIMEOUT\_SECONDS” to confirm the setting is applied (e.g. 300 sec)
8. Go to Files menu to download the folder again
9. The proxy error still exists  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/f/f9927f840d59604243981923ad3262bba1e58d79.png)

Could you please check my steps are correct and how to solve this issue? Thanks

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [May 16, 2024, 1:18pm UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/5 "2024-05-16T13:18:11Z")

</div>

It’s not your `.bashrc` you need to modify. It’s the system’s environment config at `/etc/ood/config/apps/dashboard/env`.

See here for a similar config on limiting the size of downloads.

[https://osc.github.io/ood-documentation/latest/customizations.html?#set-download-limits](https://osc.github.io/ood-documentation/latest/customizations.html?#set-download-limits)

---

<div class="post-metadata">

**Author:** ![Jimmy888-333](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jimmy888-333/32/1540_2.png) [@Jimmy888-333](https://discourse.openondemand.org/u/Jimmy888-333)\
**Post date:** [May 21, 2024, 8:44am UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/6 "2024-05-21T08:44:59Z")

</div>

Hi Jeff,

Thanks for your reminder.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [November 17, 2024, 8:45am UTC](https://discourse.openondemand.org/t/proxy-error-when-downloading-folders-and-files-under-home-directory-of-file-menu-in-open-ondemand/3480/7 "2024-11-17T08:45:06Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
