webvirtcloud icon indicating copy to clipboard operation
webvirtcloud copied to clipboard

500 Internal server error

Open lmsdscav opened this issue 3 years ago • 8 comments

it says 500 error if i opened user configuration. and it will also be 500 if i connected ssh and opened "Instances" tab.

How can i fix it?:( Uploading Screenshot_20220626-165515381.png…

lmsdscav avatar Jun 26 '22 08:06 lmsdscav

Screenshot_20220626-165515381

lmsdscav avatar Jun 26 '22 08:06 lmsdscav

if you update it lately. you should run python manage.py makemigrations; python manage.py migrate commands

catborise avatar Jun 27 '22 06:06 catborise

I have the same problem on clean ubuntu 20.04 installation.

pysiek634 avatar Jul 11 '22 12:07 pysiek634

Debug=true shows missing instances_instance.drbd column in sqlite database. After fresh installation! python3 manage.py migrate was usefull for me.

pysiek634 avatar Jul 11 '22 15:07 pysiek634

srv1:/srv/webvirtcloud# python3 manage.py migrate Traceback (most recent call last): File "/srv/webvirtcloud/manage.py", line 21, in main() File "/srv/webvirtcloud/manage.py", line 17, in main execute_from_command_line(sys.argv) File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 381, in execute_from_command_line utility.execute() File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 357, in execute django.setup() File "/usr/lib/python3/dist-packages/django/init.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in populate app_config = AppConfig.create(entry) File "/usr/lib/python3/dist-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 984, in _find_and_load_unlocked ModuleNotFoundError: No module named 'django_bootstrap5'

Debian 11

gilbertoferreira avatar Jul 21 '22 18:07 gilbertoferreira

SOLVED 134 pip install django-bootstrap5 135 python3 manage.py migrate 136 pip install django-icons 137 python3 manage.py migrate

gilbertoferreira avatar Jul 21 '22 18:07 gilbertoferreira

@gilbertoferreira you should install requirements with pip3 install -r conf/requirements.txt .

catborise avatar Jul 22 '22 06:07 catborise

@gilbertoferreira you should install requirements with pip3 install -r conf/requirements.txt .

Yes! I do that following the installation instructions. But nevertheless after install it give the 500 error! Just solved after do the above

gilbertoferreira avatar Jul 22 '22 11:07 gilbertoferreira