Dokuwiki only sends CSS once

Hi,

I just switched my old dokuwiki container (not updated anymore) to the LSIO one. Migration went fine (dokuwiki is easy that way), but I encountered a problem with the CSS (and JS):

After (re)starting the container I can open the page just fine, until I try to reload it without cache (shift reload). It won’t load the CSS (/lib/exe/js.php?t=dokuwiki&tseed=34f3731213ec82a57c66df30f22d9009) no more. To make sure that it’s not my reverse proxies fault (traefik), I mapped port 80 to the machine and curl encounters the same problem: After restart of the container I can fetch the CSS with curl 'http://localhost:22080/lib/exe/js.php?t=dokuwiki&tseed=34f3731213ec82a57c66df30f22d9009', if I rerun the command it sends 200, but doesn’t send the file. (If I do the same on another dokuwiki installation, it sends the css file each time I run curl…)

This is the first try, that worked, I cut the CSS though:

# curl -v 'http://localhost:22080/lib/exe/css.php?t=dokuwiki&tseed=3be90b2705f894152b1f8fbdef69179c'
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 22080 (#0)
> GET /lib/exe/css.php?t=dokuwiki&tseed=3be90b2705f894152b1f8fbdef69179c HTTP/1.1
> Host: localhost:22080
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx
< Date: Tue, 06 Sep 2022 07:59:50 GMT
< Content-Type: text/css; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/8.0.18
< Vary: Cookie
< Cache-Control: public, max-age=31536000
< Pragma: public
< Last-Modified: Tue, 06 Sep 2022 07:59:49 GMT
< ETag: "c0e9229af52db470f4f5e41d6806cc64"
<

And this is the second try, where I didn’t get the CSS back. The X-LIGHTTPD-send-file seems to be the only difference to me:

# curl -v 'http://localhost:22080/lib/exe/css.php?t=dokuwiki&tseed=3be90b2705f894152b1f8fbdef69179c'
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 22080 (#0)
> GET /lib/exe/css.php?t=dokuwiki&tseed=3be90b2705f894152b1f8fbdef69179c HTTP/1.1
> Host: localhost:22080
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx
< Date: Tue, 06 Sep 2022 07:59:53 GMT
< Content-Type: text/css; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/8.0.18
< Vary: Cookie
< Cache-Control: public, max-age=31536000
< Pragma: public
< Last-Modified: Tue, 06 Sep 2022 07:59:50 GMT
< ETag: "9c51430acd2b5616d6aa4f4c4c60658c"
< X-LIGHTTPD-send-file: /app/www/public/data/cache/9/98e9b6d787a5218967dc7d4e29f7b71a.css
<

Anybody got an idea? Logs in config/logs show nothing unusal. Only the following, but that also occurs with a successful request

2022/09/06 10:14:38 [error] 230#230: *60 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "dontlog" in /app/www/public/inc/Logger.php on line 35" while reading response header from upstream, client: 172.21.0.1, server: _, request: "GET /taglist HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000"

Problem was in my dokuwiki config, I had sendfile activated, that the nginx here hadn’t activated. Deactivated everything works fine. :+1:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.