-
Notifications
You must be signed in to change notification settings - Fork 18
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
Can no longer log in to /manage on beta.onezoom.org #778
Comments
Also lots of e.g.
In the logs. We should probably chown all the |
I created the directories |
I also see this in the supervisord logs
I wonder if we were previous using the |
A few more pointers: If I remove the |
Making some progress here. On my local machine, if I log in, then print out
Gives
I think that auth and session.auth should be the same. So somehow the auth object isn't being updated correctly after login |
Ideally, we'd get to the bottom of why using db sessions breaks auth. But since this is a new thing and everything was working well before without it, it seems reasonable to remove it. @lentinj your comment in 5b8cb59 says "Not that we should be using sessions much, if at all." Can you see any downside to removing this? When not using it, the session data gets save in the |
Did a bunch of debugging and figured it out: we're calling |
No, we should be disabling the language re-generation, and putting it behind another config option. It only serves to slow beta down, and having python-writable python files which are executed on each request is an obvious chink in our armour. We also set ourselves up for merge conflicts. |
The main reason for switching to DB sessions was to simplify the backup strategy, as well as the web2py book hinting that DB sessions are the happy path in production. These aren't overly strong reasons though, I'd be happy switching back if you'd not already figured it out. |
Since the issue is now resolved (see above), we may as well stay with DB sessions, unless we run into additional problems. |
Agreed. I'll close this now. |
I can't access /manage in beta.onezoom.org, even with a correct username/password.
EDIT
Weirdly, the problem seems to be the
auth
object which is used to contain the user's authentication details after login, and is either being zapped or never being updated. This doesn't happen in other web2py apps, so OZtree is doing something weird.(the stuff below was fixed but the logging-in problem isn't, and is still replicable on a local install)
I'm getting this in the
beta.onezoom.org_uwsgi_stderr.log
:So I guess the installation script needs to make some of those directories writeable by www too?
The text was updated successfully, but these errors were encountered: