Create website or create domain error

UnboundLocalError at /websites/CreateNewDomain
local variable 'test_domain_status' referenced before assignment
Request Method:	GET
Request URL:	https://135.125.210.141:8090/websites/CreateNewDomain
Django Version:	3.1.3
Exception Type:	UnboundLocalError
Exception Value:	
local variable 'test_domain_status' referenced before assignment
Exception Location:	/usr/local/CyberCP/websiteFunctions/website.py, line 710, in CreateNewDomain
Python Executable:	/usr/local/CyberCP/bin/python
Python Version:	3.6.8
Python Path:	
['',
 '/usr/local/CyberCP/bin',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP/lib64/python36.zip',
 '/usr/local/CyberCP/lib64/python3.6',
 '/usr/local/CyberCP/lib64/python3.6/lib-dynload',
 '/usr/lib64/python3.6',
 '/usr/lib/python3.6',
 '/usr/local/CyberCP/lib/python3.6/site-packages',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP',
 '/usr/local/CyberCP']

I can’t add site or domain name

Hello @maxwell

Which server os is this?

Are you using the latest version of cyberpanel ?

Hello, @josephgodwinke

I get the same error in both ubuntu 18.04 and centos 8.5 versions.

Current Version: 2.3

Build: 4

Current Commit:

1ac841449eb3aabac68a4a2548b07a6cd502df2f

Using centos 8.5 have you tried to run cyberpanel upgrade script to see if issue goes away.

Kindly post your python3 version on centos 8.5

Python v. 3.6.8

I’ve tried with 3 different operating systems and I’m in the same situation. I couldn’t find a solution.

Did you perform cyberpanel installation on a clean os ? no python no php no webserver or mariadb

I’m installing on a clean operating system, now I’ve installed cyberpanel on a different vps, on almalinux, it still gives the same error. I think there is a general error

Can you try this on a clean os. Ensure there is no python3 installed. Install Python 3.8.10 and try to install cyberpanel

I also did what you said the problem is not related to python3. The problem is related to the test domain.

Did you disable using test domain and add your own domain ?

I can’t come to that part at all, you get this error when you click on the add new domain or add new site button

1 Like

I’m also having the same problem, on a fresh install done on Linode using the Marketplace app.

I tried 2 times on Linode, the same problem happened. I created a droplet on DigitalOcean using the Marketplace and it worked perfectly on the first try.

Ubuntu 22.04

same issue like maxwell fresh install on ubuntu 22.4 just when click to create website or domain !!

I installed a fresh almalinux 8. I installed Python 3.10.0 on it and installed Cyberpanel version 2.3.3 and now I can add sites. I recommend installing this way.

i have problem with install in almalinux
check this post CyberPanel | hello every one .
and how i can choose version ? just write 2.3.3 ? when install start ?
also on ubuntu the python 3.10.0 is installed
@maxwell

in this step;
Press Enter key to continue with latest version or Enter specific version such as: 1.9.4 , 2.0.1 , 2.0.2 …etc

Type 2.3.3 and press enter

and about alma linux problem installation did you face it ot notice it during installation ?

I did not receive any error messages during the almalinux 8 installation. What is the error message you get?