Skip to content

IndexError in workers/sync.py #1423

Closed
Closed

Description

@berkerpeksag

I got this when I ran gunicorn echo:app from the examples directory:

Traceback (most recent call last):
  File "/home/berker/projects/gunicorn/gunicorn/arbiter.py", line 574, in spawn_worker
    worker.init_process()
  File "/home/berker/projects/gunicorn/gunicorn/workers/base.py", line 140, in init_process
    self.run()
  File "/home/berker/projects/gunicorn/gunicorn/workers/sync.py", line 124, in run
    self.run_for_one(timeout)
  File "/home/berker/projects/gunicorn/gunicorn/workers/sync.py", line 59, in run_for_one
    listener = self.sockets[0]
IndexError: list index out of range

It works as expected if I revert 0be7996.

Activity

  1. added a commit that references this issue on Mar 16, 2018
    7db6c83
  2. added a commit that references this issue on May 29, 2024
    1db805c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions