cloudera / hue

Open source SQL Query Assistant service for Databases/Warehouses
https://cloudera.com
Apache License 2.0
1.17k stars 366 forks source link

problem with common-header.mako logging in #71

Closed infinityplusb closed 10 years ago

infinityplusb commented 10 years ago

Hi

I am building a instance with hue in Amazon AWS using Ubuntu 12.04 LTS. I am following this guide: http://edpflager.com/?p=1973 and but using Ubuntu and not CentOS. Once I installed the service I could not log into http://blah:8888 getting an error saying search.Search_controller not found

Looking at the error, I noticed that it was this file producing the error: https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/templates/common_header.mako

So I went into /tmp/tmpILkfKQ/desktop and editted the common_header.mako.py file to remove all references to search Basically I removed all the template lines generated by lines 391-407. I was then able to log in successfully as expected.

I can try reproduce the error if needed.

Brian

enricoberti commented 10 years ago

Hi Brian, thanks, we'll check that. In the meanwhile, have you seen our guide on how to install it on AWS in 10 minutes? http://gethue.com/hadoop-tutorial-how-to-create-a-real-hadoop-cluster-in-10-minutes/

Cheers, Enrico

infinityplusb commented 10 years ago

Enrico

I had troubles with some of the installers before, because I believe they are/were configured for US regions? I am wanting to set one up in my own region (Sydney) so that I can connect other tools into it. If the installer isn't region sensitive, I'll check it out.

Cheers Brian

romainr commented 10 years ago

Is the search app installed?

e.g. do you see it in /desktop/dump_config ?

And if yes, is this file present? https://github.com/cloudera/hue/blob/master/apps/search/src/search/search_controller.py

infinityplusb commented 10 years ago

Where should I be looking for that? It's not in my /tmp/blah/desktop folder

All that is in that folder is: 500.mako.py 500.mako.pyc common_header.mako.py common_header.mako.pyc login.mako.py login.mako.pyc

infinityplusb commented 10 years ago

While the install doesn't error, I can see lots of bits that look like:

Synced:

django.contrib.auth django_openid_auth django.contrib.contenttypes django.contrib.sessions django.contrib.sites django.contrib.admin django_extensions south about filebrowser help jobbrowser metastore proxy rdbms zookeeper

Not synced (use migrations):

I'll try use the manage.py script, although I'm not sure what I am "migrating" cause it's a fresh build.

romainr commented 10 years ago

/tmp is not the good location, could you do a:

find /usr/lib/hue -name 'common_header.mako'

But could you check the /desktop/dump_config page of Hue to see if you see the search app installed?

infinityplusb commented 10 years ago

apologies for the delay

/tmp must have been the location for when the file is being run when I run your "find" command I get: /usr/lib/hue/desktop/core/src/desktop/templates/common_header.mako

I tried to replicate the error again today and cannot, and everything seems to be working as intended. I rebuilt another instance and it seems to be working aswell, with search in the .../desktop/dump_config page

Sorry, I'm not sure what caused the error and can't reproduce it now. :(

romainr commented 10 years ago

Glad to hear!