From bc9a94b5ee75d6d4d0d4005b70bbdda2c4a676ff Mon Sep 17 00:00:00 2001 From: pawel Date: Mon, 30 Dec 2019 12:49:00 +0100 Subject: [PATCH 1/3] point to troubleshooting guide on too many open files error --- dvc/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/main.py b/dvc/main.py index 1a29f5874e..991287389f 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -59,7 +59,9 @@ def main(argv=None): except Exception as exc: # pylint: disable=broad-except if isinstance(exc, OSError) and exc.errno == errno.EMFILE: logger.exception( - "too many open files, please increase your `ulimit`", + "too many open files, please visit " + "https://error.dvc.org/many-files to see how to handle this " + "problem", extra={"tb_only": True}, ) else: From d386237d86f6a7cc697bc1c4c351ba4161377923 Mon Sep 17 00:00:00 2001 From: pawel Date: Fri, 3 Jan 2020 09:43:17 +0100 Subject: [PATCH 2/3] main: format link to troubleshooting guide --- dvc/main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dvc/main.py b/dvc/main.py index 991287389f..5c8dc10dec 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -10,11 +10,12 @@ from dvc.exceptions import NotDvcRepoError from dvc.external_repo import clean_repos from dvc.logger import FOOTER - +from dvc.utils import format_link # Workaround for CPython bug. See [1] and [2] for more info. # [1] https://github.com/aws/aws-cli/blob/1.16.277/awscli/clidriver.py#L55 # [2] https://bugs.python.org/issue29288 + "".encode("idna") @@ -60,8 +61,8 @@ def main(argv=None): if isinstance(exc, OSError) and exc.errno == errno.EMFILE: logger.exception( "too many open files, please visit " - "https://error.dvc.org/many-files to see how to handle this " - "problem", + "{} to see how to handle this " + "problem".format(format_link("https://error.dvc.org/many-files")), extra={"tb_only": True}, ) else: From 0fcbfd04cece4d6adb5160ad3f39315471369dba Mon Sep 17 00:00:00 2001 From: pawel Date: Mon, 13 Jan 2020 16:38:24 +0100 Subject: [PATCH 3/3] main: point to error.dvc.org after too many open files error --- dvc/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/main.py b/dvc/main.py index 5c8dc10dec..829908af6b 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -62,7 +62,9 @@ def main(argv=None): logger.exception( "too many open files, please visit " "{} to see how to handle this " - "problem".format(format_link("https://error.dvc.org/many-files")), + "problem".format( + format_link("https://error.dvc.org/many-files") + ), extra={"tb_only": True}, ) else: