-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to login successfully during the local development environment setup #4090
Comments
Did this happen immediately after a reboot? Or had the server been up for a while? Do you get the same behaviour if you do |
It happened after the server was up for a while. If I execute the above given command then I get different error and its not displaying even the home page.
|
I get the same thing now, which makes my local environment unusable. The server has been up for a while, and it started happening after a |
P1 since blocking local development. Yes, the beta-testers usergroup is the problem. It doesn't exist in local docker's DB. To fix it:
See #720 (comment) for more info |
Would you be able to take a look at this, @SouthGoingZax ? |
Re: #1, here is a work-around (not sure if this changes the priority of the issue): diff --git a/conf/openlibrary.yml b/conf/openlibrary.yml
index 903e32d94..61295f244 100644
--- a/conf/openlibrary.yml
+++ b/conf/openlibrary.yml
@@ -77,9 +77,7 @@ features:
support: admin
undo: enabled
upstream: enabled
- user_metadata:
- filter: usergroup
- usergroup: /usergroup/beta-testers
+ user_metadata: enabled
upstream_to_www_migration: true
default_template_root: /upstream
diff --git a/openlibrary/core/models.py b/openlibrary/core/models.py
index e895c89e9..0fa99711f 100644
--- a/openlibrary/core/models.py
+++ b/openlibrary/core/models.py
@@ -672,7 +672,8 @@ class User(Thing):
return self.is_usergroup_member('/usergroup/sponsors')
def is_beta_tester(self):
- return self.is_usergroup_member('/usergroup/beta-testers')
+ #return self.is_usergroup_member('/usergroup/beta-testers')
+ return True
def get_lists(self, seed=None, limit=100, offset=0, sort=True):
"""Returns all the lists of this user. For step 5, it seems like I have to do that on I have the dump, but my database is not really a model database at this point. I corrupted authors on books on the frontpage to work on a related PR. I also somehow got into a state around the time this bug showed up where an attempt to log in with the admin credentials succeeded but silently created a new, duplicate (but non-admin) account. Future log-ins would use that non-admin account, and I had to muck with psql to undo enough of it to be able to log in to the original admin account to work on this issue, but there is still cruft left-over from that account creation in dump diff. Is there a clean way for me to reset my local database, and then I can re-do these steps for a clean diff? |
@SouthGoingZax that looks great so far! docker-compose down
# Remove all ol-related volumes
docker volume ls
docker volume rm openlibrary_blah |
At the time of login to OL interface an internal error is noticed.
Evidence / Screenshot (if possible)
Relevant url?
Steps to Reproduce
Details
Proposal & Constraints
Related files
Stakeholders
The text was updated successfully, but these errors were encountered: