linuxserver / docker-dokuwiki

GNU General Public License v3.0
110 stars 24 forks source link

502 Bad Gateway nginx/1.22.1 #58

Closed rardcode closed 1 year ago

rardcode commented 1 year ago

Is there an existing issue for this?

Current Behavior

Hi to all. Dokuwiki version: version-2022-07-31a

After restart docker, first time i visit dokuwiki appear error:

502 Bad Gateway nginx/1.22.1

I press F5 and start page load correctly.

There are this error in nginx error log:

2023/02/05 20:56:34 [error] 313#313: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins/wikiformatstyling/syntax/nwtag.php on line 48PHP message: PHP Warning: Trying to access array offset on value of type null in /config/dokuwiki/lib/plugins 2023/02/05 20:56:34 [error] 313#313: *1 upstream sent too big header while reading response header from upstream, client: 172.20.0.1, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "wiki.localdomain:8180"

Expected Behavior

Open dokuwiki normaly

Steps To Reproduce

  1. restart docker
  2. open dokuwiki

Environment

- OS: Linux Manjaro DE Plasma
- How docker service was installed:Docker version 20.10.22, build 3a2c30b63a

CPU architecture

x86-64

Docker creation

docker-compose
`
version: "2.1"
services:
  dokuwiki:
    image: linuxserver/dokuwiki:version-2022-07-31a
    container_name: dokuwiki
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Rome
    volumes:
      - ./data:/config
    ports:
      - 8180:80
    restart: unless-stopped
`

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
-------------------------------------

using keys found in /config/keys
chown: cannot access '/config/dokuwiki/lib/images/smileys/local': No such file or directory
**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****
**** The app may not work properly and we will not provide support for it. ****
Existing install found install.php not available
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│  old date  │  new date  │ path                                                                   │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ 2022-08-05 │ 2022-08-20 │ /config/nginx/ssl.conf                                                 │
│ 2021-06-15 │ 2022-08-16 │ /config/nginx/nginx.conf                                               │
│            │ 2022-10-04 │ /config/nginx/site-confs/default.conf                                  │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
[custom-init] No custom files found, skipping...
[ls.io-init] done.
`
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

rardcode commented 1 year ago

Disabling Wiki-Style Script solved problem! Close this issue and open in https://github.com/hokkaidoperson/DokuWiki-WikiFormatStyling-Plugin/issues/3