License using wrong ip
We are having 2 ip addresses. Unfortunately the second is lower than the main one.
So main one is for example 192.168.10.19 and second is 192.168.10.15.
For some reason cPanel changes to the .15 ip every time. I removed it, cpanel working fine, added it again, and a bit later cpanel is using it as main ip again.
This ip is -only- added through cpanel, no other way.
I read th eother thread bout this and this command:curl -L http://cpanel.net/showip.cgi
lynx -dump http://cpanel.net/showip.cgi
is showing the .15 ip which is not good.
Networks script is only server one ipv4 and one ipv6 and that is the .19.
The /etc/ips has 3 ip's, one which I don't even know and don't know how it got in.
First one is however the 19 and second one and 3rd one the .15.
So as said, the OS did not add the ip, it's only added via cPanel and this problem is occuring. Please help.
I would like to send in a ticket if required, however I'm just admin and it's a Hetzner server. To send in a ticket, I must be able to login, which probably soon is not possible anymore because it will show an invalid license ip again.
If you can tell me what to change via SSH I'm prepared to do that.
-
Hey there! Can you try the details outlined here?
cPanel will always use the main IP in the networking interface to make the license request, so adjusting that should take care of the issue.
0 -
Hello.
Well.. unfortuntaly if I do that, exactly that is what makes things wrong.
I do have the main ip in the basic webhost manager setup.
When running the /scripts/mainipcheck things go definately wrong:
[root@srv: /]# /scripts/mainipcheck
info [mainipcheck] The Server's main IP address has changed from 1xx.xx.xx.19 to 1xx.xx.xx.15.
The “/usr/local/cpanel/cpkeyclt” command (process 8395) reported error number 1 when it ended. at /scripts/mainipcheck line 210.
info [mainipcheck] Scheduled SPF record updateSo that thing is even crippling the system more than doing any good.
0 -
And now I can't login anymore because it's the wrong license IP. ;)
Ran the script again, and got correct main ip again, but I don't see my additional ip anymore. when I do an ip a or ifconfig.
0 -
Can you message cs@cpanel.net and say "license activation issues" in the subject so we can help?
0 -
Sure, will do.
0 -
Message send.
0 -
I've given that request a bit of priority on our side so you'll be hearing from someone soon.
1 -
That's great, thank you very much!
0 -
Sure thing!
0 -
Update!
The cPanel tech guys (thank you!!) have checked around the server and discovered the issue is caused by some setting from the Hetzner datacenter.
Specifically the prefix setting in the network configuration file.
cPs# grep PREFIX /etc/sysconfig/network-scripts/ifcfg-eno1
PREFIX=32This -can- cause any secondary ip added to act like primary ip, causing the issue mentioned.
At this point it made our server even unreachable due to the fact the license has been activated too many times on different machines. Logical with the ip change every time.
I'm sure that will be fixed as change also happened during ticket support so cPanel knows I'm not messing with licenses.
However at least we have a root cause and now I'm having a conversation with Hetzner as to how we can solve this issue.
Maybe some other Hetzner customer can tell us what the solution was, or otherwise I will update my post as soon as I get the solution from Hetzner myself.
0 -
I got an answer from Hetzner and for anybody encountering the same issue, this is the solution.
In the ifcfg/eno1 (or whatever your nic is called) you have to change:
PREFIX=21
to
NETMASK=255.255.255.255and then restart your network. Any additional ip you can then add either with 255.255.255.255 (advised by the network engineer) or the netmask given in the email.
Be aware to also check your /etc/ips file, because that most likely at that point will containt a 255.255.255.192 netmask for the primary ip, which is in fact nowhere on the server.
Change the 192 to 255 too and restart cpanel and network (or vps/server) and all should now work fine again without another ip broadcasting as main ip.
This is specific to Hetzner servers, I can't guarantee it will also work on servers of other datacenters.
0 -
Interesting - I wonder why it wouldn't have been that way from the start, but I'm glad things are working well now!
0 -
Well wasn't working that way from the start because of the PREFIX=32 in the eno1 (eth0) file in the OS, according to cPanel techs.
0
Please sign in to leave a comment.
Comments
13 comments