You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Nico Kruber (JIRA)" <ji...@apache.org> on 2019/06/27 14:03:00 UTC

[jira] [Commented] (FLINK-13018) Serving docs locally with jekyll fails with inotify limit

    [ https://issues.apache.org/jira/browse/FLINK-13018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16874172#comment-16874172 ] 

Nico Kruber commented on FLINK-13018:
-------------------------------------

There was some (very old) discussion around this issue at rb-inotify which contained an interesting quote
{quote}
16:11 <Defusal> now i can't even test anymore, rb-inotifier does not automatically close inotify handles, so if you dont manually do it, such as when the app doesn't exit cleanly, the handles are left open on the kernel forever...
16:11 <Defusal> so now its maxed out my user limit for inotify
16:11 <Defusal> Exception: Too many open files - Failed to initialize inotify: the user limit on the total number of inotify instances has been reached.
16:13 <Defusal> so between EventMachine crashing ruby and rb-inotifier, it's really screwed me over
{quote}

Now, it seems like 0.10.0 uses a different way of working with IO resources and cleaning them up - upgrading this dependency may be a (far-fetched) solution. Also, it could be anything on your system starting inotify instances which could cause this failure.

> Serving docs locally with jekyll fails with inotify limit
> ---------------------------------------------------------
>
>                 Key: FLINK-13018
>                 URL: https://issues.apache.org/jira/browse/FLINK-13018
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.9.0
>            Reporter: Nico Kruber
>            Assignee: Nico Kruber
>            Priority: Major
>
> Both {{build-docs.sh -i}} and {{build-docs.sh -p}} currently fail (also in the dockerized builds in {{docs/docker}}):
> {code}
> $ ./build_docs.sh -p
> Fetching gem metadata from https://rubygems.org/..........
> ...
> Bundle complete! 8 Gemfile dependencies, 36 gems now installed.
> Bundled gems are installed into `./.rubydeps`
> Configuration file: /home/nico/Projects/flink/docs/_config.yml
>             Source: /home/nico/Projects/flink/docs
>        Destination: /home/nico/Projects/flink/docs/content
>  Incremental build: disabled. Enable with --incremental
>       Generating... 
>                     done in 167.943 seconds.
> jekyll 3.7.2 | Error:  Too many open files - Failed to initialize inotify: the user limit on the total number of inotify instances has been reached.
> {code}
> I wouldn't suggest working around by setting a higher inotify limit but upgrading jekyll did not solve it and so far there are two options:
> # disable watching files via {{--no-watch}}
> # use polling instead of `inotify` via `--force_polling`
> # try to reduce the set of files by adding excludes for (expected) static files



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)