Hi all,
I’ve recently expiriencing some issue after apt upgrade on my ubuntu machine. Cyberpanel itself and all websites work fine. I’m able to add/remove websites, add/remove dns entries, issue ssl etc.
But when I try to change htaccess file or look at the logs site comes back with django error.
Provider: OneProvider
Virtualization Type: N/A it’s dedicated server
System: Ubuntu 18.04
Installation option:
OLS
Installing from official server or mirror server?
official
Replace JS/CSS files to JS Delivr?
no
Install Memcached extension for PHP?
yes
Install LiteSpeed Memcached?
yes
Install Memcached?
yes
Install Redis extension for PHP?
yes
Install Redis?
yes
When trying to save htaccess
Could not save rewrite rules. Error message: Traceback (most recent call last): File “/usr/local/CyberCP/plogical/virtualHostUtilities.py”, line 26, in from vhost import vhost File “/usr/local/CyberCP/plogical/vhost.py”, line 23, in from managePHP.phpManager import PHPManager File “/usr/local/CyberCP/managePHP/phpManager.py”, line 6, in from .models import * File “/usr/local/CyberCP/managePHP/models.py”, line 9, in class PHP(models.Model): File “/usr/local/CyberCP/managePHP/models.py”, line 10, in PHP phpVers = models.CharField(max_length=5,unique=True) File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 1057, in init super(CharField, self).init(*args, **kwargs) File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 172, in init self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 56, in getattr self._setup(name) File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 41, in _setup self._wrapped = Settings(settings_module) File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 110, in init mod = importlib.import_module(self.SETTINGS_MODULE) File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module import(name) ImportError: No module named settings
When trying to access site logs
Traceback (most recent call last):
File “/usr/local/CyberCP/plogical/virtualHostUtilities.py”, line 26, in
from vhost import vhost
File “/usr/local/CyberCP/plogical/vhost.py”, line 23, in
from managePHP.phpManager import PHPManager
File “/usr/local/CyberCP/managePHP/phpManager.py”, line 6, in
from .models import *
File “/usr/local/CyberCP/managePHP/models.py”, line 9, in
class PHP(models.Model):
File “/usr/local/CyberCP/managePHP/models.py”, line 10, in PHP
phpVers = models.CharField(max_length=5,unique=True)
File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 1057, in init
super(CharField, self).init(*args, **kwargs)
File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/db/models/fields/init.py”, line 172, in init
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 56, in getattr
self._setup(name)
File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 41, in _setup
self._wrapped = Settings(settings_module)
File “/usr/local/CyberCP/local/lib/python2.7/site-packages/django/conf/init.py”, line 110, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named settings
Alto I do have full rsync backup from when it was still working, I would like to know if that’s something that’s someone already seen and is fixible
Thank you.