License Request

Hey!

Has renewed 1:10 domain license but then received a new license number, but want to use the old license and how can I use the old license number, thus not having to install the new, is it possible?

Regards, Lars Reimers

Status: 
Active

Comments

Howdy -- while it's unfortunately not possible to renew an older license, it's a very simply process to apply a new license to your server.

To do that, you can run this command:

virtualmin change-license --serial SERIAL_NUM --key KEY

That command will apply your new license information to your server.

Feel free to let us know if you have any additional questions!

LarsReimers's picture
Submitted by LarsReimers on Tue, 03/21/2017 - 14:33

Thanks, Ok, the problem is that I can not open server http://87.237.214.153:10000/ (Could be because the license is not active anymore)?

But you can do this via SSH as well, right?

Even if the license expires, Virtualmin would still be active. We don't disable any functionality, the only thing that happens if your license expires is that you wouldn't be able to get additional updates.

Running that command as root via SSH should work though, that's a good way to do it.

Your virtualmin server process may be down. Try SSHing in as root and running /etc/webmin/start

LarsReimers's picture
Submitted by LarsReimers on Wed, 03/22/2017 - 13:55

Thanks for the answer, but something else does not seem ok.

The problem has arisen suddenly, from operating for several years!

login as: root root@87.237.214.153's password: Last login: Tue Mar 21 20:27:12 2017 from 82.209.181.198 [root@husbil ~]# /etc/webmin/start Starting Webmin server in /usr/libexec/webmin Pre-loaded virtual-server/virtual-server-lib-funcs.pl in virtual_server Pre-loaded virtual-server/feature-unix.pl in virtual_server Pre-loaded virtual-server/feature-dir.pl in virtual_server Pre-loaded virtual-server/feature-dns.pl in virtual_server Pre-loaded virtual-server/feature-mail.pl in virtual_server Pre-loaded virtual-server/feature-web.pl in virtual_server Pre-loaded virtual-server/feature-webalizer.pl in virtual_server Pre-loaded virtual-server/feature-ssl.pl in virtual_server Pre-loaded virtual-server/feature-logrotate.pl in virtual_server Pre-loaded virtual-server/feature-mysql.pl in virtual_server Pre-loaded virtual-server/feature-postgres.pl in virtual_server Pre-loaded virtual-server/feature-ftp.pl in virtual_server Pre-loaded virtual-server/feature-spam.pl in virtual_server Pre-loaded virtual-server/feature-virus.pl in virtual_server Pre-loaded virtual-server/feature-status.pl in virtual_server Pre-loaded virtual-server/feature-webmin.pl in virtual_server Pre-loaded virtual-server/feature-virt.pl in virtual_server Pre-loaded virtual-server/feature-virt6.pl in virtual_server Pre-loaded WebminCore Failed to bind to port 10000 : Address already in use Could not listen on any ports[root@husbil ~]# ^C [root@husbil ~]#

You may want to try restarting Webmin with this command:

service webmin restart

If that doesn't help, is there perhaps a firewall running that could be blocking the port?

That notice may display for a few days, but it'll go away automatically once the old server clears out from the license manager.

Only the root user can see that though, and it won't cause any problems over the next few days.

LarsReimers's picture
Submitted by LarsReimers on Thu, 03/30/2017 - 10:32

Have now tried all varieties but did not manage to open http://87.237.214.153:10000/

Is there any possibility to get help from you? I would be really very grateful.

//Lars

We'ere happy to help!

What is the output of these two commands -- this will help us understand what's going on there:

netstat -anlp | grep :10000
iptables -L -n
LarsReimers's picture
Submitted by LarsReimers on Thu, 03/30/2017 - 12:52

OK!

login as: root
root@87.237.214.153's password:
Last login: Thu Mar 30 10:35:12 2017 from 82.209.181.198
[root@husbil ~]# netstat -anlp | grep :10000
tcp        0      0 0.0.0.0:10000               0.0.0.0:*                   LISTEN      9588/perl
udp        0      0 0.0.0.0:10000               0.0.0.0:*                               9588/perl
[root@husbil ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:443
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:1167
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@husbil ~]#

Hmm, I think the firewall running on your server may be the problem.

It appears to only be configured to allow a handful of ports.

If you'd like to run a firewall, you would need to configure it to allow all the ports you need -- including 10000 for Webmin/Virtualmin.

Alternatively, if you don't need a firewall, you could always disable it to allow traffic to your control panel.

LarsReimers's picture
Submitted by LarsReimers on Thu, 03/30/2017 - 13:34

Ok, the problem is that I can not open the control panel and access any configuration

What kind of firewall are you running? How was it initially setup?

If you set it up in Webmin/Virtualmin, do you recall what screen was used to configure it?

LarsReimers's picture
Submitted by LarsReimers on Fri, 03/31/2017 - 00:06

It was so long ago I installed Webmin / Virtualmin so I do not remember, what I remember is that I have not set up a firewall specifically, but it is a clean installation of the defaulta firewall installed, so no special configuration of the firewall are not made.

Do you have any use for that I give you the login information to the control panel?

Try running this command, on a typical CentOS 6 system this will disable any of the firewall options that may be running:

service iptables stop

After running that, the "iptables -L -n" command should no longer show any active rules.

Once you run the above command to stop the firewall, are you then able to access Webmin on port 10000?

LarsReimers's picture
Submitted by LarsReimers on Fri, 03/31/2017 - 13:19

Hooray, this solved the problem!

But now I see that my license is not activated

Virtualmin Serial Number 5559198 Virtualmin License Key XhFtKjSgDB

Can you do this too, you're my hero

We're glad to hear you're able to access Virtualmin now!

The particular license you mentioned expired last year.

I believe that's why you were opening up this request originally, is that correct? It sounds like you purchased a new license, and wanted to apply that to your server?

You'd actually want to use the newer license on your server, which you can do by running this command as root on your server:

virtualmin change-license --serial SERIAL_NUM --key KEY

Let us know if that helps!

We're glad to hear you're able to access Virtualmin now!

The particular license you mentioned expired last year.

I believe that's why you were opening up this request originally, is that correct? It sounds like you purchased a new license, and wanted to apply that to your server?

You'd actually want to use the newer license on your server, which you can do by running this command as root on your server:

virtualmin change-license --serial SERIAL_NUM --key KEY

Let us know if that helps!

LarsReimers's picture
Submitted by LarsReimers on Fri, 03/31/2017 - 14:33

Yes, I have bought a new license because I could not find where I updated the old

Yeah the old licetonses are being retired, it'd be necessary to apply one of the new licenses to your server.

Let us know if you have any trouble applying one of those new licenses to your server using the command above.

LarsReimers's picture
Submitted by LarsReimers on Fri, 03/31/2017 - 15:33

Any special place in the control panel, where I can do this, can not find it, before I found the software update call but can not see it now, either I am blind or location of this changed. Can you do this via SSH? Sorry for my silly questions!

You'd want to run that command using the Linux command line, which you can do via SSH (as the root user).

You can also run it within the control panel in Webmin -> Others -> Command Shell.

LarsReimers's picture
Submitted by LarsReimers on Sat, 04/01/2017 - 00:10

Thanks for your patience and for your help, now everything works again

Have a nice day!

// Lars