License Expired big mess

WholesaleDialup

Verified User
Joined
Sep 25, 2004
Messages
178
Location
San Antonio, TX
I attempted to login to my fairly new (less than 6 month's old I think) DA system as admin and got a license expired message.

Before I go any further, I wanted to say that this server is on one of my three lifetime licenses which it seems are now considered not so great anymore and well, whatever.

I noticed a post a while back in the forums suggesting that you had to update your DA install and such if you were using X version etc. I checked all that and didn't need to do anything as far as I could tell at that time. I don't know if that's related to this or not.

BUT... Here I am now.

I followed the link presented on the login page where it said my license was expired, can't find the exact text now because I now can't login at all, see below.

I think maybe that link took me here:

I followed info and instructions and recommendations. I issued the command journalctl -u directadmin as recommended on the command line and noticed lots of these entries:
Apr 11 21:35:18 host.domain.com directadmin[1106341]: 2022/04/11 21:35:18 info license updated successfully

Also these TLS handshake errors but I don't think that's related:
Apr 11 21:33:59 host.domain.com directadmin[1106341]: 2022/04/11 21:33:59 http: TLS handshake error from 162.214.41.61:36446: tls: first record d>

So I logged into my DirectAdmin account to look over my licenses. I noticed this:
Install:
wget -O setup.sh directadmin.com/setup.sh
chmod 755 setup.sh
./setup.sh KEY HERE BUT DELETED FOR OBVIOUS REASONS

Being in a hurry, I ran this command thinking it would install the new license. OUCH!! I quickly realized this was a command to do a fresh install of DA... ARRRRRGGG! I didn't want to just kill it mid-stream so I let it go until it ask me if I was sure I wanted to install DA again, I said NO. Still it did a bunch of stuff before and after I answered NO.

Now, when I try to login with admin, it rejects me using the correct password.

Thinking it got reset, I dug around and found a post explaining how to access the admin password from the command line, still couldn't login. AND it wasn't any different than the password I already had.

I found another post telling me how to reset the admin password of course using passwd but, to my surprise, there was NO user account on the OS for admin, it was gone.

So, here I am without the ability to login and I guess even if I could, I assume I'll be right back to a license expired issue.

This is messy and if you got this far, I appreciate you reading this long. ANY assistance with where to go with all this, would be greatly appreciated. I guess I need to first get my admin account back but I'm not sure what else may have happened when I ran the install.

So, lost as to what to do next. Thanks.
 
Log in to SSH as root

Code:
passwd admin

The follow the prompts enter new password twice
This will reset the password.

If that doesn't work we can try something else.
 
The admin account is missing, tried this already. I think it got blown up by the installer I ran by accident.

[root@myserver home]# passwd admin
passwd: Unknown user name 'admin'.
 
ok run this
Code:
/usr/local/directadmin/directadmin install

This will install the executable and restore the admin account. OR it should.

BTW this isnt rerunning setup.
 
ok run this
Code:
/usr/local/directadmin/directadmin install

This will install the executable and restore the admin account. OR it should.

BTW this isnt rerunning setup.
Will this over-write my current config? I have a lot of work into this current setup on this server with 10 or 15 users and a number of domains, firewall setup and so on. Hoping to save this DA setup.

When I run this it wants me to set all the options such as host, email, adminname, adminpass, network device, IP etc. I can run a new install but I'm concerned it will over-write my whole config. That's what the other installer said it was going to do.

Right now, all my websites and such as still in place and working for my customers, just can't get into DA to admin it, hoping to not make it worse.

Thanks for your help so far bdacus01.
 
Will this over-write my current config? I have a lot of work into this current setup on this server with 10 or 15 users and a number of domains, firewall setup and so on. Hoping to save this DA setup.

When I run this it wants me to set all the options such as host, email, adminname, adminpass, network device, IP etc. I can run a new install but I'm concerned it will over-write my whole config. That's what the other installer said it was going to do.

Right now, all my websites and such as still in place and working for my customers, just can't get into DA to admin it, hoping to not make it worse.

Thanks for your help so far bdacus01.
Well let me not assume... You do have a backup of your users and such ? Maybe take a snapshot.

The required ones are -ns1 -ns2 --adminpass

What its supposed to do is rebuild the directadmin executable install. I should not hurt any of the normal configuration.

You may have already done this by running Setup.sh though.
 
I had a backup from this morning of the entire VM (a snapshot). I just fired off a restore which should get me back to where I was originally with an expired license issue and nothing else. I'll post back once I'm back there. Hopefully, the restore will go without a hitch. Fingers crossed.
 
I'm going to look over the link..

Restore went well, now I'm just back to expired license.

I ran the line of code you referenced and it returned:
Success!!

But, still license shows expired in my browser. Maybe I will try to restart DA now and see if that helps, if not I'll go to the link you referenced but I think that's where I started and ended up blowing things up, I'll read again though. Thanks.
 
This is what my browser shows after login:
License has expired
See the Debug Guide Current Server Time: Mon Apr 11 22:52:34 2022

I see inside my DirectAdmin client area that the license shows 1 session, when I click on it, it shows the IPv6 address in there but I have it set to the IP v4 IP on the main page for that license. I wonder if that's part of the issue? The server has both IPv4 and v6, not sure what I need it set to. I don't want to change it, apparently it's limited to 5 ip changes on my lifetime license now.
 
Well Damn...

This fixed it:
/usr/local/directadmin/scripts/getDA.sh current

Geesh, that was painful.

Thanks for all your help. Wish there would have been some info on the login error that would help me fix this.

Not sure why it broke in the first place, I had it all updated as far as I know.

Again, thank you.
 
Back
Top