Skip to content

Failed Passenger startup with high number of group memberships #2618

@ledo42

Description

@ledo42

Hi. There is a group limitation of the os user used in passenger's user switching feature. If the user exceeds 1024 group memberships, passenger will not start and log:

 [ E 2025-06-26 10:10:41.5457 80006/Tg age/Cor/App/Implementation.cpp:218 ]: Could not spawn process for application /var/local/xxxx/staging/current: getgrouplist(xxxx, 115) failed: No such file or directory (errno=2)

Since the linux limit is normally 65536 (NGROUPS_MAX), it would be great to have an config option to raise the limit for passenger for certain applications.

Metadata

Metadata

Assignees

No one assigned

    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