New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Limit server resources (cgroups)

Started by AlexG, March 01, 2019, 09:02:18 PM

Previous topic - Next topic

AlexG

Hi everyone, I wonder if someone have issues with Limit server resources (cgroups) (CWP-PRO). I've setup a new policy and I tried to restart the service, there are the logs:

-------------------------
Restarting service..
cgclear failed with Device or resource busy
-------------------------

Service Status
-------------------------
Check:
cgred.service loaded active running CGroups Rules Engine Daemon
● cgconfig.service loaded failed failed Control Group configuration service
Groups:
memory:/
memory:/system.slice
memory:/system.slice/cgred.service
cpu,cpuacct:/
cpu,cpuacct:/system.slice
cpu,cpuacct:/system.slice/cgred.service
blkio:/
blkio:/system.slice
blkio:/system.slice/cgred.service
Rules:
-------------------------

Journalctl
-------------------------
Mar 01 15:48:33 my.website.com systemd[1]: Starting Control Group configuration service...
-- Subject: Unit cgconfig.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cgconfig.service has begun starting up.
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-01.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-02.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-03.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-04.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-05.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-06.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-07.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-08.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-09.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-10.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-11.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-12.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-13.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: /usr/sbin/cgconfigparser; error loading /etc/cgconfig.d/user-14.conf: Failed to remove a non-empty group
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: cannot mount cpu to /cgroup/cpu: Device or resource busy
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/01/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/01/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/02/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/02/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/03/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/03/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/04/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/04/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/05/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/05/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/06/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/06/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/07/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/07/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/08/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/08/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/09/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/09/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/10/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com systemd[1]: cgconfig.service: main process exited, code=exited, status=101/n/a
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/10/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/11/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/11/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/12/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/12/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/13/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/13/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/14/blkio.throttle.read_bps_device: No such device
Mar 01 15:48:34 my.website.com cgconfigparser[16185]: Error: failed to set /sys/fs/cgroup/blkio/14/blkio.throttle.write_bps_device: No such device
Mar 01 15:48:34 my.website.com systemd[1]: Failed to start Control Group configuration service.
-- Subject: Unit cgconfig.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cgconfig.service has failed.
--
-- The result is failed.
-------------------------

Any fix or lead to fix, please let me know.

tinchocba

I have the same issue. Can't use this feature.

studio4host

for vps servers you need to disabled disk io limits
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

tinchocba

Quote from: studio4host on July 08, 2019, 12:38:06 PM
for vps servers you need to disabled disk io limits

Yes you are right. Support team told me that on VPS KVM, this limits must be disabled.

Thanks for your reply.

tinchocba

Still not working properly... For example, CPU limit is not working.

vanthoi

I came across your diary.
It looks like the Disk I/O section of your server is not working.
Common errors on virtual servers such as vmware or kvm.
You want to use the drive speed limiter.
You must fix Disk I/O errors on your system.

Where you still want to use cgroups.
In the installation of Cgroup, put a checkmark in the disk I/O section
Save and restart the service will work.

Biswashost

Hi, I am using dedicated server still it's not working if i don't disable I/O limit. Is there have any solutions for it?
Biswas Host Ltd

www.biswashost.com

Domain, Hosting, Cloud Hosting, VPS, Dedicated Server,

Web Design, SSL, VPN, Professional Email & More