Page 1 of 1

keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 10:24
by Kostyaod
Good afternoon, I’m using the keyhelp panel on the server, I needed to change the IP after the change, the panel stopped working, how can I fix it?

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 10:35
by Florian
Hello,

if you changed the IPs of your system rund this command:

Code: Select all

mysql -D 'keyhelp' -e "UPDATE settings SET value = '111.111.111.111,222.222.222.222' WHERE category = 'dns' and name = 'ips'";
Of course you must replace 111.111.111.111 and 222.222.222.222 with your IPs.

After this run keyhelp-toolbox to rewrite the configuration files.

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 10:45
by Kostyaod
I did it but the web interface of the panel still didn’t work
Forbidden

You don't have permission to access this resource.

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 15:22
by Alexander
Hello,

you have read this?
After this run keyhelp-toolbox to rewrite the configuration files.
Call the CLI application "keyhelp-toolbox" and choose the first and second menu item, to rewrite the configuration.

Also be aware, only KeyHelp configuration files (apache + bind) will be updated. if your network configuration files rely on the old IP, you may need to update it there too. KeyHelp will not touch your network configuration.

If you receive a forbidden, you might still be redirected to the wrong/outdated server, so your IP change may not be fully completed for your hostname. You could try to access KeyHelp via the IP only first, to see it it is responding.
https://<ip-address-of-the-keyhelp-server>/ should show you the KeyHelp login.

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 15:50
by Kostyaod
I have the impression that there is an old IP somewhere in the file, and when I log into ssh it shows that keyhelp is used and the old IP is written

Forbidden

You don't have permission to access this resource.

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 16:13
by Alexander
This is, because the "message of the day" in the current KeyHelp version will read the IP from the /root/keyhelp_login_data_* file (Ubuntu) or is hardcoded (Debian). Both are not updated when changing the IPs.
So, the "message of the day" does not necessary reflect the current IPs on the server. (This is will change with next update, by the way).

Feel free to grep your disk for the old IP to catch all further occurrences.

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 16:23
by Kostyaod
and where can there be confidential files containing IP addresses?

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 16:26
by Florian
Sorry it is unclear what you mean. Provide the logins via PM and we can have a look at it

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working  [SOLVED]

Posted: Wed 22. Nov 2023, 17:02
by Florian
Solved:

/home/keyhelp had wrong group owner. It has to be www-data and not keyhelp

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Wed 22. Nov 2023, 17:13
by Kostyaod
Thanks

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Thu 23. Nov 2023, 09:16
by Kostyaod
Good afternoon, I’m wondering when I ping my domain, periodically the pig will show the old address, then after a while the new one and the reverse one, what could be the matter?

Re: keyhelp in the region it was necessary to change the ip after changing the panel stopped working

Posted: Thu 23. Nov 2023, 10:11
by Florian
Hallo,

you must check the settings in the nameserver of your domain/subdomain

SInce the Keyhelp server is not the authoritative nameserver for your domain the problem is not located on the Keyhelp server