cant logout of Nextcloud Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

cant logout of Nextcloud

Post 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?
User avatar
Joulinar
Posts: 2271
Joined: Sat Nov 16, 2019 12:49 am

Re: cant logout of Nextcloud

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: cant logout of Nextcloud

Post 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
rab-bits
Posts: 3
Joined: Sun Mar 08, 2020 1:51 pm

Re: cant logout of Nextcloud

Post by rab-bits »

Thank you!
After correction in lighttpd.conf, you have to restart lighttpd:
/etc/init.d/lighttpd restart
User avatar
Joulinar
Posts: 2271
Joined: Sat Nov 16, 2019 12:49 am

Re: cant logout of Nextcloud

Post by Joulinar »

just for reference a GitHub post related to it

https://github.com/MichaIng/DietPi/issu ... -573352333
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply