Hue 4.1 build error

23 views
Skip to first unread message

Anandha Loganathan

unread,
Dec 12, 2017, 9:39:44 PM12/12/17
to Hue-Users
Hi,

I am facing build error at "unable to open database file". Here is the stacktrace.  

My build command is 
sudo PREFIX=/mnt/data/apps/hue-4.1.0/hue-4.1.0_install  make install


Traceback (most recent call last):
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/bin/hue", line 11, in <module>
    load_entry_point('desktop', 'console_scripts', 'hue')()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/desktop/core/src/desktop/manage_entry.py", line 59, in entry
    execute_from_command_line(sys.argv)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/South-1.0.2-py2.6.egg/south/management/commands/syncdb.py", line 92, in handle_noargs
    syncdb.Command().execute(**options)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/management/commands/syncdb.py", line 57, in handle_noargs
    cursor = connection.cursor()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 162, in cursor
    cursor = util.CursorWrapper(self._cursor(), self)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 132, in _cursor
    self.ensure_connection()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 127, in ensure_connection
    self.connect()
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/__init__.py", line 115, in connect
    self.connection = self.get_new_connection(conn_params)
  File "/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/build/env/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/db/backends/sqlite3/base.py", line 347, in get_new_connection
    conn = Database.connect(**conn_params)
django.db.utils.OperationalError: unable to open database file
make[1]: *** [/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/desktop/desktop.db] Error 1
make[1]: Leaving directory `/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/desktop'
make: *** [install-env] Error 2

what is the mistake I am making? 

Thanks
Anand

Suresh Kumar Sethuramaswamy

unread,
Dec 13, 2017, 9:53:05 AM12/13/17
to Anandha Loganathan, Hue-Users
Looks like folder/file permission issue. Ensure the folder `/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/desktop' is owned by user 'hue'. 

chown -R hue:hue `/mnt/data/apps/hue-4.1.0/hue-4.1.0_install/hue/desktop'

--
You received this message because you are subscribed to the Google Groups "Hue-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hue-user+unsubscribe@cloudera.org.

AnandaLoganathan

unread,
Dec 13, 2017, 12:05:37 PM12/13/17
to Suresh Kumar Sethuramaswamy, Hue-Users
Suresh,

That folder is created while the making the build. There is no way I could give permission to that folder and if the folder exists then build will not start. 

Thanks
Anand

Romain Rigaux

unread,
Dec 14, 2017, 7:11:22 PM12/14/17
to AnandaLoganathan, Suresh Kumar Sethuramaswamy, Hue-Users
Probably because you sudo, then the installation dir won't belong to hue but root
Reply all
Reply to author
Forward
0 new messages