Official Mumble VoIP Forums

problems with python-django after an os debian upgrade

It crashed, it is bugged, ...
We have a problem after upgrading a server from Debian 7 Wheezy to Debian 8 Jessie. The mumble server is in use, but there is problems on the site-page, a message:
The requested URL /mumble/embed/1 was not found on this server.
we have delete mumble-django et python-django-* to install python3. now we have logs like:

Code: Select all

# python3 manage.py
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 354, in execute
    django.setup()
  File "/usr/lib/python3/dist-packages/django/__init__.py", line 21, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/usr/lib/python3/dist-packages/django/apps/config.py", line 87, in create
    module = import_module(entry)
  File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
  File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
  File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
ImportError: No module named 'mumble'
other logs:

Code: Select all

[Wed Oct 03 00:05:51.648488 2018] [autoindex:error] [pid 11966] [client 90.108.253.21:44164] AH01276: Cannot serve directory /usr/share/mumble-django/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
[Wed Oct 03 00:07:41.250804 2018] [autoindex:error] [pid 11959] [client 90.108.253.21:44202] AH01276: Cannot serve directory /usr/share/mumble-django/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
[Wed Oct 03 00:07:47.464647 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Target WSGI script '/usr/share/mumble-django/mumble-django.wsgi' cannot be loaded as Python module.
[Wed Oct 03 00:07:47.465068 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Exception occurred processing WSGI script '/usr/share/mumble-django/mumble-django.wsgi'.
[Wed Oct 03 00:07:47.465320 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] Traceback (most recent call last):
[Wed Oct 03 00:07:47.465628 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/share/mumble-django/mumble-django.wsgi", line 29, in <module>
[Wed Oct 03 00:07:47.465818 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     application = get_wsgi_application()
[Wed Oct 03 00:07:47.466056 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Wed Oct 03 00:07:47.466239 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     django.setup()
[Wed Oct 03 00:07:47.466455 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/__init__.py", line 21, in setup
[Wed Oct 03 00:07:47.466639 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     apps.populate(settings.INSTALLED_APPS)
[Wed Oct 03 00:07:47.466889 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 78, in populate
[Wed Oct 03 00:07:47.467067 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     raise RuntimeError("populate() isn't reentrant")
[Wed Oct 03 00:07:47.467273 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] RuntimeError: populate() isn't reentrant
[Wed Oct 03 00:13:01.521974 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Target WSGI script '/usr/share/mumble-django/mumble-django.wsgi' cannot be loaded as Python module.
[Wed Oct 03 00:13:01.522076 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Exception occurred processing WSGI script '/usr/share/mumble-django/mumble-django.wsgi'.
[Wed Oct 03 00:13:01.522139 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] Traceback (most recent call last):
[Wed Oct 03 00:13:01.522250 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/share/mumble-django/mumble-django.wsgi", line 29, in <module>
[Wed Oct 03 00:13:01.522277 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     application = get_wsgi_application()
[Wed Oct 03 00:13:01.522359 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Wed Oct 03 00:13:01.522388 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     django.setup()
[Wed Oct 03 00:13:01.522444 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/__init__.py", line 21, in setup
[Wed Oct 03 00:13:01.522462 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     apps.populate(settings.INSTALLED_APPS)
[Wed Oct 03 00:13:01.522511 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]   File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 78, in populate
[Wed Oct 03 00:13:01.522529 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194]     raise RuntimeError("populate() isn't reentrant")
[Wed Oct 03 00:13:01.522569 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] RuntimeError: populate() isn't reentrant
python-django: 1.7.11-1+deb8u3
python-django-mumble: 2.13-1

Can you help us resolve these issues ?
I am not too familiar with Django or Mumble-Django.

You installed the mumble-django package from the official debian packages? So

https://packages.debian.org/jessie/mumble-django

From the logs

> ImportError: No module named 'mumble'

indicates the module is missing, which should be included with or a dependency of that package.

No broken package installs?

> [Wed Oct 03 00:05:51.648488 2018] [autoindex:error] [pid 11966] [client 90.108.253.21:44164] AH01276: Cannot serve directory /usr/share/mumble-django/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive

indicates it does not respect python index files? Did the webserver setup for python hosting break?

> [Wed Oct 03 00:07:47.464647 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Target WSGI script '/usr/share/mumble-django/mumble-django.wsgi' cannot be loaded as Python module.
> [Wed Oct 03 00:07:47.465068 2018] [wsgi:error] [pid 11915] [remote 90.108.253.21:33194] mod_wsgi (pid=11915): Exception occurred processing WSGI script '/usr/share/mumble-django/mumble-django.wsgi'.

This may either be because of the missing python module logged elsewhere, or the wsgi config may be wrong, or how it is loaded is wrong in webserver configuration.

Why did you not label which log is which?