Solved Help needed with update to latest DA version through CLI commands

PeterVeldhuis

Verified User
Joined
Jan 18, 2024
Messages
33
Location
Apeldoorn
Hi guys,
Sorry, I need to ask for some help.
I've received a new VPS including DA, but the version installed by my hostingpartner is so old, it get's a license expired error.

Tried to update with CLI, but it seems "DA Update" doesn't exist
1727893880110.png

Therefore I try to update my DA through CLI commands (https://docs.directadmin.com/direct...ting-da.html#manual-update-using-cli-commands).

Getting gzip-error. I feel it has something to do with the " ' " behind the sed; that looks diffrent then to the example on the documentation, but not sure how to make that diffrent either.

1727893622984.png
 
Tried to update with CLI, but it seems "DA Update" doesn't exist
No not yet, this is only something from one of the latest releases.

So most likely you need to use the older command to update it:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build update_versions
 
Thank you Richard
I get an error (time-out). What would be your advice?

Looks like the download-location is outdated - the installed version is 1.50.1, which was only released 9-juni-2016...

I found a variable "downloadserver=files.directadmin.com" in CustomBuild/Options

1727941061603.png
 
Last edited:
Oh yes... pfff.. that's an ancient version then. There was some update for this so the old url's to get the new ones.
Ok then lets try these ones as they are commonly to be used on a license expiration. As root ofcourse.

/usr/local/directadmin/scripts/getDA.sh current

and then this.
Code:
cd /usr/local/directadmin/scripts
./getLicense.sh auto
systemctl restart directadmin

After this you should be able to update DA.
/usr/local/directadmin/custombuild/build update_da

Does that fix the issue?
 
Sorry, It doesn't. I asks for the CID, which I don't have.
You should have the license ID.
And in old installations, the LID and CID are both present in the setup.txt file, if I remember correctly that is present in the custombuild directory.

However, if that does not work, try the other commands first.

Otherwise contact your VPS provider, he should fix this and give you the license -key- which he can generate and a fresh install with that.
 
Hello all,

@Richard G I've used the command, however it fails on time-out/connection. files1.directadmin.com is resolving, but it time-out. I used files.directadmin.com and download.directadmin.com as alternative, but both don't work either (files.directadmin.com gives NOT FOUND and download.directadmin.com gives permision denied).

Attempt on files.directadmin.com
1728119609851.png

Attempt on download.directadmin.com
1728119660372.png

Telnet files1.directadmin.com from local
1728119784253.png

Ping
files1.directadmin.com from local
1728120161520.png
Is for everyone else files1.directadmin.com not connecting either? And does anyone know an alternative? Can support of DirectAdmin help also on this?

Telnet files.directadmin.com:80 and download.directadmin.com:80 from local are connecting fine

@Ohm J I've looked into this as well, but it gives an error "not in gzip format" (my post of 2nd Oct for the screenshot)
 

Attachments

  • 1728119718388.png
    1728119718388.png
    7.9 KB · Views: 2
Is for everyone else files1.directadmin.com not connecting either?
No because this isn't used anymore for a long time.

Have you tried what I suggested in post #7 already? To use the other command first? So first try:
cd /usr/local/directadmin/scripts
./getLicense.sh auto
systemctl restart directadmin

And does anyone know an alternative? Can support of DirectAdmin help also on this?
They can, yes. But I don't know if they will, because the alternative was already given and good chance DA will tell you the same.
Next to that it's an internal licens and the VPS provider which provides the license is responsiblel for support on those licenses.

The alternative was to just setup the VPS without Directadmin and then install DA newly with the normal commands and things will work. What's the problem with that?
 
Hello Richard,

Appriciate all your help.

Yes, I've tried your suggestion in post#7. See result:
1728322914046.png

What does it mean it is an internal license? The license verification service of DirectAdmin says it is valid.
1728323108398.png

Kind regards,
Peter
 
All,
I got it fixed and DA is now running on latest DA-version.
It did a complete new installation and it re-used my already configured IP on DA-side.
1728324280343.png
 

Attachments

  • 1728324234052.png
    1728324234052.png
    91.2 KB · Views: 1
  • 1728324272374.png
    1728324272374.png
    91.2 KB · Views: 1
It was a puzzle. With my license key it didn't work either, but 'auto' helped. I was thinking that a new install couldn't work without de-installation and update was the only option. My hosting party was telling me that I should upgrade to get the license-key issue fixed.

Anyway, glad also! It is now updating my other legacy software on the machine.
Then I can start configuring the machine.

Thank you all again and hopefully this post also helps other too.
 
With my license key it didn't work either, but 'auto' helped.
Then probably the license key was changed. I hope you didn't use the license id which is something different.
I presumed you used the "auto" since that is also mentioned in the docs as alternative.

There must be some way to update that old stuff to the new too, but I really don't remember how anymore, too much is changed in the meantime.
Normally that fixes that key issue too. Or maybe hosting party thought you had a bit newer version.

Be aware that at least your database will be EOL in june 2026 (MariaDB), just to be prepared.
 
Back
Top