Upgrading from BDA 3.0.1/CDH5.0.1/Hue 3.5 to BDA 4.1.0/CDH 5.3.0/Hue 3.7 Logging into Hue as Non-Superuser Raises Server Error(500) (Doc ID 1967590.1)

Last updated on FEBRUARY 05, 2015

Applies to:

Big Data Appliance Integrated Software - Version 3.0.1 to 4.1.0 [Release 3.0 to 4.1]
Linux x86-64

Symptoms

 
After upgrade from from BDA 3.0.1/CDH5.0.1/Hue 3.5 to BDA 4.1.0/CDH 5.3.0/Hue 3.7  logging into Hue as anything but the superuser raises:

Server Error (500)

Sorry, there's been an error. An email was sent to your administrators. Thank you for your patience.


Checking the "More Info" shows:

File Name Line Number Function Name
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py 111 get_response
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/core/src/desktop/views.py 295 index
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/core/src/desktop/views.py 62 home
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/core/src/desktop/api.py 68 _get_docs
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/query.py 97 __iter__
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/query.py 85 __len__
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/query.py 291 iterator
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/sql/compiler.py 763 results_iter
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/sql/compiler.py 818 execute_sql
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/backends/mysql/base.py 114 execute
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-linux-x86_64.egg/MySQLdb/cursors.py 173 execute
/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-linux-x86_64.egg/MySQLdb/connections.py


Additional Symptoms:

1. From the latest Hue process directory on the Hue server node (typically Node 4) /var/run/cloudera-scm-agent/process/<latest>-hue-HUE-SERVER/logs/stdout.log:

(use ./manage.py migrate to migrate these)
Running migrations for desktop:
 ! Migration oozie:0023_auto__add_field_node_data__add_field_job_data should not have been applied before oozie:0022_change_examples_path_format but was.

2. From the latest Hue process directory on the Hue server node (typically Node 4) /var/run/cloudera-scm-agent/process/<latest>-hue-HUE-SERVER/logs/stderr.log:

+ run_syncdb_and_migrate_subcommands
+ /opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/bin/hue syncdb --noinput
+ '[' 5 -ge 5 ']'
+ /opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/bin/hue migrate
Traceback (most recent call last):
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/bin/hue", line 9, in <module>
    load_entry_point('desktop==3.7.0', 'console_scripts', 'hue')()
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/desktop/core/src/desktop/manage_entry.py", line 60, in entry
    execute_manager(settings)
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 459, in execute_manager
    utility.execute()
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/South-0.8.2-py2.6.egg/south/management/commands/migrate.py", line 111, in handle
    ignore_ghosts = ignore_ghosts,
  File "/opt/cloudera/parcels/CDH-5.3.0-1.cdh5.3.0.p0.30/lib/hue/build/env/lib/python2.6/site-packages/South-0.8.2-py2.6.egg/south/migration/__init__.py", line 214, in migrate_app
    raise exceptions.InconsistentMigrationHistory(problems)
south.exceptions.InconsistentMigrationHistory: Inconsistent migration history
The following options are available:
    --merge: will just attempt the migration ignoring any potential dependency conflicts.
+ '[' dumpdata = runcpserver ']'
+ '[' syncdb = runcpserver ']'

 

Changes

Upgrade from from BDA 3.0.1/CDH5.0.1/Hue 3.5 to BDA 4.1.0/CDH 5.3.0/Hue 3.7.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms