Having issues with your DietPi installation, or, found a bug? Post it here.
Mordog
Posts: 13 Joined: Fri Aug 24, 2018 10:18 am
Post
by Mordog » Fri Feb 21, 2020 10:43 am
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?
Joulinar
Posts: 3139 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Fri Feb 21, 2020 12:02 pm
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
Post
by Mordog » Fri Feb 21, 2020 2:34 pm
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
Post
by rab-bits » Thu Mar 12, 2020 3:31 pm
Thank you!
After correction in lighttpd.conf, you have to restart lighttpd:
/etc/init.d/lighttpd restart
Joulinar
Posts: 3139 Joined: Sat Nov 16, 2019 12:49 am
Post
by Joulinar » Sun Apr 05, 2020 2:26 pm
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team