HOW-TO recover from beatifulNames uninstall bug — CyberPanel - WebHosting Control Panel for OpenLiteSpeed
CyberHosting

HOW-TO recover from beatifulNames uninstall bug

edited July 19 in Plugins
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:
https://github.com/usmannasir/beautiful_names/issues/1

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:

1) Edit /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html
(I made a backup copy of it before editing)

2) 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 (<a>) got stripped and does not have a closing tag.

3) Replace it with the original code from github source (https://github.com/usmannasir/cyberpanel/blob/stable/baseTemplate/templates/baseTemplate/index.html)

<li><a href="{% url 'installed' %}"
title="{% trans 'Installed Plugins' %}"><span>{% trans "Installed" %}</span></a>
</li>

4) 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 <module>
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:
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!