awesometic / docker-h5ai

Lightweight h5ai 0.30.0 container with Nginx 1.21 & PHP 8 based on Alpine Linux.
Other
137 stars 25 forks source link

fatel error #12

Closed hereisderek closed 2 years ago

hereisderek commented 2 years ago

not sure if h5ai is not compatible with rclone mount

docker-compose.yml

version: '3.5'

services:
  h5ai:
    image: awesometic/h5ai
    container_name: h5ai
    restart: unless-stopped
    depends_on: 
      - rclone
    logging:
      options:
        max-size: "10m"
        max-file: "3"
    env_file:
      - .env
      - .env.rclone
    environment:
      - TZ=${TZ}
      - PUID=${PUID}
      - PGID=${PGID}
    ports:
      - 5573:80
    volumes:
      - /etc/passwd:/etc/passwd:ro
      - /etc/group:/etc/group:ro
      - /etc/localtime:/etc/localtime:ro
      - ./config/h5ai:/config
      - /mnt/rclone/mnt:/h5ai:shared
Variables:
        - PUID=1000
        - PGID=1000
        - TZ=Pacific/Auckland
        - HTPASSWD=false
        - HTPASSWD_USER=guest
        - HTPASSWD_PW=
Make config directories...
useradd: cannot open /etc/passwd
groupmod: group 'abc' does not exist
usermod: user 'abc' does not exist
Add dummy user for better handle permission...
Check configuration files for Nginx...
User setup files found: /config/nginx/h5ai.conf
Remove image's default setup files and copy the previous version...
Check configuration files for h5ai...
User setup files found: /config/h5ai/_h5ai
Check if h5ai version updated...
Remove image's default setup files and copy the existing version...
Set permission for caching...
Fix ownership for Nginx and php-fpm...
Set ownership to the configuration files...
chown: unknown user/group abc:abc
Start supervisord...
2021-10-13 02:31:02,555 INFO Set uid to user 0 succeeded
2021-10-13 02:31:02,557 INFO supervisord started with pid 35
2021-10-13 02:31:03,561 INFO spawned: 'nginx' with pid 36
2021-10-13 02:31:03,565 INFO spawned: 'php-fpm' with pid 37
2021/10/13 02:31:03 [emerg] 36#36: getpwnam("abc") failed in /etc/nginx/nginx.conf:2
nginx: [emerg] getpwnam("abc") failed in /etc/nginx/nginx.conf:2
2021-10-13 02:31:03,620 INFO exited: nginx (exit status 1; not expected)
[13-Oct-2021 02:31:03] ERROR: [pool www] cannot get uid for user 'abc'
[13-Oct-2021 02:31:03] ERROR: FPM initialization failed
2021-10-13 02:31:03,634 INFO gave up: nginx entered FATAL state, too many start retries too quickly
2021-10-13 02:31:03,635 INFO exited: php-fpm (exit status 78; not expected)
2021-10-13 02:31:04,637 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
awesometic commented 2 years ago

Hello.

I haven't tried with the rclone mounted directory. How can I set the rclone mount? How did you? If you let me know then I can test that.

In my short thought it should work anyway. And there's something strange thing on your logs, your Nginx couldn't find the user "abc" but that dummy user is created by the initial script that is automatically executed.

awesometic commented 2 years ago

Hi,

I will close this issue since there has been no activity here for over 6 months. Please make a new issue if you face a problem.