Organizr / docker-organizr

Docker image for Organizr
GNU General Public License v3.0
96 stars 12 forks source link

Startup error after php8 update #34

Closed Re4zOon closed 11 months ago

Re4zOon commented 11 months ago

Hi,

For some reason the change of root/defaults/default messed up the config. The fastcgi_pass was doulbed in the config files:

nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/healthcheck:20

fastcgi_pass fastcgi_pass unix:/var/run/php8-fpm.sock;
Re4zOon commented 11 months ago

@Roxedus

Re4zOon commented 11 months ago

https://github.com/Organizr/docker-organizr/commit/0720eaf155a88251062cda244a8beaa91218a689

Roxedus commented 11 months ago

Should already be fixed.

Re4zOon commented 11 months ago

Cool! :)

SonosMiro commented 11 months ago

I'm getting the same error but also this one:

fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr

Full Log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    999
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-setup: executing... 
**** Permissions could not be set. Group is missing or incorrect, expecting user:group. ****
[cont-init.d] 30-setup: exited 0.
[cont-init.d] 40-install: executing... 
-----------------------
|  Updating Organizr  |
-----------------------
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr
Adding cron now...
[cont-init.d] 40-install: exited 0.
[cont-init.d] 50-debug: executing... 
-----------------------
|     Kernel Info     |
-----------------------
Linux 1a6361532273 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 GNU/Linux
Time Zone: Europe/Brussels
[cont-init.d] 50-debug: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
nginx: [emerg] invalid number of arguments in "fastcgi_pass" directive in /config/nginx/site-confs/default:31
Roxedus commented 11 months ago

Need more context. like your compose/run Also the output of docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q) 2023-11-30_10

SonosMiro commented 11 months ago

@Roxedus

Compose file:


    container_name: organizr
    restart: always
    image: ghcr.io/organizr/organizr
    volumes:
      - ${USERDIR}/docker/organizr:/config
      - ${USERDIR}/docker/shared:/shared
    ports:
      - "9200:80"
    restart: always
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}```

Second command gives me: Error: No such object: 2023-11-30_10 (Which isn't correct, I think.)
mishac commented 11 months ago

I think the 2023-11-30_10 is actually the output of the command, not part of the command to run. Or at least I get 2023-11-30_10 when I run the rest of the command.

docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q)

output:

2023-11-30_10
mishac commented 11 months ago

I'm not OP but I'm having the same issue, and here's the relevant section of compose:

organizr:
    container_name: organizr
    environment:
        PGID: '1001'
        PUID: '1001'
        TZ: America/New_York
        branch: master
        fpm: 'true'
    image: ghcr.io/organizr/organizr
    labels:
        ...
    networks:
    - traefik_web
    - internal
    restart: always
    volumes:
    - /etc/localtime:/etc/localtime:ro
    - /config/mediacenter/organizr:/config
SonosMiro commented 11 months ago

I think the 2023-11-30_10 is actually the output of the command, not part of the command to run. Or at least I get 2023-11-30_10 when I run the rest of the command.

docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q)

output:

2023-11-30_10

Ah, yes then I get the same: docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q)

Response: 2023-11-30_10 `

0nnyx commented 11 months ago

Had the same issue as @SonosMiro and doesn't seem corrected by the last commit. Manually edit with nano /config/nginx/site-confs/default and /config/nginx/site-confs/healthcheck

Change fastcgi_pass fastcgi_pass unix:/var/run/php8-fpm.sock; to fastcgi_pass unix:/var/run/php8-fpm.sock;

mishac commented 11 months ago

@0nnyx 's change worked for me.

SonosMiro commented 11 months ago

Had the same issue as @SonosMiro and doesn't seem corrected by the last commit. Manually edit with nano /config/nginx/site-confs/default and /config/nginx/site-confs/healthcheck

Change fastcgi_pass fastcgi_pass unix:/var/run/php8-fpm.sock; to fastcgi_pass unix:/var/run/php8-fpm.sock;

Worked for me as well!

Still get this error:

fatal: detected dubious ownership in repository at '/config/www/organizr'
To add an exception for this directory, call:
    git config --global --add safe.directory /config/www/organizr

But at least it's working again :D

Roxedus commented 11 months ago

New build pushed, please provide the value of docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q) if it still doesnt behave.

mishac commented 11 months ago

Working for me but I'm still getting the fatal: detected dubious ownership in repository at '/config/www/organizr' message. Not sure if that's related or not, or if it's always been there.

Edit. In case you need it:

docker inspect -f '{{ index .Config.Labels "org.opencontainers.image.created"}}' $(docker image ls ghcr.io/organizr/organizr -q)

2023-11-30_12
SonosMiro commented 11 months ago

Same as @mishac.

Although when I run the command I get:

2023-11-30_12
2023-11-30_10
Roxedus commented 11 months ago

new build (same label)