Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SERVICES] INFO: Failed to start nscd #4743

Open
1 task done
RavHilton opened this issue May 7, 2024 · 3 comments
Open
1 task done

[SERVICES] INFO: Failed to start nscd #4743

RavHilton opened this issue May 7, 2024 · 3 comments
Labels
area:deployment related to how uptime kuma can be deployed bug Something isn't working

Comments

@RavHilton
Copy link

RavHilton commented May 7, 2024

πŸ“‘ I have found these related issues/pull requests

no response

πŸ›‘οΈ Security Policy

Description

In "Settings":
Enable NSCD (Name Service Cache Daemon) for caching all DNS requests: Enabled

In Logs:

[SETTINGS] INFO: Chrome executable is changed. Resetting Chrome...
[SERVICES] INFO: Starting nscd
[SERVICES] INFO: Failed to start nscd

If I shell into the Docker container, I can manually start nscd with no issues.

πŸ‘Ÿ Reproduction steps

Current Docker container, using Compose, it does this all the time when "Enable NSCD" is set - disabling it in Settings obviously results in the container starting without this error message.

πŸ‘€ Expected behavior

NSCD would start when enabled

πŸ˜“ Actual Behavior

[SETTINGS] INFO: Chrome executable is changed. Resetting Chrome...
[SERVICES] INFO: Starting nscd
[SERVICES] INFO: Failed to start nscd

🐻 Uptime-Kuma Version

1.23.13

πŸ’» Operating System and Arch

Docker

🌐 Browser

Opera, Chrome, Edge, Firefox

πŸ–₯️ Deployment Environment

Host: Synology DS1823xs+
Environment: Container Manager
Management: Portainer CE 2.19.5

services:
  uptime-kuma:
    image: louislam/uptime-kuma:1
    container_name: uptime-kuma
    restart: unless-stopped
    environment:
      PUID: 1026
      PGID: 100
      TZ: Australia/Brisbane
    volumes:
      - /volume1/docker/uptime-kuma:/app/data
    networks:
      default:
        ipv4_address: 10.24.20.71
#        ports:
#          - 3001:3001

networks:
  default:
    name: macvlan-br0
    external: true

πŸ“ Relevant log output

[SETTINGS] INFO: Chrome executable is changed. Resetting Chrome...
[SERVICES] INFO: Starting nscd
[SERVICES] INFO: Failed to start nscd
@RavHilton RavHilton added the bug Something isn't working label May 7, 2024
@chakflying
Copy link
Collaborator

I'm guessing setting the user ID is causing it to not have the correct permissions to start the service.

@CommanderStorm CommanderStorm added the area:deployment related to how uptime kuma can be deployed label May 7, 2024
@RavHilton
Copy link
Author

That is the UID/GID that Docker runs under, and 29 other containers run under without any issues. However when I comment these out Uptime Kuma can load nscd when it boots.

Hhmmm, does that mean I shouldn't set the PUID/PGID for Uptime Kuma even though it works fine for a heap of other containers, or is there something either a) needing changed in the official Uptime Kuma container, or b) I've missed in the docs/config?

@CommanderStorm
Copy link
Collaborator

does that mean I shouldn't set the PUID/PGID for Uptime Kuma

Nscd is not configured to support changing the PUID/PGID to an unpriviliged user.

needing changed in [...] Uptime Kuma

This subsystem not properly using the environment variable is a bug. (PRs welcome)

Note

The image currently only fully supports root-level-users (see #4500 for further details).
Could be documented better as with most edge case configurations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:deployment related to how uptime kuma can be deployed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants