CyberPanel support for Ubuntu 22

Hi,

We were having too many requests to support Ubuntu 22 as you can see here, here and here

Earlier OpenLiteSpeed and LiteSpeed repos did not have support for Ubuntu 22 so we had no choice but to wait.

Finally LiteSpeed repos started offering support for Ubuntu 22, so for past 1 month I was working to add support for Ubuntu 22.

There was some trouble in LSCPD binary which has been resolved finally.

CyberPanel is now functional with Ubuntu 22, but its not production ready yet. If you want to test it out and report bugs, you can install it on Ubuntu 22 using the commands below and report any bugs in this thread

wget https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.3-dev/cyberpanel.sh
chmod +x cyberpanel.sh
./cyberpanel.sh

Important note: When asked for version during installation, must provide 2.3.3-dev.

Note: Ubuntu 22 have PHP Versions PHP 7.4 and above.

Thank you.

4 Likes

Is there also an upgrade script ?

Upgrade process follows the same procedure, but its better not to upgrade your production servers to it yet.

Also if your current OS is Ubuntu 20 then you should set up fresh server rather then upgrading your OS.

When I upgrade with the normal upgrader Skript it tells me that the OS isnt supported.

How can you upgrade because CP installation on Ubuntu 22 was not supported earlier?

I upgrades to Version 2.3.3 than I did an distro Upgrade, to get an 503 Error. Now I would like to upgrade to the 2.3.3 dev.

You upgraded from 20.04 to 22.04 and its your normal production server?

no it is a dev server so it isnt critical

then it is better that you start fresh on Ubuntu 22, dont waste time on upgraded OS.

PowerDNS whas not running or start

PowerDNS Running now am changed /etc/pdns/pdns.conf permission from 600 to 644

Will look into it, thanks

So far 2 issues was reported.

  1. Powerdns didn’t work - Resolved.
  2. PHPMyAdmin - Resolved.

@usmannasir I spun up a virtual server at Vultr with Ubuntu 22.04 and installed CyberPanel 2.3.3-dev.

The process was easy, and so far, no problems.

Let me know if you want me to test out things.

Thank you for all the hard work you put in.

Thanks. I’ve silently merged the v2.3.3-dev branch to v2.3.2 stable branch few days ago as no issues were reported.

So far looks like things are going smooth and we may release v2.3.3 soon.

@Senator

1 Like

I got this error when I try to upgrade on Unbuntu 22

python3-pip is already the newest version (22.0.2+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
build-essential is already the newest version (12.9ubuntu3).
libffi-dev is already the newest version (3.4.2-4).
libssl-dev is already the newest version (3.0.2-0ubuntu1.6).
python3-dev is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
python3-venv is already the newest version (3.10.6-1~22.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: virtualenv==16.7.9 in /usr/local/lib/python3.10/dist-packages (16.7.9)
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: 12. Virtual Environments and Packages — Python 3.11.1 documentation

No need to re-setup virtualenv at /usr/local/CyberPanel…

–2022-10-15 15:38:44-- https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.3.2/requirments.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 185.199.111.133, 185.199.109.133, 185.199.110.133, …
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1475 (1.4K) [text/plain]
Saving to: ‘/usr/local/requirments.txt’

/usr/local/requirme 100%[===================>] 1.44K --.-KB/s in 0s

2022-10-15 15:38:44 (28.3 MB/s) - ‘/usr/local/requirments.txt’ saved [1475/1475]

Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = ‘/usr/local/CyberPanel/bin/python3’
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = ‘/usr/local/CyberPanel/bin/python3’
sys.base_prefix = ‘/usr’
sys.base_exec_prefix = ‘/usr’
sys.executable = ‘/usr/local/CyberPanel/bin/python3’
sys.prefix = ‘/usr’
sys.exec_prefix = ‘/usr’
sys.path = [
‘/usr/lib/python38.zip’,
‘/usr/lib/python3.8’,
‘/usr/lib/lib-dynload’,
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named ‘encodings’

Current thread 0x00007fd3ad96c740 (most recent call first):

above command failed…
dasd@xdd:~# client_loop: send disconnect: Broken pipe

2 Likes

Dear Sir,

root@C20210814185128:~# hostnamectl
Static hostname: C20210814185128
Icon name: computer-vm
Chassis: vm
Machine ID: ca3bc69b2f5d3c646f08f31da391dd4c
Boot ID: 0b4e14c3cd1740e0b63258927c46a6e4
Virtualization: kvm
Operating System: Ubuntu 22.04 LTS
Kernel: Linux 5.15.0-30-generic
Architecture: x86-64
Hardware Vendor: Red Hat
Hardware Model: KVM

Error happen, for the Install Service

systemctl list-units --failed

UNIT LOAD ACTIVE SUB DESCRIPTION
● fwupd-refresh.service loaded failed failed Refresh fwupd metadata and update motd
● logrotate.service loaded failed failed Rotate log files
● networking.service loaded failed failed Raise network interfaces
● ua-timer.service loaded failed failed Ubuntu Advantage Timer for running repeated jobs
● unattended-upgrades.service loaded failed failed Unattended Upgrades Shutdown

It is need Linux 5.15.0-50-generic

The: Create Email List does not work in Cyberpanel

It gives the result;

cat: /home/cyberpanel/9896: No such file or directory

… and is stuck showing the spinning two balls at the line: create email list. Also: the Go-Back button does not respond/do-anything
… when trying again (for example after a new login to cyberpanel); the number is always different

when:

at: [as a new community user: I had to remove the link.]/emailMarketing/[as a new community user: I had to remove the link.]/emailLists

Did put into field; List Name: testemails

Did put into field; Path: /home/[as a new community user: I had to remove the link.]/temptestemails.txt

Note that prior to doing this:

at: [as a new community user: I had to remove the link.]/filemanager/[as a new community user: I had to remove the link.]

… the filemanager shows in the folder: Home (Current path: /home/[as a new community user: I had to remove the link.]) a file: temptestemails.txt with permissions: -rwxrwxrwx (That is: 777)
… I changed the file permission to 777 to eliminate any access restrictions.

My question is: How do I debug the actual cause for this failure?

None of your instructions in: Log files on CyberPanel give any additional helpful data.

==> I need a much better way to debug and dig up the root cause.

My setup:

The Cyberpanel version as from the Version Management:

CyberPanel
Current Version: 2.3
Build: 2
Current Commit: 7427667c14c2ddbc2fcb7bfa35870155d4a343dc
Latest Version: 2.3
Latest Build: 2
Latest Commit: 7427667c14c2ddbc2fcb7bfa35870155d4a343dc

The web server:

OpenLiteSpeed

The Ubuntu freshly installed VPS-instance as shown by command: cat /etc/*release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION=“Ubuntu 22.04.1 LTS”
PRETTY_NAME=“Ubuntu 22.04.1 LTS”
NAME=“Ubuntu”
VERSION_ID=“22.04”
VERSION=“22.04.1 LTS (Jammy Jellyfish)”
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL= [as a new community user: I had to remove the link.]
SUPPORT_URL= [as a new community user: I had to remove the link.]
BUG_REPORT_URL= [as a new community user: I had to remove the link.]
PRIVACY_POLICY_URL= [as a new community user: I had to remove the link.]
UBUNTU_CODENAME=jammy

P.S If necessary: I can DM to you the whole installation log that was created from the ssh-connection monitor output. (lasted [more than] 45 minutes)

P.P.S After reading the thread; was it a (=the) mistake to install into Ubuntu 22.04 in this way:

curl -o cyberpanel.sh “https://cyberpanel.sh/?dl&Ubuntu22
chmod +x cyberpanel.sh
./cyberpanel.sh $@

An update:

It seems to get stuck in a function: installWordpressStatus

==> It keeps repeating the installWordpressStatus after it just once does the: submitEmailList


Shows in the view: cat: /home/cyberpanel/5080: No such file or directory

submitEmailList
{status: 1, tempStatusPath: “/home/cyberpanel/5080”}
status: 1
tempStatusPath: “/home/cyberpanel/5080”

installWordpressStatus
{abort: 0, installStatus: 0, installationProgress: 0,…}
abort: 0
currentStatus: “cat: /home/cyberpanel/5080: No such file or directory”
installStatus: 0
installationProgress: 0

My question: Is it really so that it is not possible to load any emaillist when wordpress is not installed?

I had/have no intention for using wordpress for this domain.

P.S I noticed this behavior with the browser “Developer Tools” (nowadays almost any browser has it)

Hi, @usmannasir

I am trying to put some debug points into:

/usr/local/CyberCP/emailMarketing/static/emailMarketing/emailMarketing.js

with:

new PNotify({
title: ‘Debugging Point Output’,
text: ‘The flow got this far, the specific info is…’,
type: ‘error’});

However, no matter where I put it; nothing shows.

So, my question: how do I reset all the server(s?) caches so that the(=my) server then actually takes the javascript file I modified?

Hi,

IF: you experience the problem:

“Create Email List does not work in Cyberpanel”

It gives you the result;

cat: /home/cyberpanel/9896: No such file or directory

… and is stuck showing the spinning two balls at the line: create email list. Also: the Go-Back button does not respond/do-anything
… when trying again (for example after a new login to cyberpanel); the number is always different

THEN: you need to check the following file: emailMarketingManager.py

Which for example in Ubuntu22 can be found in folder:

/usr/local/CyberCP/emailMarketing/

In the file: emailMarketingManager.py

You need to change/edit the two following lines: (Usually at lines 144 and 145)

line 144: # em = EM(‘createEmailList’, extraArgs)
line 145: # em.start()

…to become as this:

line 144: em = EM(‘createEmailList’, extraArgs)
line 145: em.start()

Saying this thing in an other way: the lines need to be uncommented. The # makes anything after it a comment, so that is why you need to remove it in these lines.