WebODM show "Internal Server Error" message


#1

I install WebODM in Ubuntu and it’s works fine.

And sometimes the webpage display “Internal Server Error” message after I click UI link or refresh the page.

After I fresh the page again, the message gone and everything works fine.

Although every function is still working, the message is a little annoying for me.

Is there any way for me to solve the issue?


#2

Internal Server Error usually means an error in Django. Details are logged in the nginx error log. The location of the log depends on your installation. How did you install WebODM?


#3

I use VMware to install Ubuntu 16.04, with command:

git clone https://github.com/OpenDroneMap/WebODM --config core.autocrlf=input
cd WebODM
./webodm.sh start

I tried webodm.sh update/rebuild and the “Internal Server Error” message display sometimes.

I don’t know how to find the error log, could you give me some direction?

Here is the terminal message:
webapp | ERROR Internal Server Error: /login/
webapp | Traceback (most recent call last):
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py”, line 35, in inner
webapp | response = get_response(request)
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py”, line 158, in _get_response
webapp | response = self.process_exception_by_middleware(e, request)
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py”, line 156, in _get_response
webapp | response = response.render()
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/response.py”, line 106, in render
webapp | self.content = self.rendered_content
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/response.py”, line 83, in rendered_content
webapp | content = template.render(context, self._request)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/backends/django.py”, line 61, in render
webapp | return self.template.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 175, in render
webapp | return self._render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 167, in _render
webapp | return self.nodelist.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 943, in render
webapp | bit = node.render_annotated(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 910, in render_annotated
webapp | return self.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py”, line 155, in render
webapp | return compiled_parent._render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 167, in _render
webapp | return self.nodelist.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 943, in render
webapp | bit = node.render_annotated(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 910, in render_annotated
webapp | return self.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py”, line 155, in render
webapp | return compiled_parent._render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 167, in _render
webapp | return self.nodelist.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 943, in render
webapp | bit = node.render_annotated(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/base.py”, line 910, in render_annotated
webapp | return self.render(context)
webapp | File “/usr/local/lib/python3.6/site-packages/django/template/library.py”, line 192, in render
webapp | output = self.func(*resolved_args, **resolved_kwargs)
webapp | File “/webodm/app/templatetags/settings.py”, line 10, in settings_image_url
webapp | return “/media/” + getattr(context[‘SETTINGS’], image).url
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/init.py”, line 84, in url
webapp | return self._storage_attr(‘url’)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/init.py”, line 74, in _storage_attr
webapp | existence_required.send(sender=self, file=self)
webapp | File “/usr/local/lib/python3.6/site-packages/django/dispatch/dispatcher.py”, line 178, in send
webapp | for receiver in self._live_receivers(sender)
webapp | File “/usr/local/lib/python3.6/site-packages/django/dispatch/dispatcher.py”, line 178, in
webapp | for receiver in self._live_receivers(sender)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/registry.py”, line 53, in existence_required_receiver
webapp | self._receive(file, ‘on_existence_required’)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/registry.py”, line 61, in _receive
webapp | call_strategy_method(file, callback)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/utils.py”, line 166, in call_strategy_method
webapp | fn(file)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/strategies.py”, line 15, in on_existence_required
webapp | file.generate()
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/init.py”, line 93, in generate
webapp | self.cachefile_backend.generate(self, force)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/backends.py”, line 109, in generate
webapp | self.generate_now(file, force=force)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/backends.py”, line 96, in generate_now
webapp | file._generate()
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/cachefiles/init.py”, line 97, in _generate
webapp | content = generate(self.generator)
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/utils.py”, line 152, in generate
webapp | content = generator.generate()
webapp | File “/usr/local/lib/python3.6/site-packages/imagekit/specs/init.py”, line 150, in generate
webapp | img = open_image(self.source)
webapp | File “/usr/local/lib/python3.6/site-packages/pilkit/utils.py”, line 21, in open_image
webapp | target.seek(0)
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/files/utils.py”, line 20, in
webapp | seek = property(lambda self: self.file.seek)
webapp | File “/usr/local/lib/python3.6/site-packages/django/db/models/fields/files.py”, line 43, in _get_file
webapp | self._file = self.storage.open(self.name, ‘rb’)
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 33, in open
webapp | return self._open(name, mode)
webapp | File “/usr/local/lib/python3.6/site-packages/django/core/files/storage.py”, line 218, in _open
webapp | return File(open(self.path(name), mode))
webapp | FileNotFoundError: [Errno 2] No such file or directory: ‘/webodm/app/media/settings/logo512.png’