Solved

Some properties doesn't match the json schema

  • 25 May 2023
  • 8 replies
  • 382 views

Badge +3

Hello, 

When migrating from a CentOS 7 version 22.10.7 server to Debian 11, after importing the database to the new server, I encountered the following error message on the web interface: "Some properties doesn't match the json schema :[redirect_url] The property redirect_url is required".

I can log in, but then I remain stuck on the page with the message "Centreon is loading..." and the same error message as before. I have checked the JSON files in the directory "/etc/centreon-broker", but I don't see any line with redirect_url.

Thank you in advance for your help. I am available to provide more details if needed.

icon

Best answer by thenaldox 26 May 2023, 13:16

View original

8 replies

Badge +3

solved

Badge +1

how you solved it ? have the same problem.

Badge +2

Hello,

I have the same problem. Can you tell me how you solved it please?

 

Badge +1

Hello,

I have the same problem. Can you tell me how you solved it please?

 

In my case in the update proc:

cd /var/lib/centreon/installs/
mv install-22.04.x-YYYYMMDD_HHMMSS/ /usr/share/centreon/www/install/

 

i had a bad space in mv , so when connecting to web interface it doesn't execute the centreon update procedure.

 

Badge +2

Thank you.

To fix the error, what did you do? 

 

 

Badge +1

cd /var/lib/centreon/installs/
ls
install-19.10.1-20191118_100307   install-20.10.4-20210303_165526  install-21.04.4-20210806_092055  install-21.10.2-20220201_093623  install-22.04.0-20220727_155037
install-19.10.18-20210129_143612  install-20.10.5-20210409_105210  install-21.04.6-20211004_141036  install-21.10.3-20220215_113315  install-22.04.5-20220921_090355
install-19.10.2-20191126_091452   install-20.10.6-20210421_155340  install-21.04.7-20211012_161529  install-21.10.4-20220307_091339  install-22.04.7-20221024_101814
install-19.10.4-20191213_113852   install-20.10.6-20210506_145320  install-21.04.8-20211116_093740  install-21.10.4-20220316_080152  install-22.10.2-20221212_150229
install-19.10.5-20200122_095642   install-20.10.7-20210510_121707  install-21.04.9-20211209_095924  install-21.10.5-20220330_095127  install-22.10.7-20230321_141928
install-19.10.6-20200206_100911   install-20.10.8-20210610_161223  install-21.10.1-20211209_103633  install-21.10.6-20220503_101751  install-23.04.0-20230531_231303
install-20.10.3-20210210_105413   install-21.04.3-20210629_111436  install-21.10.2-20220104_105706  install-21.10.7-20220620_091820
mv install-23.04.0-20230503_100403/ /usr/share/centreon/www/install/

 

refresh centreon page, you should have the update assistant.

Badge +2

it work. THANKS

Badge +3

To change the IP addresses in the centreon.sql and centreon_storage.sql files, follow these steps after dumping the database:

  1. Open the centreon.sql and centreon_storage files using a text editor.
  2. Search for your old IP address within the files.
  3. Modify the old IP address to the new one.
  4. Save the changes made to the files.

Please note that modifying IP addresses in the database files requires caution and proper understanding of the underlying system. Ensure that you have a backup of the original files before making any modifications.

Reply