Skip to content
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

Error message along with update command shown when trying to register device or when language section is accessed #3197

Closed
tarunsharma1 opened this issue Mar 8, 2015 · 22 comments

Comments

@tarunsharma1
Copy link
Contributor

Branch :develop
Current Behavior: When signed in as super user and 'register your device' or the 'language' button (next to facilities and videos buttons in manage area) is clicked, an error outputing large html code is generated and also the faulty update command is asked to be run i.e python manage.py update.
On clicking the language button it asks you to register your device first but when register my device is clicked the same thing shows up.
screenshot 104
Expected behavior : A nice clean error and no references to the faulty update command.
Steps to reproduce: Login as superuser
Click on the manage section on the top right corner
Next to the buttons facilities and videos, hit the button saying language.

@anuragkanungo
Copy link
Contributor

I believe this problem is because the Central Server is down today. (hub.learningequality.org)

But, surely we need to catch the error and display it in a cleaner way.

@aronasorman aronasorman added this to the 0.14.x milestone Mar 9, 2015
@aronasorman
Copy link
Collaborator

Yeah, we'll need a more graceful way to handle this when the central server is down. Doesn't have to be a blocker for release though, so I've set this to 0.14, and then we can cherry-pick this for a 0.13 bugfix, if needed.

@anuragkanungo
Copy link
Contributor

@aronasorman,

I am facing this Issue now though I am able to reach learningequality.org .
So, possible error cause could be something else as well.

@tarunsharma1
Copy link
Contributor Author

Yes I'm facing this error too....when i click the languages button i get the error and it says please register device..and when i try to register also i get the same error and a request to update

@timon-langlotz
Copy link

I have the same error. Is the hub still down? Tried to ping it, no response.

@radinamatic
Copy link
Member

Same over here, on both Videos and Language tabs.

@aronasorman
Copy link
Collaborator

Ok, critical. @jamalex

@aronasorman aronasorman modified the milestones: 0.13.x, 0.14.x Mar 12, 2015
@MCGallaspy
Copy link
Contributor

@jamalex in 0.12.10 I keep getting the same error, even with "fresh" databases. Leads me to believe its a genuine error with the central server.

@MCGallaspy
Copy link
Contributor

The default central server instance that we're running uses a backend (MySQL) that wasn't well-tested during development. #3253 should fix this issue once the central server's submodule has been updated.

@yohanboniface
Copy link

Is there a workaround in between #3253 is shipped? I've a fresh install from today and I'm facing the same issue.

@yohanboniface
Copy link

I've tried to switch to develop, but then I've hit #3302, and after a workaround I'm back on this one.

So is there any sort of stable branch/tarball/whatever I can use if I want to install on a Sunday, or given that it seems to affect the "central server" I'm shot?

@jamalex
Copy link
Member

jamalex commented Mar 16, 2015

@yohanboniface Working on a fix to the central server now, in #3306 -- merging and launching shortly!

@jamalex
Copy link
Member

jamalex commented Mar 16, 2015

Central server should now be fixed (testing a one-click registration and it worked for me) -- please confirm that it works for you now as well, and we can (re-)close this issue. Thanks!

@jamalex jamalex reopened this Mar 16, 2015
@yohanboniface
Copy link

\o/

@jamalex it works, thanks a lot! :)

(Off topic note: is there any active IRC chan? I didn't reach one.)

@aronasorman
Copy link
Collaborator

Hi @yohanboniface --

we're active on HipChat: https://www.hipchat.com/gzQfGFgv1

@anuragkanungo
Copy link
Contributor

There have been different issue now, as pointed by @sharprakeshverma
Looking into it
screenshot from 2015-03-17 12 42 15

@anuragkanungo
Copy link
Contributor

The value of settings.CENTRAL_SERVER is False, which is throwing error

@anuragkanungo
Copy link
Contributor

In settings.py , we have
CENTRAL_SERVER = False # Hopefully will be removed soon.

@anuragkanungo
Copy link
Contributor

We need settings.CENTRAL_SERVER_HOST there.
This will work fine, if we don't have if DEBUG =True in local_settings.

But if DEBUG= True, then

I get error: [Errno url error] unknown url type: 'adhoc.learningequality.org'
We need our url to be like http://adhoc.learningrquality.org

@yohanboniface
Copy link

Same error here ([Errno url error] unknown url type: 'adhoc.learningequality.org') when trying to register another server (on develop, but I will switch to master).

Is KA-lite unittested somehow?

@yohanboniface
Copy link

Switched back to master, removed the database, rerun the setup_unix.sh, and now I'm back on the initial issue when trying to register:
screenshot from 2015-03-18 16 23 45

Is central server broken again, or it's me missing a point? :s

@yohanboniface
Copy link

OK, that was caused by my "DEBUG = True" local_settings.py file. Thanks @aronasorman for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants