question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Erorr with Docker image 4.4.0

See original GitHub issue

When I run the latest image (which is Hue 4.3.0) of the Hue docker image in Docker hub it works fine

docker run -it -p 38888:8888 -v $PWD/tools/docker/hue/hue.ini:/usr/share/hue/desktop/conf/hue.ini --network amundsen-atlas_default gethue/hue

But when I switch to version 4.4.0 (tag 4.4.0)

docker run -it -p 38888:8888 -v $PWD/tools/docker/hue/hue.ini:/usr/share/hue/desktop/conf/hue.ini --network amundsen-atlas_default gethue/hue:4.4.0

then I get the following error:

[03/May/2019 03:00:43 -0700] decorators   INFO     AXES: Calling decorated function: dt_login
[03/May/2019 03:00:43 -0700] decorators   INFO     args: (True,)
[03/May/2019 03:00:43 -0700] access       INFO     192.168.73.1 -anon- - "GET /hue/accounts/login HTTP/1.1" returned in 57ms
[03/May/2019 03:00:43 -0700] access       INFO     192.168.73.1 -anon- - "GET /hue/accounts/login HTTP/1.1" returned in 57ms
[03/May/2019 03:00:43 -0700] decorators   INFO     AXES: Calling decorated function: dt_login
[03/May/2019 03:00:43 -0700] middleware   INFO     Processing exception: Error reading /usr/share/hue/webpack-stats-login.json. Are you sure webpack has generated the file and the path is correct?: Traceback (most recent call last):
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/utils/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_axes-2.2.0-py2.7.egg/axes/decorators.py", line 271, in decorated_login
    response = func(request, *args, **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/auth/views.py", line 195, in dt_login
    'user': request.user
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_util.py", line 231, in render
    **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_util.py", line 148, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpCqZYw9/desktop/login.mako.py", line 56, in render_body
    __M_writer(unicode( commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True) ))
  File "/usr/share/hue/desktop/core/src/desktop/views.py", line 491, in commonheader
    'banner_message': get_banner_message(request)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpCqZYw9/desktop/common_header.mako.py", line 176, in render_body
    __M_writer(unicode( render_bundle('login', config='LOGIN') ))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/templatetags/webpack_loader.py", line 12, in render_bundle
    tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/utils.py", line 45, in get_as_tags
    bundle = _get_bundle(bundle_name, extension, config)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/utils.py", line 23, in _get_bundle
    bundle = get_loader(config).get_bundle(bundle_name)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/loader.py", line 60, in get_bundle
    assets = self.get_assets()
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/loader.py", line 37, in get_assets
    self._assets[self.name] = self._load_assets()
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_webpack_loader-0.6.0-py2.7.egg/webpack_loader/loader.py", line 32, in _load_assets
    self.config['STATS_FILE']))
IOError: Error reading /usr/share/hue/webpack-stats-login.json. Are you sure webpack has generated the file and the path is correct?

[03/May/2019 03:00:43 -0700] exception    ERROR    Internal Server Error: /hue/accounts/login
Traceback (most recent call last):
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Django-1.11.20-py2.7.egg/django/utils/decorators.py", line 185, in inner
    return func(*args, **kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/django_axes-2.2.0-py2.7.egg/axes/decorators.py", line 271, in decorated_login
    response = func(request, *args, **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/auth/views.py", line 195, in dt_login
    'user': request.user
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_util.py", line 231, in render
    **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_util.py", line 148, in _render_to_response
    return django_mako.render_to_response(template, *args, **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 127, in render_to_response
    return HttpResponse(render_to_string(template_name, data_dictionary), **kwargs)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpCqZYw9/desktop/login.mako.py", line 56, in render_body
    __M_writer(unicode( commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True) ))
  File "/usr/share/hue/desktop/core/src/desktop/views.py", line 491, in commonheader
    'banner_message': get_banner_message(request)
  File "/usr/share/hue/desktop/core/src/desktop/lib/django_mako.py", line 116, in render_to_string_normal
    result = template.render(**data_dict)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py", line 462, in render
    return runtime._render(self, self.callable_, args, data)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 838, in _render
    **_kwargs_for_callable(callable_, data))
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 873, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/usr/share/hue/build/env/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py", line 899, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpCqZYw9/desktop/common_header.mako.py", line 176, in render_body
    __M_writer(unicode( render_bundle('login', config='LOGIN') ))

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
romainrcommented, May 5, 2019

Indeed, we should re-update the image there. Should be done Monday end of day PST

0reactions
cctanfujuncommented, May 15, 2019

Happy to hear!

e7c7c55

also build fail

Step 15/24 : RUN npm run webpack
 ---> Running in da921f186204


> hue@4.4.0 webpack /usr/share/hue
> webpack --config webpack.config.js

clean-webpack-plugin: /usr/share/hue/desktop/core/src/desktop/static/desktop/js/bundles/hue has been removed.
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! hue@4.4.0 webpack: `webpack --config webpack.config.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the hue@4.4.0 webpack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-05-15T06_00_56_837Z-debug.log
The command '/bin/sh -c npm run webpack' returned a non-zero code: 137

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Desktop release notes
Release notes for Docker Desktop for Mac, Linux, Windows. ... Fixed an issue preventing the Analyze Image button on the Images tab from...
Read more >
Bug #1702665 “4.4.0-83-generic + Docker + EC2 frequently ...
We run xenial-based Docker container hosts on EC2 with Amazon ECS. Recently we refreshed our base image, we started to see frequent panic....
Read more >
Can't delete docker image with dependent child images
So i can't delete image even with -f flag. How to delete image then and all of its children ? Linux and docker...
Read more >
How-To: Run Neo4j in Docker - Developer Guides
Neo4j Docker Image; Neo4j Configuration; Run Docker with Neo4j ... container ensures we can troubleshoot any errors in Neo4j, even if the container...
Read more >
How To Run MongoDB as a Docker Container - BMC Software
Setting up MongoDB as a container allows the user to create a portable and extensible NoSQL ... The above output contains no errors....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found