Solved

Error 500 migrating Centron Server to Remote Server

  • 21 December 2022
  • 2 replies
  • 310 views

Badge +2

Hello, I am trying to migrate a central center 22-10 remote to later add it to an existing plant. I get this error but I can't find anything on the Internet. Thanks a lot:

 

/usr/share/centreon/bin/registerServerTopology.sh -u admin -t remote -h Central-IP -n Poller-name

Please enter the password of Central-IP:

  Summary of the information that will be sent:

  Api Connection:
  username: admin
  password: ******
  target server: Central-IP

  Pending Registration Server:
  name: Poller-name
  hostname: centreon
  type: remote
  address: IP_Poller

Do you want to register this server with the previous information? (y/n): y
More information is required to convert your platform into Remote :
IP_Poller : Please enter your username: admin
Please enter the password of IP_Poller:
IP_Poller : Protocol [http]:
IP_Poller : Port [80]:
IP_Poller : centreon root folder [centreon]:
Are you using a proxy ? (y/n): n
2022-12-21 13:20:25+01:00 - ERROR - IP_Poller: {"code":500,"message":"The address '' of '' is not valid or not resolvable"}

 

 

And i tried:

[root@centreon-cos centreon-gorgone]# /usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h Central-IP -n Poller-name
Please enter the password of Central-IP:

  Summary of the information that will be sent:

  Api Connection:
  username: admin
  password: ******
  target server: Central-IP

  Pending Registration Server:
  name: Poller-name
  hostname: centreon
  type: poller
  address: IP_Poller

Do you want to register this server with the previous information? (y/n): y
2022-12-21 13:55:38+01:00 - ERROR - http://Central-IP:80: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://Central-IP/centreon/api/latest/login">here</a>.</p>
</body></html>

icon

Best answer by jfmorena 27 December 2022, 09:29

View original

2 replies

Userlevel 5
Badge +17

Weird. Have you tried to answer No to “Do you want to register this server with the previous information?” and type in the information instead?

Badge +2

Hello, this is the correct sentence:

 

/usr/share/centreon/bin/registerServerTopology.sh -u admin -t poller -h https://ip_central -n Poller_Name --insecure
 

Thanks. Its closed

Reply