Shaarli: Suddenly 502 Bad Request error

My YunoHost server

Hardware: VPS bought online
YunoHost version: 4.0.8.3
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I have been using Shaarli actively for some weeks, but today suddely I got a 502 error when visiting my Shaarli page.

I have several such error messages:

FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: urlencoded_taglist in /var/www/shaarli/tmp/linklist.b91ef64efc3688266305ea9b42e5017e.rtpl.php on line 259

But I wonder if this one here might be the reason:

39 upstream sent too big header while reading response header from upstream, client: xxx.xx.xxx.xx, server: domain.com, request: "GET /shaarli/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm-shaarli.sock:", host: "domain.com"

When googling, I found - among others, this suggestion here https://markshust.com/2020/01/02/resolving-upstream-sent-too-big-header-error-nginx/ and https://ma.ttias.be/nginx-proxy-upstream-sent-big-header-reading-response-header-upstream/

What do you think? Thanks!

I could not help trying some solutions. This helped

I looked for the http part in nginx.conf and changed it like this:

http {
    fastcgi_buffers 16 16k; 
    fastcgi_buffer_size 32k;

Then Shaarli suddely worked again

1 Like

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