Skip to content

Nginx does not run #1

Closed
Closed

Description

@nlacasse

Depending on the configuration, you may see nginx fail with the error:

ioctl(FIOASYNC) failed while spawning "worker process" (25: Inappropriate ioctl for device)

Support for FIOASYNC is in progress, but it’s not available yet. For now, add
the line below to /etc/nginx/nginx.conf:

master_process off;

Activity

  1. seeekr commented on May 18, 2018

    @seeekr
    Contributor

    Am I correct in assuming that this will potentially make nginx behave in unexpected ways and thus it is not something one should attempt for any somewhat serious use of nginx + gvisor?

    To quote the nginx docs at http://nginx.org/en/docs/ngx_core_module.html#master_process:

    Syntax: | master_process on \| off;
    -- | --
    master_process on;
    main
    
    Determines whether worker processes are started. This directive is intended for nginx developers.
    
  2. nlacasse commented on Jun 5, 2018

    @nlacasse
    ContributorAuthor

    I'm not totally sure what the "master_process" directive does, but the docs do state that it should not be used in production.

    http://nginx.org/en/docs/faq/daemon_master_process_off.html

    We are still working on the FIOASYNC support, at which point this workaround will not be necessary.

  3. tirumaraiselvan commented on Jun 22, 2018

    @tirumaraiselvan

    Is there an example to repro this behaviour? I am not having an issue with nginx:latest.

  4. nlacasse commented on Jun 22, 2018

    @nlacasse
    ContributorAuthor

    gVisor now supports FIOASYNC ioctl. I just verified that nginx runs without the "master_process: off" directive.

  5. added a commit that references this issue on Apr 27, 2020
  6. added a commit that references this issue on May 12, 2020
  7. added a commit that references this issue on Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions