Page 1 of 1

cant logout of Nextcloud

Posted: Fri Feb 21, 2020 10:43 am
by Mordog
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

Code: Select all

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?

Re: cant logout of Nextcloud

Posted: Fri Feb 21, 2020 12:02 pm
by Joulinar
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.

Re: cant logout of Nextcloud

Posted: Fri Feb 21, 2020 2:34 pm
by Mordog
After 4 hours of searching the web i found a solution.

it seems lighttpd is the problem.

ind the lighttpd.conf the line

Code: Select all

"url-normalize-required"  => "enable",# recommended
needs to be chanced to

Code: Select all

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

Re: cant logout of Nextcloud

Posted: Thu Mar 12, 2020 3:31 pm
by rab-bits
Thank you!
After correction in lighttpd.conf, you have to restart lighttpd:
/etc/init.d/lighttpd restart

Re: cant logout of Nextcloud

Posted: Sun Apr 05, 2020 2:26 pm
by Joulinar
just for reference a GitHub post related to it

https://github.com/MichaIng/DietPi/issu ... -573352333