cabotapp / docker-cabot

Docker and docker-compose files for Cabot
https://hub.docker.com/r/cabotapp/cabot/
58 stars 31 forks source link

lessc no found after start webserver #25

Closed bruceguodong closed 6 years ago

bruceguodong commented 6 years ago

Hi, flowing docker steps, after start the cabot webserver, I open http://XXX:5000 in brower, but error occurs as below, i find less have installed in Dockfile. image

Environment:

Request Method: GET Request URL: http://XXX:5000/setup/

Django Version: 1.11.11 Python Version: 2.7.14 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_filters', 'compressor', 'polymorphic', 'jsonify', 'cabot.cabotapp', 'rest_framework', 'dal', 'dal_select2', 'django.contrib.admin', 'bootstrapform', 'cabot_alert_hipchat', 'cabot_alert_twilio', 'cabot_alert_email', 'cabot_alert_slack') Installed Middleware: ('whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback:

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response

  1. response = self._get_response(request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response

  1. response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in view

  1. return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/django/views/generic/base.py" in dispatch

  1. return handler(request, *args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/cabot/cabotapp/views.py" in get

  1. return HttpResponse(self.template.render({'form': form}, request))

File "/usr/local/lib/python2.7/site-packages/django/template/backends/django.py" in render

  1. return self.template.render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render

  1. return self._render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render

  1. return self.nodelist.render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render

  1. bit = node.render_annotated(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated

  1. return self.render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/loader_tags.py" in render

  1. return compiled_parent._render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in _render

  1. return self.nodelist.render(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render

  1. bit = node.render_annotated(context)

File "/usr/local/lib/python2.7/site-packages/django/template/base.py" in render_annotated

  1. return self.render(context)

File "/usr/local/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render

  1. return self.render_compressed(context, self.kind, self.mode, forced=forced)

File "/usr/local/lib/python2.7/site-packages/compressor/templatetags/compress.py" in render_compressed

  1. rendered_output = compressor.output(mode, forced=forced)

File "/usr/local/lib/python2.7/site-packages/compressor/css.py" in output

  1. ret.append(subnode.output(*args, **kwargs))

File "/usr/local/lib/python2.7/site-packages/compressor/css.py" in output

  1. return super(CssCompressor, self).output(*args, **kwargs)

File "/usr/local/lib/python2.7/site-packages/compressor/base.py" in output

  1. output = '\n'.join(self.filter_input(forced))

File "/usr/local/lib/python2.7/site-packages/compressor/base.py" in filter_input

  1. for hunk in self.hunks(forced):

File "/usr/local/lib/python2.7/site-packages/compressor/base.py" in hunks

  1. precompiled, value = self.precompile(value, **options)

File "/usr/local/lib/python2.7/site-packages/compressor/base.py" in precompile

  1. return True, filter.input(**kwargs)

File "/usr/local/lib/python2.7/site-packages/compressor/filters/base.py" in input

  1. return super(CachedCompilerFilter, self).input(**kwargs)

File "/usr/local/lib/python2.7/site-packages/compressor/filters/base.py" in input

  1. raise FilterError(err)

Exception Type: FilterError at /setup/ Exception Value: /bin/sh: lessc: not found