-
Notifications
You must be signed in to change notification settings - Fork 1
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
OAuth Server Error 500 #45
Comments
Fixed ! Add the following to the
And under
|
Thanks a lot! Perhaps that is worth adding to the documentation? |
You're welcome! I'm working on a Wikibase to store Brazilian legal data. I had to set up my own in order to have strings and multilingual texts with more than 250 characters, so the content makes sense (i.e. case abstract). After setting up the QuickStatements on the server and perform a few tests, I was able to import some batches to the Wikibase, but they were not recorded within QuickStatements. Also, I had to keep clicking the "Execute"/"Stop" button until the last item of the batch. I saw that it has connections to the EditGroups tool, so I'm trying to deploy it too and see if things works out. Right now I'm facing nginx/permissions problems regarding the
Any tips or guidance will be very much appreciated! |
If it is just the admin interface that you fail to reach, then the user you are connected with probably does not have admin/superuser rights (you could try setting both). But I should warn you that this tool relies on the WMF Event Stream to stay in sync with the Wikibase instance and I am not aware of any Wikibase instance that also deployed something similar - I suspect it is quite some effort to replicate Wikimedia's infrastructure. |
(See #5) |
Thank you for the heads up! You are right. I'm afraid it will not be possible to make it work. Even with the ./listener.sh and the ./celery.sh running, I did not see any changes publicly. Regarding the permission, I have access to the admin panel, but unable to edit or view anything there. I would love to try an alternative. Btw, I asked for membership at toolforge. Do you think the gist is still necessary? I've installed virtualenv, redis and some other dependencies to resume the requirements.txt that were returning errors. If you think so, I'll leave it here. |
Ok! Well I do not think it would be that hard to add support for ingesting changes by polling the recent changes feed. But I just have not done it because I have no need for it myself. But if you are motivated I am keen to help you!
Initially there should not be much to see as the database is empty, but normally you should be able to create a new tool.
Which gist? |
Awesome! Here it is: EditGroups. Something is off because of my tweaks. I'm considering to restore the VM and start again. When I'm logged in, I try to go to /admin/store/tool/, it returns The gist I'm referring to is the one that records my steps to reproduce the application, more or less like this:
|
Turning on
Traceback:
When I'm logged in, the error related to the
|
So, if you log in via OAuth, that will create a user account that will be different than any previously created account.
or
This will make all existing users in EditGroups admins and superuser (obviously you only want to do that if no non-admin users have logged in via OAuth so far, you can check which users exist before executing the second line with |
Good news! With the Then, for step 2, i got the following error:
Nonetheless, checking the
Sadly, the Should I start all over from scratch? Because with my MediaWiki user, I still have no "permission to view or edit anything". |
Sorry, it was |
NICE! Now my MediaWiki user has full access to the admin panel! Now, browsing to the
Traceback:
I see it is making the request through |
hmm that is curious, I am not sure where to go from there. Perhaps we should upgrade to a newer version of Django and other libraries. |
I'm ready to do so. For the Do you have any suggestions on which libraries to use? |
I would just try to upgrade them one by one to higher versions and fix any incompatibilities that I encounter on the way. Hopefully the CI can be of some help for this. |
Ok! I will try again next weekend. Hopefully it works out. I saw that you think it's possible to make it work with EventLogging... I read some of the documentation, and I learned that there is a backend to it too. Once I install both, the EditGroups will ingest the batches? Does it require further coding? |
If you install EventLogging then it should be reasonably straightforward to adapt EditGroups to connect to the underlying cluster.
|
Hi there !
I've managed to set it up following the Deploying on WMF Toolforge, but locally.
Now, at the stage I'm creating the
User
, after creating the OAuth keys and passing them to thesecret.py
, when I try to login for the first time (before creating the staff user within the shell) I get the following error (withDEBUG = True
):Here is the Traceback:
Do you guys have any idea how to fix it?
Thanks in advance
The text was updated successfully, but these errors were encountered: