Skip to content

Checking fragments in local files results in 'Cannot read input content from' errors and eventually 'Too many open files' #1709

@honzajavorek

Description

@honzajavorek

I'm experiencing this issue when checking a local folder with a statically generated website:

...
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/courses/edx
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/courses/skillmea
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/handbook/cv
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/courses/codingbootcamppraha
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/courses/kurzyvsb
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/courses/42prague
   [WARN ] Skipping fragment check due to the following error: Cannot read input content from stdin
     [200] file:///Users/honza/Projects/juniorguru/public/handbook/projects
Error: Cannot read input content from file `public/courses/naucmeit/index.html`

Caused by:
    Too many open files (os error 24)

The folder reportedly contains '1604 items' according to macOS Finder's info table, not sure whether it's just files or directories counted as well. All the files do exist:

$ ls public/courses/naucmeit/index.html
public/courses/naucmeit/index.html

Also with the Cannot read input content from stdin the warning is not very helpful as I'm unable to trace down even to which link this refers to so that I could pinpoint the problem.

It's the nightly version, which I've got by downloading and unpacking https://github.com/lycheeverse/lychee/releases/download/nightly/lychee-arm64-macos.tar.gz

$ lychee --version
lychee 0.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions