# Login not possible

**URL:** https://discuss.tryton.org/t/login-not-possible/8218
**Category:** System Administrator
**Created:** [January 22, 2025, 8:31am UTC](https://discuss.tryton.org/t/login-not-possible/8218 "2025-01-22T08:31:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![micha](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@micha](https://discuss.tryton.org/u/micha)
#### Post date: [January 22, 2025, 8:31am UTC](https://discuss.tryton.org/t/login-not-possible/8218/1 "2025-01-22T08:31:08Z")

</div>

After installing tryton on the server, the first login was attempted via the browser. A window asked for the user name and suggested “admin”. If you select “admin” and click on the “Log-in” button, a new window opens and asks for “Password for admin”. If the password assigned with trytond-admin is entered and “OK” is pressed, the login does not take place, but the window opens again and asks for “Password for admin” again. This routine can be repeated endlessly. A login is not possible.

---

<div class="post-metadata">

### Author: ![philipp.ludwig](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/dc4da7/32.png) [@philipp.ludwig](https://discuss.tryton.org/u/philipp.ludwig)
#### Post date: [January 22, 2025, 9:48am UTC](https://discuss.tryton.org/t/login-not-possible/8218/2 "2025-01-22T09:48:51Z")

</div>

Try resetting the password of the administrator user with the `trytond-admin --reset-password` command.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 22, 2025, 9:53am UTC](https://discuss.tryton.org/t/login-not-possible/8218/3 "2025-01-22T09:53:24Z")

</div>

This reset the password by sending an email to the administrator if an email has been set and that the server can send email.

I think it is simpler to set again a password using `trytond-admin -d <database> --password`.

> [@micha](#):
>
> the password assigned with trytond-admin is entered

Are you sure you type the same password?

---

<div class="post-metadata">

### Author: ![micha](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@micha](https://discuss.tryton.org/u/micha)
#### Post date: [January 22, 2025, 6:18pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/4 "2025-01-22T18:18:18Z")

</div>

First, the password was set to “abcd” with trytond-admin. Then the database query of the table res\_user for “admin” returned the password\_hash “$argon2id$v=19$m=65536,t=3,p=4$LGWMkRJijHEO4XzvnXMuJQ$KgH7IRbztZwfrsyvI/W2/mzNUpCpWlQ/laCU1KbuW8g”. Further the password “abcd” was encrypted with “PasswordHasher” and both hashes were identical. Now the login was attempted with the user “admin” and the password “abcd”, but every time “OK” was pressed, the prompt “Password for admin” appeared again and again in an endless loop. To avoid any queries: every care was taken to ensure that the password “abcd” was entered correctly and the Caps Lock button was not activated.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 22, 2025, 6:27pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/5 "2025-01-22T18:27:17Z")

</div>

Then you must check that you are using the same series for the web client and the server.  
Also check that you have not filled the table `res_user_login_attempt` which may block temporary the account.  
Then run the server in verbose mode to find the reason of refusing the password.

---

<div class="post-metadata">

### Author: ![micha](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@micha](https://discuss.tryton.org/u/micha)
#### Post date: [January 23, 2025, 6:14pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/6 "2025-01-23T18:14:56Z")

</div>

1. same series

Webclient (SAO): “version”: “7.4.0”

Sever: trytond 7.4.0

1. check that you have not filled the table `res_user_login_attempt`

tryton=# select \* from res\_user\_login\_attempt;

id | create\_date | create\_uid | device\_cookie | ip\_address | ip\_network | login | write\_date | write\_uid

----±------------±-----------±--------------±-----------±-----------±------±-----------±----------

(0 rows)

1. Unfortunately still the same: each time “OK” is pressed, the prompt “Password for admin” appears, but no login.

Here is the connection protocol:

> > > insert user “admin” and press button “Log-in”

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

RESPONSE:{“id”:0,“error”:[“LoginException”,[“password”,“Passwort f\u00fcr admin”,“password”]]}

* * *

> > > insert password “1234” and press button “OK”

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

RESPONSE:{“id”:0,“result”:[1,“01a65b20bf915b49a18249b5b3822561127d2bcf6c4e607f6c9bb648513be223”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/

POST-DATA:

RESPONSE:{“id”:0,“error”:[“LoginException”,[“password”,“Passwort f\u00fcr admin”,“password”]]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

REQUEST\_METHOD:POST

QUERY\_STRING:

REQUEST\_URI:/tryton/bus

POST-DATA:{“channels”:[“client:3df22402-6182-41e6-b8a3-e7ea2f7c7f75”]}

* * *

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 23, 2025, 6:27pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/7 "2025-01-23T18:27:02Z")

</div>

> [@micha](#):
>
> RESPONSE:{“id”:0,“result”:[1,“01a65b20bf915b49a18249b5b3822561127d2bcf6c4e607f6c9bb648513be223”]}
> 
> * * *

This seem to say that you received a session which seems to be directly invalid.  
So maybe the session timeout is too short or there is different between the clock of the server and the database.

---

<div class="post-metadata">

### Author: ![micha](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/m/c37758/32.png) [@micha](https://discuss.tryton.org/u/micha)
#### Post date: [January 23, 2025, 11:39pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/8 "2025-01-23T23:39:01Z")

</div>

To find the error, the browser history of the current version of Firefox was analyzed. During the login phase, the error message appears when the Tryton server responds:

„A notification request can only be called from a short-running user-generated event handler.“

After that, the Tryton server only responds to each request with 401 unauthorized.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 23, 2025, 11:54pm UTC](https://discuss.tryton.org/t/login-not-possible/8218/9 "2025-01-23T23:54:13Z")

</div>

> [@micha](#):
>
> „A notification request can only be called from a short-running user-generated event handler.“

This is not a Tryton server response.

---

<div class="post-metadata">

### Author: ![ex\_rk](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ex_rk/32/3939_2.png) [@ex\_rk](https://discuss.tryton.org/u/ex_rk)
#### Post date: [October 2, 2026, 8:12am UTC](https://discuss.tryton.org/t/login-not-possible/8218/10 "2026-10-02T08:12:14Z")

</div>

This hint comes from JS in browser and means: “Only https is allowed to send notifications from server to client.” There is one exception: Most browser accept notification from localhost without SSL in HTTP (HTTPS).  
Run it locally or use https connection.
