Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/static/docs/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
"label": "Running DVC on Windows",
"slug": "running-dvc-on-windows"
},
"troubleshooting",
{
"label": "Anonymized Usage Analytics",
"slug": "analytics"
Expand Down
18 changes: 18 additions & 0 deletions public/static/docs/user-guide/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Troubleshooting

In this section we provide help for some of the problems that DVC user might
stumble upon.

<!-- Hardcoded id for error.dvc.org/many-files -> #many-files redirect -->
<h2 id="many-files">Too many open files error</h2>

A known problem some users run into with the `dvc pull`, `dvc fetch` and
`dvc push` commands is `[Errno 24] Too many open files` (most common for S3
remotes on MacOS). The more `--jobs` specified, the more file descriptors need
to be open on the host file system for each download thread, and the limit may
be reached, causing this error.

To solve this, it's often possible to increase the open file descriptors limit,
with `ulimit` on UNIX-like system (for example `ulimit -n 1024`), or
[increasing Handles limit](https://blogs.technet.microsoft.com/markrussinovich/2009/09/29/pushing-the-limits-of-windows-handles/)
on Windows. Otherwise, please try using a lower `JOBS` value.
7 changes: 7 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ app.prepare().then(() => {
: pathname)
})
res.end()
} else if (req.headers.host === 'error.dvc.org') {
// error.dvc.org/{hdr} -> dvc.org/doc/user-guide/troubleshooting#{hdr},
res.writeHead(303, {
'Cache-Control': 'no-cache',
Location: 'https://dvc.org/doc/user-guide/troubleshooting#' + pathname
})
res.end()
} else if (/^(code|data|remote)\.dvc\.org$/.test(req.headers.host)) {
// {code/data/remote}.dvc.org -> corresponding S3 bucket
res.writeHead(301, {
Expand Down