Reply
New Member
Posts: 24
Registered: ‎07-04-2015
Kudos: 33
Accepted Solution

Controller Upgrade Failing - 3.6.39 to 3.8.24

Finally replaced my last 2 UAP-AC-Gen1's which were preventing me from updating to 3.8.x

 

Controller keeps failing to update the database. It seems to install fine but when I go on the web interface it says, Database migration in progress... Then after about 15 sec it goes to this

Screen Shot 2018-07-21 at 9.48.56 AM.png

And this is the service state on the controller. It was originally running on EC3 instance but I started a fresh Ubuntu install on Digital Ocean Droplet using the unifi install scripts and got the same results when I restored from the backup.

Screen Shot 2018-07-20 at 11.24.53 PM.pngScreen Shot 2018-07-20 at 11.25.02 PM.png

Anyone have any clue whats going on? When I remove it using "apt-get remove unifi" and then reisntall it, it says "Restoring settings from 3.6.39" like it never successfully migrated the db or something.


Accepted Solutions
Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @coleblack,

 

We succesfully upgraded the controller though teamviewer after running into some errors!

Wish the best for you and the sites!

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK

View solution in original post


All Replies
Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @coleblack,

 

You're saying you installed it on a new server right?

Could you give my scripts a go to install the UniFi Controller?

I could help you through a teamviewer session if you're interested send me a PM.

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 24
Registered: ‎07-04-2015
Kudos: 33

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Yeah, I tried your scripts. Both on my existing EC3 and that was the first thing I did to the fresh droplet.
Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @coleblack,

 

May i take a look at the controller though a teamviewer session?

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 24
Registered: ‎07-04-2015
Kudos: 33

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Sure. Send me a PM
Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @coleblack,

 

We succesfully upgraded the controller though teamviewer after running into some errors!

Wish the best for you and the sites!

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 22
Registered: ‎04-28-2015

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hi,

 

Can you explain what was the solution for the problem?

I experience the same trouble  when upgrading months ago, I just give up and leave the outdated version of the controller!

we currently manage over 500 APS across 9 sites here in México, you can imagine our scared faces when the controller upgrade didn't complete, but rollback went smoothly!

 

Hopefully your solution can help us for upgrading and get the new features unifi controller has to offer!

 

Greetings from México! 

 

Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @sigimtz,

 

I will be happy to help you out!

I would like to know the exact controller version and to what version you would like to update.

 

 

Regards,
Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 22
Registered: ‎04-28-2015

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

HI @AmazedMender16,

 

Thank you for the reply!

 

we are currently running 3.6.39 and we want to update to the last stable version that the Unifi team had released, I believe is 3.8.24.

Our instalations is on a Google Cloud Compute server (Ubuntu 16.04.3 LTS) and we provision devices via layer 3 method!

 

Our experience upgrading unifi controller versions always had been superb since controller was version 2.X.X, but in this case we struggled, we do have older unifi hardware, and we checked the logs of mongo database when the upgrade was running and unifi migration process always crashed and restarted, maybe an "older unifi hardware datastructure in database incompatibility issue there" ?  we really dig into it but we weren't successfull. 

Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @sigimtz,

 

The latest controller is 5.8.30, do you have any UAP ACs?

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 22
Registered: ‎04-28-2015

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

@AmazedMender16

 

 

LOL! sorry yeah typo there, 5.6.39 is the version we are currently running.

 

yeah we have UAP-AC-LITE , AC-LR and some AC-PROs, on some site we have switches and USGs too!

Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @sigimtz,

 

Haha I knew you were going to answer that!

I meant the squared UAP AC

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @sigimtz,

 

This would be your upgrade path:

3.6.39 > 4.1.1 > 4.2.0 > 4.5.2 > 4.6.6 > 4.7.6 > 4.8.20 > 5.0.6 > 5.2.9 > 5.3.11 > 5.4.19 > 5.5.20 > 5.6.39

 

If its a VM make sure you clone/duplicate it. (Because it can always go wrong..)

Its always a challange to upgrade wrong such a OLD version, I recommend downloading a BACK everytime you start to upgrade.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 22
Registered: ‎04-28-2015

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

@AmazedMender16 you have some special abilities lol,  we do not have any square aps and yeah my current version is 5.6.39 and we want to update to 5.8, nice update path tho!

 

 

Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Hello @sigimtz,

 

Run my update script (scroll down a little) and you will be updated automatically within 2 minutes.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 22
Registered: ‎04-28-2015

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

Wow @AmazedMender16

 

Nice script, I definitely give it a try! 

 

I do have to wait for opening a maintenance window, then I'll reply to you if this work!

 

Thank you!

Senior Member
Posts: 16,751
Registered: ‎08-04-2017
Kudos: 3067
Solutions: 821

Re: Controller Upgrade Failing - 3.6.39 to 3.8.24

[ Edited ]

Hello @sigimtz,

 

Thanks!

Let me know how things go!

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Reply