Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause gracefully if OSError (No space left on device) #206

Open
TheTechRobo opened this issue Oct 30, 2021 · 4 comments
Open

Pause gracefully if OSError (No space left on device) #206

TheTechRobo opened this issue Oct 30, 2021 · 4 comments
Assignees

Comments

@TheTechRobo
Copy link
Contributor

Instead of crashing the crawl, why don't we simply pause and retry every so often if the computer has no space left?

@ivan
Copy link
Contributor

ivan commented Oct 31, 2021

I believe wpull and ludios_wpull do this if psutil is installed (psutil>=2.0,<=4.2 is in its requirements). I think I didn't include the requirement in grab-site for compatibility with Windows or macOS? Not sure.

https://github.com/ArchiveTeam/grab-site/blob/6269289a2ca874bae52f116016ca54dc8887d0cc/extra_docs/pause_resume_grab_sites.sh is the workaround I use to avoid crashes right now.

I agree this should be better and work by default.

@TheTechRobo
Copy link
Contributor Author

Well, a 50GB crawl I had crashed. :/

Just installed it for the future.

@TheTechRobo
Copy link
Contributor Author

TheTechRobo commented Nov 2, 2021

Nope, didn't do anything. I have psutil yet my 33GB crawl just crashed because I ran out of space.

@TheTechRobo
Copy link
Contributor Author

Where does this error pop up, I can't remember but I want to fix this.

Do you think just putting it in a try block would work and catch OSErrors, and pause the crawl, or should we do something else?

@HeliosLHC HeliosLHC self-assigned this Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants