question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Don't allow submitting of huge files

See original GitHub issue

@ellisonbg apparently had a student submit a 1TB file which filled up the drive of the server and crashed it. It seems like it would be worthwhile for nbgrader submit to check the file size and either exclude files that are very large or at least prompt the user “are you sure?”

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rkdarstcommented, May 31, 2019

Deduplicating sounds interesting but as jhamrick says, easier said than done.

This made me realize there are two use cases (at least for us), which means there may need to be two separate ways to configure:

Copying data files to the student, which are needed to run the assignment. My recommendation to teachers for our system is to not do this, use a shared course data directory that is mounted in all student environments. However, this makes copying assignments out for running harder because the assignment directory is not self-contained.

Second is coping things back to the instructors. We have one course whose notebooks train machine learning models and write the models to files. These need to be copied back to the instructors (but not the data files!).

And of these cases, none of them need to be copied back yet again for the feedback step.

So for each of these steps, there are possible size limits, blacklists, whitelists, etc…

(And as a bonus, make the student-side and possibly insturctor side configurable without nbgrader_config.py… this configuration somehow embedded in the assignment directories…)

0reactions
rkdarstcommented, May 31, 2019

Note from @sefriol: if data gets copied to students and back, students can modify it which may affect the grading process…

Read more comments on GitHub >

github_iconTop Results From Across the Web

File upload form does not work with large files - Stack Overflow
A few text inputs, a file upload input, a reCAPTCHA, and a submit button. Under normal use, I can upload a small file...
Read more >
About large files on GitHub
GitHub limits the size of files you can track in regular Git repositories. Learn how to track or remove files that are beyond...
Read more >
11 Best Ways to Transfer, Share or Send Large Files in 2022
Discover the 11 Best Ways to Transfer, Send or Share large files. Pros & Cons, Free & Paid tools. Services you can start...
Read more >
Send large files with Outlook - Microsoft Support
Send large files by using file sharing, cloud services, or other solutions for working around file size limits in Outlook.
Read more >
Gmail attachment limit: 3 simple ways to send large files
How? If you're using Windows, simply right-click the file, select 'Send to' , and then choose the 'Compressed (zipped) folder'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found