Hi,
Following the update in 22.04, the following error is displayed when generating and moving files for the Central
Warning : chmod(): Operation not permitted
here are the rights that seem to be problematic:
ll /etc/centreon-engine/
total 512
-rw-rw-r-- 1 centreon-engine centreon-engine 3913 Jun 2 15:03 centengine.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 30924 May 18 14:08 centengine.cfg.rpmnew
-rw-rw-r-- 1 centreon-engine centreon-engine 43757 Jun 2 15:03 commands.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 7225 May 18 14:08 commands.cfg.rpmnew
drwxrwxr-x 2 centreon-engine centreon-engine 6 Apr 22 2020 conf.d
-rw-rw-r-- 1 centreon-engine centreon-engine 1412 Jun 2 15:03 connectors.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1628 Jun 2 15:03 contactgroups.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 3297 Jun 2 15:03 contacts.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 dependencies.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 140132 Jun 2 15:03 escalations.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 17445 Jun 2 15:03 hostTemplates.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 4625 Jun 2 15:03 hostgroups.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 15933 Jun 2 15:03 hosts.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 meta_commands.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 meta_host.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 meta_services.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 meta_timeperiod.cfg
drwxrwxr-x 2 centreon-engine centreon-engine 6 May 23 21:42 objects
-rw-rw-r-- 1 centreon-engine centreon-engine 1167 Jun 2 15:03 resource.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1689 May 18 14:08 resource.cfg.rpmnew
-rw-rw-r-- 1 centreon-engine centreon-engine 69191 Jun 2 15:03 serviceTemplates.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 servicegroups.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 112443 Jun 2 15:03 services.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1088 Jun 2 15:03 severities.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 3320 Jun 2 15:03 tags.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 1595 Jun 2 15:03 timeperiods.cfg
-rw-rw-r-- 1 centreon-engine centreon-engine 2009 May 18 14:08 timeperiods.cfg.rpmnew
ll /etc/centreon-broker/
total 48
-rw-rw-r-- 1 centreon-broker centreon-broker 3141 Jun 2 15:03 central-broker.json
-rw-rw-r-- 1 centreon-broker centreon-broker 2185 May 18 14:08 central-broker.json.rpmnew
-rw-rw-r-- 1 centreon-broker centreon-broker 3427 Apr 16 2020 central-broker.xml.rpmsave
-rw-rw-r-- 1 centreon-broker centreon-broker 1944 Jun 2 15:03 central-module.json
-rw-rw-r-- 1 centreon-broker centreon-broker 1762 May 18 14:08 central-module.json.rpmnew
-rw-rw-r-- 1 centreon-broker centreon-broker 1632 Apr 16 2020 central-module.xml
-rw-rw-r-- 1 centreon-broker centreon-broker 2337 Jun 2 15:03 central-rrd.json
-rw-rw-r-- 1 centreon-broker centreon-broker 2238 May 18 14:08 central-rrd.json.rpmnew
-rw-rw-r-- 1 centreon-broker centreon-broker 2041 Apr 16 2020 central-rrd.xml.rpmsave
drwxrwxr-x 2 centreon-broker centreon-broker 333 Jan 19 16:14 tls
-rw-rw-r-- 1 centreon-broker centreon-broker 549 Jun 2 15:03 watchdog.json
-rw-rw-r-- 1 centreon-broker centreon-broker 562 May 18 14:08 watchdog.json.rpmnew
-rw-rw-r-- 1 centreon-broker centreon-broker 529 Apr 16 2020 watchdog.xml.rpmsave
For the warning to disappear from the webui, I must make the following changes:
chown apache:centreon-engine /etc/centreon-engine/*.cfg
chown apache:centreon-broker /etc/centreon-broker/*.json
This warning is not present during file generation and move for poller.