usmannasir / cyberpanel

Cyber Panel - The hosting control panel for OpenLiteSpeed
GNU General Public License v3.0
1.6k stars 613 forks source link

Can't delete website #97

Closed camdenorrb closed 3 years ago

camdenorrb commented 5 years ago

Whenever I try to delete a website it deletes the home folder for it but still shows it on the panel.

root@Server:~# sudo cyberpanel deleteWebsite --domainName domain.com
Failed to restart httpd.service: Unit httpd.service not found.
{"errorMessage": "None", "success": 1}

This setup is straight from digitalocean minus me upgrading it to 1.8.4 Ubuntu 18.04

Any ideas?

bilson commented 5 years ago

Same problem here

anoop-b commented 5 years ago

same here

meramsey commented 5 years ago

can confirm this too on Ubuntu 18.04.x happened on both 18.04.2 and 18.04.3

root@ols:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Cyberpanel version was force upgraded too but did not help.

Current Version
1.8
Build
9
Latest Version
1.8
Latest Build
9

Error shown when reproducing this via the GUI


[09-02-54-Thu-Aug-2019] [Errno 2] No such file or directory: '/home/example.com' [Not able to remove virtual host directory from /home continuing..]
[09-02-54-Thu-Aug-2019] [Errno 2] No such file or directory: '/usr/local/lsws/conf/vhosts/example.com' [Not able to remove virtual host configuration directory from /conf ]
[09-02-54-Thu-Aug-2019] (1008, "Can't drop database 'what_wpblogcom'; database doesn't exist")[deleteDatabase]
[09-02-54-Thu-Aug-2019] (1452, 'Cannot add or update a child row: a foreign key constraint fails (`cyberpanel`.`e_domains`, CONSTRAINT `e_domains_domainOwner_id_581e752a_fk_websiteFu` FOREIGN KEY (`domainOwner_id`) REFERENCES `websiteFunctions_websites` (`id`))') [Not able to remove virtual host configuration from main configuration file.]
[09-11-04-Thu-Aug-2019] [Errno 2] No such file or directory: '/home/example.com' [Not able to remove virtual host directory from /home continuing..]
[09-11-04-Thu-Aug-2019] [Errno 2] No such file or directory: '/usr/local/lsws/conf/vhosts/example.com' [Not able to remove virtual host configuration directory from /conf ]
[09-11-04-Thu-Aug-2019] (1008, "Can't drop database 'what_wpblogcom'; database doesn't exist")[deleteDatabase]
[09-11-04-Thu-Aug-2019] (1452, 'Cannot add or update a child row: a foreign key constraint fails (`cyberpanel`.`e_domains`, CONSTRAINT `e_domains_domainOwner_id_581e752a_fk_websiteFu` FOREIGN KEY (`domainOwner_id`) REFERENCES `websiteFunctions_websites` (`id`))') [Not able to remove virtual host configuration from main configuration file.]
[09-26-29-Thu-Aug-2019] [Errno 2] No such file or directory: '/home/example.com' [Not able to remove virtual host directory from /home continuing..]
[09-26-29-Thu-Aug-2019] [Errno 2] No such file or directory: '/usr/local/lsws/conf/vhosts/example.com' [Not able to remove virtual host configuration directory from /conf ]
[09-26-29-Thu-Aug-2019] (1008, "Can't drop database 'what_wpblogcom'; database doesn't exist")[deleteDatabase]
[09-26-29-Thu-Aug-2019] (1452, 'Cannot add or update a child row: a foreign key constraint fails (`cyberpanel`.`e_domains`, CONSTRAINT `e_domains_domainOwner_id_581e752a_fk_websiteFu` FOREIGN KEY (`domainOwner_id`) REFERENCES `websiteFunctions_websites` (`id`))') [Not able to remove virtual host configuration from main configuration file.]
[12-37-16-Thu-Aug-2019] [Errno 2] No such file or directory: '/home/example.com' [Not able to remove virtual host directory from /home continuing..]
[12-37-16-Thu-Aug-2019] [Errno 2] No such file or directory: '/usr/local/lsws/conf/vhosts/example.com' [Not able to remove virtual host configuration directory from /conf ]
[12-37-16-Thu-Aug-2019] (1008, "Can't drop database 'what_wpblogcom'; database doesn't exist")[deleteDatabase]
[12-37-16-Thu-Aug-2019] (1452, 'Cannot add or update a child row: a foreign key constraint fails (`cyberpanel`.`e_domains`, CONSTRAINT `e_domains_domainOwner_id_581e752a_fk_websiteFu` FOREIGN KEY (`domainOwner_id`) REFERENCES `websiteFunctions_websites` (`id`))') [Not able to remove virtual host configuration from main configuration file.]
arcaela commented 3 years ago

Same error, how remove duplicate Server?