I wanted to try the beatifulNames plugin. I installed it but could not make it work (got 500 error immediately). So I removed it. But the CyberPanel interface got broken, constantly forwarding to installed plugins area. So I had to dig a bit. Here is what I found and how I recovered (I’m completely new to CyberPanel and Django).
First of all it is already reported as an issue:
I found that the “remove” procedure was messing with the template, I found it just by looking at the html source code. Steps to correct:
-
Edit /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html
(I made a backup copy of it before editing) -
Near the end find the following code:
<div class="sidebar-submenu"> <ul> <li><a href="{% url 'installed' %}" </li> </ul> </div><!-- .sidebar-submenu -->
As you can see the anchor tag () got stripped and does not have a closing tag.
-
Replace it with the original code from github source (cyberpanel/index.html at stable · usmannasir/cyberpanel · GitHub)
<li><a href="{% url 'installed' %}" title="{% trans 'Installed Plugins' %}"><span>{% trans "Installed" %}</span></a> </li>
-
From SSH, restart lspcd
service lscpd restart
That’s it…
I hope this helps somebody…
Here is what I found during examination:
In /home/cyberpanel/stderr.log a couple of the following:
Traceback (most recent call last):
File “/usr/local/CyberCP/CyberCP/wsgi.py”, line 16, in
application = get_wsgi_application()
File “/usr/local/CyberCP/lib/python3.6/site-packages/django/core/wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “/usr/local/CyberCP/lib/python3.6/site-packages/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/usr/local/CyberCP/lib/python3.6/site-packages/django/apps/registry.py”, line 122, in populate
app_config.ready()
File “/usr/local/CyberCP/beautifulNames/apps.py”, line 10, in ready
from . import signals
File “/usr/local/CyberCP/beautifulNames/signals.py”, line 71
except BaseException, msg: