I am using CentOS 7, and when I try to update CyberPanel, I encounter some errors below and receive a 503 error when trying to access the panel.
[11.07.2024_10-44-58] #########################################################################
[11.07.2024_10-44-58] Remove old static content successful.
[11.07.2024_10-44-58] #########################################################################
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 16, in setup
from django.urls import set_script_prefix
File "/usr/local/lib/python3.8/site-packages/django/urls/__init__.py", line 1, in <module>
from .base import (
File "/usr/local/lib/python3.8/site-packages/django/urls/base.py", line 9, in <module>
from .exceptions import NoReverseMatch, Resolver404
File "/usr/local/lib/python3.8/site-packages/django/urls/exceptions.py", line 1, in <module>
from django.http import Http404
File "/usr/local/lib/python3.8/site-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python3.8/site-packages/django/http/response.py", line 15, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/base.py", line 7, in <module>
from django.db import models
File "/usr/local/lib/python3.8/site-packages/django/db/models/__init__.py", line 20, in <module>
from django.db.models.fields.files import FileField, ImageField
File "/usr/local/lib/python3.8/site-packages/django/db/models/fields/files.py", line 8, in <module>
from django.core.files.storage import Storage, default_storage
File "/usr/local/lib/python3.8/site-packages/django/core/files/storage/__init__.py", line 3, in <module>
from django.conf import DEFAULT_STORAGE_ALIAS, settings
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' (/usr/local/lib/python3.8/site-packages/django/conf/__init__.py)
[11.07.2024_10-44-58] #########################################################################
[11.07.2024_10-44-58] Remove old static content failed, trying again, try number: 1
[11.07.2024_10-44-58] #########################################################################
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 16, in setup
from django.urls import set_script_prefix
File "/usr/local/lib/python3.8/site-packages/django/urls/__init__.py", line 1, in <module>
from .base import (
File "/usr/local/lib/python3.8/site-packages/django/urls/base.py", line 9, in <module>
from .exceptions import NoReverseMatch, Resolver404
File "/usr/local/lib/python3.8/site-packages/django/urls/exceptions.py", line 1, in <module>
from django.http import Http404
File "/usr/local/lib/python3.8/site-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python3.8/site-packages/django/http/response.py", line 15, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/base.py", line 7, in <module>
from django.db import models
File "/usr/local/lib/python3.8/site-packages/django/db/models/__init__.py", line 20, in <module>
from django.db.models.fields.files import FileField, ImageField
File "/usr/local/lib/python3.8/site-packages/django/db/models/fields/files.py", line 8, in <module>
from django.core.files.storage import Storage, default_storage
File "/usr/local/lib/python3.8/site-packages/django/core/files/storage/__init__.py", line 3, in <module>
from django.conf import DEFAULT_STORAGE_ALIAS, settings
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' (/usr/local/lib/python3.8/site-packages/django/conf/__init__.py)
[11.07.2024_10-44-59] #########################################################################
[11.07.2024_10-44-59] Remove old static content failed, trying again, try number: 2
[11.07.2024_10-44-59] #########################################################################
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 377, in execute
django.setup()
File "/usr/local/lib/python3.8/site-packages/django/__init__.py", line 16, in setup
from django.urls import set_script_prefix
File "/usr/local/lib/python3.8/site-packages/django/urls/__init__.py", line 1, in <module>
from .base import (
File "/usr/local/lib/python3.8/site-packages/django/urls/base.py", line 9, in <module>
from .exceptions import NoReverseMatch, Resolver404
File "/usr/local/lib/python3.8/site-packages/django/urls/exceptions.py", line 1, in <module>
from django.http import Http404
File "/usr/local/lib/python3.8/site-packages/django/http/__init__.py", line 5, in <module>
from django.http.response import (
File "/usr/local/lib/python3.8/site-packages/django/http/response.py", line 15, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.8/site-packages/django/core/serializers/base.py", line 7, in <module>
from django.db import models
File "/usr/local/lib/python3.8/site-packages/django/db/models/__init__.py", line 20, in <module>
from django.db.models.fields.files import FileField, ImageField
File "/usr/local/lib/python3.8/site-packages/django/db/models/fields/files.py", line 8, in <module>
from django.core.files.storage import Storage, default_storage
File "/usr/local/lib/python3.8/site-packages/django/core/files/storage/__init__.py", line 3, in <module>
from django.conf import DEFAULT_STORAGE_ALIAS, settings
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' (/usr/local/lib/python3.8/site-packages/django/conf/__init__.py)
[11.07.2024_10-44-59] #########################################################################
[11.07.2024_10-44-59] Remove old static content failed, trying again, try number: 3
[11.07.2024_10-44-59] #########################################################################
[11.07.2024_10-44-59] #########################################################################
[11.07.2024_10-44-59] Remove old static content failed.
[11.07.2024_10-44-59] #########################################################################