Skip to content

[BUG] Cannot start container due to incorrect permissions in PHP config #96

Description

@ranisalt

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently, when starting a brand new container without existing configuration in rootless Podman, this prints every second and the service never starts up:

[05-Jun-2025 00:05:59] ERROR: failed to open configuration file '/etc/php83/php-fpm.conf': Permission denied (13)
[05-Jun-2025 00:05:59] ERROR: failed to load configuration file '/etc/php83/php-fpm.conf'
[05-Jun-2025 00:05:59] ERROR: FPM initialization failed

Expected Behavior

The server should start

Steps To Reproduce

With the following Podman quadlet grocy.container:

[Container]
Environment=PGID=1000
Environment=PUID=1000
Environment=TZ=Europe/Stockholm
Image=lscr.io/linuxserver/grocy:latest
PublishPort=9283:80/tcp
Volume=%E/%N:/config

[Service]
Restart=always

With an empty folder at $HOME/.config/grocy (where %E/%N will resolve)

Environment

- OS: Arch Linux
- How podman* service was installed: pacman (distro package manager)

CPU architecture

x86-64

Docker creation

/usr/bin/podman run --name grocy --cidfile=/run/user/1000/grocy.cid --replace --rm --cgroups=split --sdnotify=conmon -d -v /home/rsa/.config/grocy:/config --publish 9283:80/tcp --env PGID=1000 --env PUID=1000 --env TZ=Europe/Stockholm lscr.io/linuxserver/grocy:latest

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v4.5.0-ls293
Build-date: 2025-05-18T07:48:03+00:00
───────────────────────────────────────

using keys found in /config/keys
[custom-init] No custom files found, skipping...
[05-Jun-2025 00:07:29] ERROR: failed to open configuration file '/etc/php83/php-fpm.conf': Permission denied (13)
[05-Jun-2025 00:07:29] ERROR: failed to load configuration file '/etc/php83/php-fpm.conf'
[05-Jun-2025 00:07:29] ERROR: FPM initialization failed
[ls.io-init] done.
[05-Jun-2025 00:07:30] ERROR: failed to open configuration file '/etc/php83/php-fpm.conf': Permission denied (13)
[05-Jun-2025 00:07:30] ERROR: failed to load configuration file '/etc/php83/php-fpm.conf'
[05-Jun-2025 00:07:30] ERROR: FPM initialization failed
[05-Jun-2025 00:07:31] ERROR: failed to open configuration file '/etc/php83/php-fpm.conf': Permission denied (13)
[05-Jun-2025 00:07:31] ERROR: failed to load configuration file '/etc/php83/php-fpm.conf'
[05-Jun-2025 00:07:31] ERROR: FPM initialization failed
[05-Jun-2025 00:07:32] ERROR: failed to open configuration file '/etc/php83/php-fpm.conf': Permission denied (13)
[05-Jun-2025 00:07:32] ERROR: failed to load configuration file '/etc/php83/php-fpm.conf'
[05-Jun-2025 00:07:32] ERROR: FPM initialization failed


(repeats indefinitely)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions