Debug — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberLoader

Debug

How do i debug the panel for the Schedule backup?

Comments

  • edited October 2017

    /usr/local/CyberCP/CyberCP/settings.py

    change DEBUG = False > DEBUG = True

  • Where Do I find this? And edit this

  • You need to edit this file

    /usr/local/CyberCP/CyberCP/settings.py

    This file contains

    DEBUG = False

    You need to change it to

    DEBUG = True

  • Hello,

    I still don't know how to edit ssh files is there a comand for ssh or something

  • `Environment:

    Request Method: GET
    Request URL: https://mywebsite.com/backup/scheduleBackup

    Django Version: 1.11.6
    Python Version: 2.7.5
    Installed Applications:
    ['django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'baseTemplate',
    'loginSystem',
    'packages',
    'websiteFunctions',
    'tuning',
    'serverStatus',
    'dns',
    'ftp',
    'userManagment',
    'databases',
    'mailServer',
    'serverLogs',
    'filemanager_app',
    'firewall',
    'backup',
    'managePHP',
    'manageSSL']
    Installed Middleware:
    ['django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware']

    Traceback:

    File "/usr/lib64/python2.7/site-packages/django/core/handlers/exception.py" in inner
    41. response = get_response(request)

    File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in _get_response
    187. response = self.process_exception_by_middleware(e, request)

    File "/usr/lib64/python2.7/site-packages/django/core/handlers/base.py" in _get_response
    185. response = wrapped_callback(request, *callback_args, **callback_kwargs)

    File "/usr/local/CyberCP/backup/views.py" in scheduleBackup
    663. homeDest.save()

    File "/usr/lib64/python2.7/site-packages/django/db/models/base.py" in save
    808. force_update=force_update, update_fields=update_fields)

    File "/usr/lib64/python2.7/site-packages/django/db/models/base.py" in save_base
    838. updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)

    File "/usr/lib64/python2.7/site-packages/django/db/models/base.py" in _save_table
    924. result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)

    File "/usr/lib64/python2.7/site-packages/django/db/models/base.py" in _do_insert
    963. using=using, raw=raw)

    File "/usr/lib64/python2.7/site-packages/django/db/models/manager.py" in manager_method
    85. return getattr(self.get_queryset(), name)(*args, **kwargs)

    File "/usr/lib64/python2.7/site-packages/django/db/models/query.py" in _insert
    1076. return query.get_compiler(using=using).execute_sql(return_id)

    File "/usr/lib64/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
    1107. cursor.execute(sql, params)

    File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py" in execute
    80. return super(CursorDebugWrapper, self).execute(sql, params)

    File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py" in execute
    65. return self.cursor.execute(sql, params)

    File "/usr/lib64/python2.7/site-packages/django/db/utils.py" in exit
    94. six.reraise(dj_exc_type, dj_exc_value, traceback)

    File "/usr/lib64/python2.7/site-packages/django/db/backends/utils.py" in execute
    65. return self.cursor.execute(sql, params)

    File "/usr/lib64/python2.7/site-packages/django/db/backends/mysql/base.py" in execute
    101. return self.cursor.execute(query, args)

    File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py" in execute
    205. self.errorhandler(self, exc, value)

    File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py" in defaulterrorhandler
    36. raise errorclass, errorvalue

    Exception Type: IntegrityError at /backup/scheduleBackup
    Exception Value: (1062, "Duplicate entry 'Home' for key 'destLoc'")`

  • Noted, will look into this.

  • edited October 2017
    You want root access
  • It looks like you are trying to setup same destination twice?

  • @usmannasir said:
    Fixed in the latest build.

    when will the update come out?

Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!