Skip to main content

Hello,
I tried to export the settings from old Centreon server (18.10.12) and import on the new server (24.10).

Export preferences:


I then ran Configuration > Pollers > Export configuration (on new server) and the result was an error:

Preparing environment... OK
Generating files... NOK (Exception received : Cannot open file /var/cache/centreon/config/vmware/1/centreon_vmware.json ofile: /usr/share/centreon/www/class/config-generate/abstract/objectJSON.class.php] pline: 113] )
Aborted.

 

  • it reports the same error even though I have a clean install of the new server without importing from the old one.
  • After importing the settings from old server, Hosts and Services were transferred to my new server, but Poller and Users were not.

Please help me.

Hello, Could you try to execute the following command

chmod 660 /var/cache/centreon/config/vmware/*/centreon_vmware.json

 

And retry to export your configuration. This should fix the issue. We’ll fix the generation of this file 


Hello, Could you try to execute the following command

chmod 660 /var/cache/centreon/config/vmware/*/centreon_vmware.json

 

And retry to export your configuration. This should fix the issue. We’ll fix the generation of this file 

It works! Thank You!


Great, the root cause as been identified, and should be in the next version of 24.10. It is possible that you encounter this isssue again if you generate/export configuration with CLAPI. 
If the issue happened again you can do the previous workaround ! 


Reply