server IP address directadmin problem

It might still be present as OS hostname.
Login via SSH and type "hostname" without the brackets.
If it's still the hostname then do this:
Code:
hostnamectl set-hostname host.domain.com
next check and if necessary also change /etc/hostname and /etc/hosts and maybe /etc/sysconfig/network because sometimes a hostname is mentioned in the last file too.

If might be wise to do a server reboot after changes are made.
 
Since you mention old ip, I think it might be the /etc/hosts file or have a look for correct ip's here too:
/usr/local/directadmin/data/admin/ip.list
and if they correspond with
/usr/local/directadmin/data/admin/ips
 
locally when ping is IP ok.

but when pinging from a laptop the address is old. :/
 
Since you mention old ip, I think it might be the /etc/hosts file or have a look for correct ip's here too:
/usr/local/directadmin/data/admin/ip.list
and if they correspond with
/usr/local/directadmin/data/admin/ips

there is a new ip address
 
locally when ping is IP ok.

but when pinging from a laptop the address is old. :/
If every file mentioned in my previous reply is correct, it might be propagation or something.

You can try refreshing your laptop's DNS in a command prompt executed as admin if it's for windows:
ipconfig /flushdns
and have another look. If the change is done very recent, you might have to wait 24/48 hours to sync DNS or you could edit your local hosts file on your laptop, however I would advise to not do that.
 
O

I have another problem I don't see directadmin on port 2222. As if the service did not start. I restarted vps and still won't turn on.
 
Hard to say like this if it's running or not.
It's better to login via SSH and see if it's indeed running, maybe like this:
service directadmin status

If not, try:
service directadmin restart
and if it throws an error, you can investigate what the error means.

You should in any case be able to reach the server at http://the.server.ip:2222
 
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-04-29 20:17:07 CEST; 11s ago
Docs: http://www.directadmin.com
Process: 6386 ExecStart=/usr/local/directadmin/directadmin d (code=exited, status=0/SUCCESS)
Main PID: 6387 (code=exited, status=9)

Apr 29 20:17:07 vpsXXXXX systemd[1]: Starting DirectAdmin Web Control Panel...
Apr 29 20:17:07 vpsXXXXX directadmin[6386]: backup_gzip is disabled, but pigz is enabled. Disabling pigz support.
Apr 29 20:17:07 vpsXXXXX systemd[1]: PID file /run/directadmin.pid not readable (yet?) after start.
Apr 29 20:17:07 vpsXXXXX systemd[1]: Started DirectAdmin Web Control Panel.
Apr 29 20:17:07 vpsXXXXX systemd[1]: directadmin.service: main process exited, code=exited, status=9/n/a
Apr 29 20:17:07 vpsXXXXX systemd[1]: Unit directadmin.service entered failed state.
Apr 29 20:17:07 vpsXXXXX systemd[1]: directadmin.service failed.
 
Have a look in:
/var/log/directadmin/error.log
/var/log/directadmin/system.log
and maybe
/var/log/directadmin/2020-Apr-29.log

One of these files probably stating something about the error.
You're sure you also followed step 1 in the help file? Changing the ip in the license id?

If I don't answer on your next reply, it means I don't know and somebody else has to help you or you can also send in a ticket if it's not a personal license. Or contact your datacenter/hoster if it's an internal license.
 
OK. :) However, it is about licenses
2020:04:29-19:02:02: The ip of this machine (XXX.XXX.XXX.XX) does not match the ip in the license file.<br>
Check the value of your ethernet_dev=venet0:0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

Thanks for the help. Report to supplier.
 
Everything works as it should.
You had to wait for the dns to refresh and licenses update. :)
 
Back
Top