[GH-ISSUE #1221] NginxUI won't start with custom Nginx instance #667

Closed
opened 2026-02-26 12:09:05 +03:00 by kerem · 4 comments
Owner

Originally created by @Mqxx on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1221

Describe the bug
I am currently trying to use nginx-ui with a custom instance of nginx (tiangolo/nginx-rtmp) but all I am getting when starting is an error saying this:

nginx-service  | 2025/07/07 15:25:55 [emerg] 1#1: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1
nginx-service  | nginx: [emerg] getpwnam("nginx") failed in /etc/nginx/nginx.conf:1

To Reproduce
Copy this docker-compose.yml file and start it:

services:
  nginx-service:
    container_name: 'nginx-service'
    image: 'tiangolo/nginx-rtmp:latest'
    volumes:
      - './data/nginx:/etc/nginx'

    ports:
      - '1935:1935'

    restart: unless-stopped

  nginx-ui:
    container_name: 'nginx-ui'
    image: 'uozi/nginx-ui:latest'
    depends_on:
      - nginx-service

    environment:
      - NGINX_UI_NGINX_CONTAINER_NAME=nginx-service

    ports:
      - '8080:80'
      - '8443:443'

    volumes:
      - './data/nginx:/etc/nginx'
      - './data/nginx_ui:/etc/nginx-ui'
      - '/var/www:/var/www'
      - '/var/run/docker.sock:/var/run/docker.sock'

    stdin_open: true
    tty: true
    restart: unless-stopped

Expected behavior
The image starts without a problem and uses the custom instance of nginx

Info (please complete the following information):

  • Server OS: Ubuntu jammy 22.04
  • Server Arch: aarch64
  • Nginx UI Version: v2.1.12
  • Your Browser: Chrome
Originally created by @Mqxx on GitHub (Jul 7, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1221 **Describe the bug** I am currently trying to use nginx-ui with a custom instance of nginx ([tiangolo/nginx-rtmp](https://github.com/tiangolo/nginx-rtmp-docker)) but all I am getting when starting is an error saying this: ``` nginx-service | 2025/07/07 15:25:55 [emerg] 1#1: getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 nginx-service | nginx: [emerg] getpwnam("nginx") failed in /etc/nginx/nginx.conf:1 ``` **To Reproduce** Copy this `docker-compose.yml` file and start it: ```yml services: nginx-service: container_name: 'nginx-service' image: 'tiangolo/nginx-rtmp:latest' volumes: - './data/nginx:/etc/nginx' ports: - '1935:1935' restart: unless-stopped nginx-ui: container_name: 'nginx-ui' image: 'uozi/nginx-ui:latest' depends_on: - nginx-service environment: - NGINX_UI_NGINX_CONTAINER_NAME=nginx-service ports: - '8080:80' - '8443:443' volumes: - './data/nginx:/etc/nginx' - './data/nginx_ui:/etc/nginx-ui' - '/var/www:/var/www' - '/var/run/docker.sock:/var/run/docker.sock' stdin_open: true tty: true restart: unless-stopped ``` **Expected behavior** The image starts without a problem and uses the custom instance of nginx **Info (please complete the following information):** - Server OS: `Ubuntu jammy 22.04` - Server Arch: `aarch64` - Nginx UI Version: `v2.1.12` - Your Browser: `Chrome`
kerem 2026-02-26 12:09:05 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@z499738316 commented on GitHub (Jul 7, 2025):

Image

<!-- gh-comment-id:3045669843 --> @z499738316 commented on GitHub (Jul 7, 2025): ![Image](https://github.com/user-attachments/assets/ce8f33e4-1a2f-45d8-9ed1-ba71a5f1dee2)
Author
Owner

@Mqxx commented on GitHub (Jul 7, 2025):

How can I create the user?

<!-- gh-comment-id:3045689376 --> @Mqxx commented on GitHub (Jul 7, 2025): How can I create the user?
Author
Owner

@Mqxx commented on GitHub (Jul 7, 2025):

Nevermind I just deleted the user nginx line. Looks like it works now...

<!-- gh-comment-id:3045716398 --> @Mqxx commented on GitHub (Jul 7, 2025): Nevermind I just deleted the `user nginx` line. Looks like it works now...
Author
Owner

@0xJacky commented on GitHub (Jul 8, 2025):

Hello, this is a problem with your nginx configuration, not with the nginx UI.

<!-- gh-comment-id:3046953479 --> @0xJacky commented on GitHub (Jul 8, 2025): Hello, this is a problem with your nginx configuration, not with the nginx UI.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#667
No description provided.