Skip to main content
Question

Centreon 25.10 Host creation fails with “Error during creation (json encoding)

  • December 31, 2025
  • 0 replies
  • 20 views

Forum|alt.badge.img+3

Hello,

I’m running Centreon 25.10.3 on AlmaLinux, and I cannot create hosts from the web UI.

When I try to create a host, I get:

Error during creation (json encoding). See logs for more detail

 

The Centreon logs show:

[2025-12-31T05:30:11+00:00] ERROR : Error during host/hostTemplate creation | {"custom":{"hostId":null,"isTemplate":false,"exception":{"message":"Syntax error","trace":"#0 ... json_decode() ..."}}}

 

I checked PHP-FPM and Apache logs there are no PHP errors or warnings. Memory and execution time are sufficient (memory_limit=128M, max_execution_time=0).

I then tested the internal API:

curl -k https://localhost/centreon/api/latest/platform/status

Output:

{"code":404,"message":"No route found for \"GET https:\/\/localhost\/centreon\/api\/latest\/platform\/status\""}

 

I also tried to run the supposed API install command:

sudo -u apache /usr/share/centreon/bin/console centreon:api:install

But got:

There are no commands defined in the "centreon:api" namespace.

 

It seems the /api/latest routes expected by the UI do not exist in Centreon 25.10, which explains why host creation fails.. the UI tries to POST to the API and gets invalid JSON (404) back.

I’ve checked my repositories.. I have the correct 25.10 repos


Is this a known limitation in Centreon 25.10?

Thank you for your help!