# Can't sign in as admin user (undefined method \`username' for nil:NilClass)

**URL:** <https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169>\
**Category:** Product Support\
**Created:** [16 Agosto , 2017 17:55 UTC](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169 "2017-08-16T17:55:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [16 Agosto , 2017 23:14 UTC](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169/2 "2017-08-16T23:14:07Z")

</div>

Can you try running `rake db:migrate`? The system user is missing on your installation for some reason.

---

_[View the full topic](https://meta.discourse.org/t/cant-sign-in-as-admin-user-undefined-method-username-for-nil-nilclass/68169)._
