Hello
We are evaluating open edX at the moment. I deployed a tutor instance more or less via quickstart. However, I had to make some modifications. I do NOT generate SSL certificates with tutor and I manually changed the nginx ports to high numbers in the docker-compose script, because there is already a letsencrypt docker thingy running. So, I have one more nginx in the chain doing the SSL termination.
Everything seems to be working. Now I compiled the Android App (debug mode), but I cannot login. I am getting an “Unknown Error” on the device. The nginx log is:
Yes, the Android app is supposed to run out of the box (although I must confess I did not test it recently).
In my experience, 400 errors are caused by incorrect ALLOWED_HOSTS django setting. This might occur if you are not correctly overriding the X-Forwarded-For header in your proxy.
Hello @regis
Thank you for the answer. Thing is, I am trying to install tutor on a box with only one IP and an already existing setup of several applications. I merged my SSL config with the generated one. However, I think that those proxy headers are set anyways by default. Anything else I need to be aware of? How can I further debug this?
I can add some information. The Android App is making a GET request to /oauth2/access_token. If I do that with the Browser, I get:
{“error_description”: “Only POST requests allowed.”, “error”: “invalid_request”}
I think, the App should make a POST request and this is not a configuration issue on my side. I am new to Open edX though and still a bit lost. Is the app part of tutor or of open edX. Where can I find the sources?
I had forgotten that Tutor builds the Android app from the master branch of the github repo: https://github.com/overhangio/tutor/blob/master/tutor/templates/build/android/Dockerfile#L26
This was an error. Instead, what we should have done is to clone a specific git tag from the repository. What probably happened is that someone pushed a change to the master branch which is no longer compatible with the Ironwood release.
Hi I generated an apk from a Koa instance on my macOS BigSur machine. I have connection error when I register/sign-in through an Android emulator (apkonline). I tried other apk (not tutor) and it is OK. Would this be related to the error above…but instead of Ironwood…its Koa? Thanks