OpenDroneMap / WebODM

User-friendly, commercial-grade software for processing aerial imagery. 🛩
https://www.opendronemap.org/webodm/
GNU Affero General Public License v3.0
2.91k stars 964 forks source link

WebpackError at /welcome/ after using Install Script Ubuntu 16.04 #538

Closed Wlanfr3ak closed 6 years ago

Wlanfr3ak commented 6 years ago

How did you install WebODM? (Docker, natively, ...)?

WebODM Script for Ubuntu Server 16..04 LTS

What's your browser and operating system? (Copy/paste the output of https://www.whatismybrowser.com/)

Firefox 62 on Windows 10

What is the problem?

WebODM Website didnt open after Installing WebODM with the Installer

What should be the expected behavior?

Normally in my Tests i can now set a Password

How can we reproduce this? (What steps did you do to trigger the problem? What parameters are you using for processing? If possible please include a copy of your dataset uploaded on Google Drive or Dropbox. Be detailed)

Try to install the Script on a 16.04.5 64Bit

Output:

WebpackError at /welcome/

        ModuleBuildError in 
        Module build failed (from ./node_modules/extract-text-webpack-plugin/dist/loader.js):

ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (/usr/lib/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.sassLoader (/webodm/node_modules/sass-loader/lib/loader.js:46:72) at runLoaders (/usr/lib/node_modules/webpack/lib/NormalModule.js:286:20) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at process.nextTick (/usr/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:73:15) at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickCallback (internal/process/next_tick.js:181:9)

Request Method: GET Request URL: http:///welcome/ Django Version: 2.0.3 Exception Type: WebpackError Exception Value:

        ModuleBuildError in 
        Module build failed (from ./node_modules/extract-text-webpack-plugin/dist/loader.js):

ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (/usr/lib/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.sassLoader (/webodm/node_modules/sass-loader/lib/loader.js:46:72) at runLoaders (/usr/lib/node_modules/webpack/lib/NormalModule.js:286:20) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at process.nextTick (/usr/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:73:15) at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickCallback (internal/process/next_tick.js:181:9)

Exception Location: /webodm/python3-venv/lib/python3.5/site-packages/webpack_loader/loader.py in get_bundle, line 97 Python Executable: /webodm/python3-venv/bin/python3 Python Version: 3.5.2 Python Path:

['/webodm', '/webodm/python3-venv/bin', '/webodm/python3-venv/lib/python35.zip', '/webodm/python3-venv/lib/python3.5', '/webodm/python3-venv/lib/python3.5/plat-x86_64-linux-gnu', '/webodm/python3-venv/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/webodm/python3-venv/lib/python3.5/site-packages', '/webodm']

Server time: Di, 16 Okt 2018 13:22:38 +0200

Error during template rendering

In template /webodm/app/templates/app/base.html, error at line 25 ModuleBuildError in Module build failed (from ./node_modules/extract-text-webpack-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (/usr/lib/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.sassLoader (/webodm/node_modules/sass-loader/lib/loader.js:46:72) at runLoaders (/usr/lib/node_modules/webpack/lib/NormalModule.js:286:20) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at process.nextTick (/usr/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:73:15) at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickCallback (internal/process/next_tick.js:181:9) 15 16 17 {% block extra-headers %}{% endblock %} 18
19 20 21 22 23
24 {% load render_bundle from webpack_loader %} 25 {% render_bundle 'main' %} 26
27 {% autoescape off %} 28 {% get_plugins_js_includes %} 29 {% get_plugins_css_includes %} 30 {% endautoescape %} 31
32 {{title|default:"Login"}} - {{ SETTINGS.app_name }} 33
34 {% compress css %} 35

Environment:

Request Method: GET Request URL: http:///welcome/

Django Version: 2.0.3 Python Version: 3.5.2 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'django_filters', 'guardian', 'rest_framework', 'rest_framework_nested', 'webpack_loader', 'corsheaders', 'colorfield', 'imagekit', 'codemirror2', 'compressor', 'app', 'nodeodm'] Installed Middleware: ['corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware']

Template error: In template /webodm/app/templates/app/base.html, error at line 25

        ModuleBuildError in 
        Module build failed (from ./node_modules/extract-text-webpack-plugin/dist/loader.js):

ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (/usr/lib/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.sassLoader (/webodm/node_modules/sass-loader/lib/loader.js:46:72) at runLoaders (/usr/lib/node_modules/webpack/lib/NormalModule.js:286:20) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at process.nextTick (/usr/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:73:15) at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickCallback (internal/process/next_tick.js:181:9)

15 : 16 : 17 : {% block extra-headers %}{% endblock %} 18 : 19 : 20 : 21 : 22 : 23 : 24 : {% load render_bundle from webpack_loader %} 25 : {% render_bundle 'main' %} 26 : 27 : {% autoescape off %} 28 : {% get_plugins_js_includes %} 29 : {% get_plugins_css_includes %} 30 : {% endautoescape %} 31 : 32 : {{title|default:"Login"}} - {{ SETTINGS.app_name }} 33 : 34 : {% compress css %} 35 :

Traceback:

File "/webodm/python3-venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response

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

File "/webodm/python3-venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response

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

File "/webodm/app/views/app.py" in welcome

  1. 'firstuserform': fuf

File "/webodm/python3-venv/lib/python3.5/site-packages/django/shortcuts.py" in render

  1. content = loader.render_to_string(template_name, context, request, using=using)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/loader.py" in render_to_string

  1. return template.render(context, request)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/backends/django.py" in render

  1. return self.template.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render

  1. return self._render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in _render

  1. return self.nodelist.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render

  1. bit = node.render_annotated(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render_annotated

  1. return self.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/loader_tags.py" in render

  1. return compiled_parent._render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in _render

  1. return self.nodelist.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render

  1. bit = node.render_annotated(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render_annotated

  1. return self.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/loader_tags.py" in render

  1. return compiled_parent._render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in _render

  1. return self.nodelist.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render

  1. bit = node.render_annotated(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/base.py" in render_annotated

  1. return self.render(context)

File "/webodm/python3-venv/lib/python3.5/site-packages/django/template/library.py" in render

  1. output = self.func(*resolved_args, **resolved_kwargs)

File "/webodm/python3-venv/lib/python3.5/site-packages/webpack_loader/templatetags/webpack_loader.py" in render_bundle

  1. tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)

File "/webodm/python3-venv/lib/python3.5/site-packages/webpack_loader/utils.py" in get_as_tags

  1. bundle = _get_bundle(bundle_name, extension, config)

File "/webodm/python3-venv/lib/python3.5/site-packages/webpack_loader/utils.py" in _get_bundle

  1. bundle = get_loader(config).get_bundle(bundle_name)

File "/webodm/python3-venv/lib/python3.5/site-packages/webpack_loader/loader.py" in get_bundle

  1. raise WebpackError(error)

Exception Type: WebpackError at /welcome/ Exception Value: ModuleBuildError in Module build failed (from ./node_modules/extract-text-webpack-plugin/dist/loader.js): ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Cannot find module 'node-sass' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (/usr/lib/node_modules/webpack-cli/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.sassLoader (/webodm/node_modules/sass-loader/lib/loader.js:46:72) at runLoaders (/usr/lib/node_modules/webpack/lib/NormalModule.js:286:20) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /usr/lib/node_modules/webpack/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at process.nextTick (/usr/lib/node_modules/webpack/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:73:15) at _combinedTickCallback (internal/process/next_tick.js:132:7) at process._tickCallback (internal/process/next_tick.js:181:9)

Wlanfr3ak commented 6 years ago

At the moment it can be a problem from me because i use: "sudo ./webodm_install.sh" and not "bash webodm_install.sh" (like in the Manual) i will test it in the next hour and update here.

Wlanfr3ak commented 6 years ago

Okay, i test it again and with the solution from the manual it works now.

smathermather commented 6 years ago

Excellent!