# Login Failed with invalid\_request after clean installation

**URL:** <https://forum.pydio.com/t/login-failed-with-invalid-request-after-clean-installation/3766>\
**Category:** Pydio Cells\
**Tags:** authentication, install, docker\
**Created:** [March 8, 2021, 9:17am UTC](https://forum.pydio.com/t/login-failed-with-invalid-request-after-clean-installation/3766 "2021-03-08T09:17:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GwynethLlewelyn](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/gwynethllewelyn/32/2419_2.png) [@GwynethLlewelyn](https://forum.pydio.com/u/GwynethLlewelyn)\
**Post date:** [March 8, 2021, 1:30pm UTC](https://forum.pydio.com/t/login-failed-with-invalid-request-after-clean-installation/3766/2 "2021-03-08T13:30:10Z")

</div>

There is something mysterious going on. I had the exact issue yesterday: clean install, empty database, started with just the admin user (in my case, it wasn’t called ‘admin’). But I did _not_ use Docker.

I had a few differences, though: because I had lots of problems binding to `0.0.0.0` when using nginx as a front-end reverse proxy, I’m using a private IP address set up on an ‘alias interface’, as mentioned in the [KB instructions for reverse proxy setup](https://pydio.com/en/docs/kb/deployment/running-cells-behind-nginx-reverse-proxy).

At the end of this setup, what happened was exactly what you describe:

1. Logging in with the admin user would _always_ give a `Login failed` banner and an `invalid_request` in the logs;
2. Logging in with a non-existing user would give a `404 User not found`.

The first thing I did was to change the admin’s password with:

```
./cells user set-pwd -u 'USER_LOGIN' -p 'NEW_PASSWORD'

```

Alas, the password _may_ have been correctly changed (how can I tell?) but I still got the same error.

Then I created another user:

```
./cells user create -u 'user' -p 'a password'

```

and tried to log in with this. I got precisely the same error as before.

Finally, I tried to ‘upgrade’ this new user to admin status:

```
./cells admin user set-profile -u 'USER_LOGIN' --profile 'admin'

```

While I could confirm that both users were set as admins using:

```
./cells admin user search

```

… I still couldn’t log in with either of them!!

To be honest, because I’m always tinkering with Cells, in the hope of getting it to work one day, I’m not quite sure how I eventually managed to get this to work again. I _think_ that it happened automagically after partially restoring the database from an old backup as described [in one of my previous posts](https://forum.pydio.com/t/solved-unable-to-install-cells-v2/2897/29).

---

_[View the full topic](https://forum.pydio.com/t/login-failed-with-invalid-request-after-clean-installation/3766)._
