Backup to server with expired license

Interhost

Verified User
Joined
Mar 3, 2022
Messages
5
Hello,

We have couple of servers with expired license after the last updates(CentOS 5, Debian 7).
In order to be able to use the panel again, we want to migrate the domains to another servers with an updated OS, but the panel doesn't work as mentioned above.
Now we have 2 questions:

1. Is there any way to make the panel work again for just couple of hours?
2. Is there any way to do the migration to the new server without the panel, maybe through CLI?

Thank you.
 
You may do the backup using command-line, like this:

Also, if it’s debian 7 64bit - latest DA linux 64bit bins work just fine there.
 
You may do the backup using command-line, like this:

Also, if it’s debian 7 64bit - latest DA linux 64bit bins work just fine there.
Thank you for the fast response! :)

Maybe you can help us? we have servers with Debian 7, and when we are trying to login to DA panel, we are getting license expired message.
We tried to use getLicense script, and it done successfully, but after that we try to login again, and still got that license expired message.
any idea how we can make it work again? or how to check the real reason we get this message?
 
Thank you for the fast response! :)

Maybe you can help us? we have servers with Debian 7, and when we are trying to login to DA panel, we are getting license expired message.
We tried to use getLicense script, and it done successfully, but after that we try to login again, and still got that license expired message.
any idea how we can make it work again? or how to check the real reason we get this message?

Note that it says:

Code:
Note: Please do not use this script for updating DirectAdmin on EOL distros. This script will install latest release without checking EOL status which most likely be non-functional on EOL systems.

But as @smtalk says, this should work on Debian 7 (probably with some quirks, such as the service monitor commands not working correctly anymore).
 

Note that it says:

Code:
Note: Please do not use this script for updating DirectAdmin on EOL distros. This script will install latest release without checking EOL status which most likely be non-functional on EOL systems.

But as @smtalk says, this should work on Debian 7 (probably with some quirks, such as the service monitor commands not working correctly anymore).
Thank you for your reply :)

how can we check the reason for getting this license expired message? i tried to update it manually, but seems like it doesn't work.
 
Is your Directadmin version now up-to-date (1.63.8)? If it is, and you're still seeing the license expired page, try the license update auto script:

Code:
/usr/local/directadmin/scripts/getLicense.sh auto

If that doesn't work, generate a new license key for this server in your Directadmin Client panel and execute the following:

Code:
/usr/local/directadmin/scripts/getLicense.sh $yourlicensekey
 
Is your Directadmin version now up-to-date (1.63.8)? If it is, and you're still seeing the license expired page, try the license update auto script:

Code:
/usr/local/directadmin/scripts/getLicense.sh auto

The current version on the servers is 1.58.2.
I tried to update it through the getDA script but I get TLS error (Already tried echo 1 > /root/.insecure_download but still getting this error).
Any other update method?
 
Yes, the getDA.sh script won't work on Debian 7, try the commands in the link above (section 'Manual update using CLI commands'). BTW, only use these on Debian 7 64-bit like @smtalk mentioned, not Debian 7 32-bit or CentOS 5.

Code:
CHANNEL=current                                                                                             # can be one of: alpha, beta, current, stable
OS_SLUG=linux_amd64                                                                                         # can be: linux_amd64, rhel8_amd64, rhel7_amd64, debian10_amd64, ...
COMMIT=$(dig +short -t txt "$CHANNEL-version.directadmin.com" | sed 's|.*commit=\([0-9a-f]*\).*|\1|')       # can be commit hash literal value if you want specific build to be installed
FILE="directadmin_${COMMIT}_${OS_SLUG}.tar.gz"                                                              # creates download package name from the variables above

curl --location --progress-bar --connect-timeout 10 "https://download.directadmin.com/${FILE}" --output "/root/${FILE}"   # downloads given directadmin build into /root dir
tar xzf "/root/${FILE}" -C /usr/local/directadmin                                                                         # extracts downloaded package to /usr/local/directadmin
/usr/local/directadmin/directadmin permissions || true                                                                    # runs post-upgrade permission fix step
/usr/local/directadmin/scripts/update.sh                                                                                  # runs other post upgrade fixes
service directadmin restart                                                                      # restarts directadmin
 
Last edited:
Back
Top