# Discourse lost the ability to login for all accounts

**URL:** <https://meta.discourse.org/t/discourse-lost-the-ability-to-login-for-all-accounts/51775>\
**Category:** Product Support\
**Created:** [October 20, 2016, 10:35am UTC](https://meta.discourse.org/t/discourse-lost-the-ability-to-login-for-all-accounts/51775 "2016-10-20T10:35:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ewanly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewanly/32/62854_2.png) [@ewanly](https://meta.discourse.org/u/ewanly)\
**Post date:** [October 20, 2016, 11:06am UTC](https://meta.discourse.org/t/discourse-lost-the-ability-to-login-for-all-accounts/51775/3 "2016-10-20T11:06:09Z")

</div>

Thank you @tgxworld. Because I’m not able to login at all there was no way to do it from the site. So I’d tried to follow the instruction on how to do it from console (as I’d tried yesterday when I’d faced the same problem) but I’m getting a fatal error again as seen here:

> [@How to change a site setting via the Console](https://meta.discourse.org/t/how-to-change-a-site-setting-via-the-console/32761/12):
>
> So I did these commands: cd /var/discourse ./launcher enter app then bundle exec rails c and I’ve got the following errors: URGENT: FATAL: Peer authentication failed for user “discourse” Failed to initialize site default /var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active\_record/connection\_adapters/postgresql\_adapter.rb:651:in initialize': FATAL: Peer authentication failed for user "discourse" (PG::ConnectionBad) from /var/www/discourse/vendor/bundl…

---

_[View the full topic](https://meta.discourse.org/t/discourse-lost-the-ability-to-login-for-all-accounts/51775)._
