--- date: 2019-12-23T18:27:34+01:00 description: "Nextcloud : How to resolve the loop login problem…" draft: false tags: ["Nextcloud", "login", "tip"] title: "(tip) Nextcloud : loop login" translationKey: "nextcloud-loop-login" --- ## Description "Once upon a time…", you need to connect at your WebUI Nextcloud, with your ids. Normal! But, this day, you cant: impossible to connect. You're redirected on `login?redirect_url=/apps/files/` and your ids are asked again! Booo. "You're under a loop login!" ## Resolution {{< color red >}}Check{{< /color >}} : * **read an write permissions** on thoses folders: * `netcloud` : `0750` * `cache` : `0755` * and, for the sessions PHP: `0750` seems to be functional, else `0755`. * **user rights** on same folders: those of your web user and group; default, on OpenBSD `www`, but this depends on your web architecture *(i.e, Apache, Nginx, etc)* and your {{< abbr OS "Operating System" >}}. ### OpenBSD On OpenBSD, I noticied this little problem: after a PHP upgrade, user rights on folders `cache`, `tmp` in the chroot are reset for `root:daemon` and `0700` with `sticky bit`. It seems necessary to set at the web user, web group and change again read and write permissions to `0755`. ## Acknowledgement * *[source](https://www.ryadel.com/en/nextcloud-13-login-page-redirect-loop-how-to-fix-it/)* ----