Large home folders

Hey guys,

I got curious when I saw an error.log foudn in /var/log/ondemand-nginx/. It looks like the entire log is from one day attempting to access somebody’s home folder and they keep receiving a 502 proxy error returned.

One of my students attempted to troubleshoot by removing his session and having him clear the browser cache. Same issue. I had an immediate feeling this was due to an anomaly in the user home folder and I’m pretty sure I found. I don’t think I’ve ever seen a more just cause to ask someone to take some business file organization skills class. As far as I can tell he has never used a mkdir and cd command his entire collegiate career. He hasn’t left his home folder since November of 2021 and has accumulated 12,104 files. I have no doubt this is at the core of the issue, but it got me curious to know if there is a limit set and if we could “trap” before attempting that and show them a courteous message of “Please manage your home folder, it has far too many files to show you here.” I have the feeling that the file manager is crashing and ending with a weird truncated message that the http server is interpreting as a proxy issue.

Good to see you last week. Happy Thanksgiving Weekend :slight_smile:

Kenny

Yes your understanding of the issue is correct - there are too many files causing the app to crash. Unfortunately this is just the way it is. We’re thinking of schemes to avoid this - but they’re all complicated so we can’t fix it any time soon really.