# "unknown error" on login, undefined method \`password\_algorithm='

**URL:** <https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664>\
**Category:** Self-hosting\
**Created:** [April 14, 2023, 5:22am UTC](https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664 "2023-04-14T05:22:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [April 14, 2023, 9:03am UTC](https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664/2 "2023-04-14T09:03:23Z")

</div>

Most likely you had a pending database migration when you tried to run `admin:create`. (the `password_algorithm` column was recently added to the users table)

---

_[View the full topic](https://meta.discourse.org/t/unknown-error-on-login-undefined-method-password-algorithm/261664)._
