cant logout of Nextcloud

Hiho,

fresh install with RPi-Buster img.
Installed Pihole, No-IP and Nextcloud (in that order).
everything is working except logout of Nextcloud.
on logout nc shows a error page wit “access denied” and “CSRF check failed”.
Url in browser shows

http://192.168.1.11/nextcloud/index.php/logout?requesttoken=VbNCNeVRIABxnkBo5Qrdz16lXbQF%2FhVNhXsDz84i%2F%2F4%3D%3AEdw4ZKEGVWU39DFHoGia%2ByrrZO1dl20ksRNvmbwVkbI%3D

any tips what the problem could be?

Hi,

it seems to be a NextCloud issue. So might be better to report if over there. I just googled for the error message and already found some entries.

After 4 hours of searching the web i found a solution.

it seems lighttpd is the problem.

ind the lighttpd.conf the line

"url-normalize-required"  => "enable",# recommended

needs to be chanced to

#"url-normalize-required"  => "enable",# recommended

as far as i understood the problem lighttpd changes “+” symbols into spaces in the token so nextcloud thinks the url was manipulated and doesnt accept it.

source

Thank you!
After correction in lighttpd.conf, you have to restart lighttpd:
/etc/init.d/lighttpd restart

just for reference a GitHub post related to it

https://github.com/MichaIng/DietPi/issues/3312#issuecomment-573352333