Reply
New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3
Accepted Solution

Can't update Cloud Key Firmware

I'm trying to update the firmware for my Cloud Key. I've tried a handful of times automatically as well as manually to no avail. Based on another thread, I also tried rebooting the Cloud Key and still can't update.

 

I have plenty of space left on my Cloud Key. Any other suggestions?


Accepted Solutions
Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

@etcook

 

Try these steps to see if it works.

 


UBNT-KM wrote:

scyto

 

What firmware version do you have on that UCK?

Would you like to ssh into your UCK and try these steps (which may help to clean up some space)?

1. `apt-get update ; apt-get install aufs-tools`

2. `/sbin/auplink / flush`

 

Then check if you get enough space for firmware upgrade.

Thanks.

-KM

 


 

View solution in original post


All Replies
Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

@etcook

 

Try these steps to see if it works.

 


UBNT-KM wrote:

scyto

 

What firmware version do you have on that UCK?

Would you like to ssh into your UCK and try these steps (which may help to clean up some space)?

1. `apt-get update ; apt-get install aufs-tools`

2. `/sbin/auplink / flush`

 

Then check if you get enough space for firmware upgrade.

Thanks.

-KM

 


 

New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

[ Edited ]

@Sango I have plenty of space (1.21 gigs free).

 

I'll run the commands you suggest and let you know the results. Thanks!

New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

@Sango

I'm getting the following:

root@UniFi-CloudKey:/# `apt-get update ; apt-get install aufs-tools`
W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-armhf/Packages  404  Not Found [IP: 128.31.0.66 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
-bash: Get:1: command not found

root@UniFi-CloudKey:/# `/sbin/auplink / flush`
-bash: /sbin/auplink: No such file or directory

Thanks!

 

Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

@etcook

 

Can you try it without the ` ?

 

New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

@Sango


root@UniFi-CloudKey:/# apt-get update ; apt-get install aufs-tools
Hit http://security.debian.org jessie/updates InRelease
Ign http://www.ubnt.com cloudkey-stable InRelease
Ign http://httpredir.debian.org jessie InRelease
Hit http://www.ubnt.com cloudkey-stable Release.gpg
Hit http://www.ubnt.com cloudkey-stable Release
Hit http://httpredir.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates/main armhf Packages
Get:1 http://www.ubnt.com cloudkey-stable/ubiquiti armhf Packages [673 B]
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Err http://www.ubnt.com cloudkey-stable/ubiquiti armhf Packages

Hit http://httpredir.debian.org jessie Release
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://www.ubnt.com cloudkey-stable/ubiquiti armhf Packages [673 B]
Err http://security.debian.org jessie/updates/main armhf Packages
  Bad header line [IP: 128.31.0.63 80]
Err http://security.debian.org jessie/updates/contrib armhf Packages
  Bad header line [IP: 128.31.0.63 80]
Get:2 http://httpredir.debian.org jessie/main armhf Packages [6641 kB]
Err http://httpredir.debian.org jessie/main armhf Packages

Get:3 http://httpredir.debian.org jessie/main armhf Packages [6641 kB]
Err http://httpredir.debian.org jessie/main armhf Packages

Err http://httpredir.debian.org jessie/main armhf Packages
  404  Not Found [IP: 128.31.0.66 80]
Err http://httpredir.debian.org jessie/non-free armhf Packages

Err http://httpredir.debian.org jessie/non-free armhf Packages
  404  Not Found [IP: 128.31.0.66 80]
Hit http://httpredir.debian.org jessie/contrib armhf Packages
Err http://httpredir.debian.org jessie/contrib armhf Packages

Err http://httpredir.debian.org jessie/contrib armhf Packages
  404  Not Found [IP: 128.31.0.66 80]
Fetched 673 B in 10s (65 B/s)
W: Failed to fetch http://security.debian.org/dists/jessie/updates/main/binary-armhf/Packages  Bad header line [IP: 128.31.0.63 80]

W: Failed to fetch http://security.debian.org/dists/jessie/updates/contrib/binary-armhf/Packages  Bad header line [IP: 128.31.0.63 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-armhf/Packages  404  Not Found [IP: 128.31.0.66 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/contrib/binary-armhf/Packages  404  Not Found [IP: 128.31.0.66 80]

W: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/non-free/binary-armhf/Packages  404  Not Found [IP: 128.31.0.66 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
Bus errorackage lists... 14%

root@UniFi-CloudKey:/# /sbin/auplink / flush
-bash: /sbin/auplink: No such file or directory
Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

[ Edited ]

@etcook

 

Strange, it works fine for me.  I'm doing this through putty.

 

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.01.01 13:59:07 =~=~=~=~=~=~=~=~=~=~=~=
login as: ubnt
ubnt@192.168.1.6's password: 

  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2013-2016
 |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
 |______|___|  /__||__/   |__|
            |_/                  http://www.ubnt.com

      Welcome to UniFi CloudKey!

Last login: Sun Jan  1 13:57:07 2017

root@UniFi-CloudKey:~# apt-get update ; apt-get install aufs-tools


0% [Working]
            
0% [Connecting to httpredir.debian.org (128.31.0.66)] [Connecting to security.d
                                                                               
0% [Connecting to dl.ubnt.com] [Waiting for headers]
                                                    
Ign http://www.ubnt.com cloudkey-stable InRelease

                                                    
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]

                                                    
22% [1 InRelease 14.2 kB/63.1 kB 22%]
                                     
68% [Connecting to mirrors.wikimedia.org (208.80.154.15)] [1 InRelease 43.1 kB/
                                                                               
Hit http://www.ubnt.com cloudkey-stable Release.gpg

68% [Connecting to mirrors.wikimedia.org (208.80.154.15)] [1 InRelease 43.1 kB/
68% [Connecting to mirrors.wikimedia.org (208.80.154.15)] [1 InRelease 43.1 kB/
                                                                               
Hit http://www.ubnt.com cloudkey-stable Release

100% [Connecting to mirrors.wikimedia.org (208.80.154.15)] [1 InRelease 63.1 kB
                                                                               
Ign http://httpredir.debian.org jessie InRelease

                                                                               
100% [Working]
              
100% [Release gpgv 1003 B] [Waiting for headers]
                                                
100% [Waiting for headers]
                          
100% [1 InRelease gpgv 63.1 kB] [Waiting for headers] [Waiting for headers]
                                                                           
100% [1 InRelease gpgv 63.1 kB] [Waiting for headers]
100% [1 InRelease gpgv 63.1 kB] [Waiting for headers]
                                                     
Hit http://www.ubnt.com cloudkey-stable/ubiquiti armhf Packages

100% [1 InRelease gpgv 63.1 kB] [Waiting for headers]
                                                     
Get:2 http://httpredir.debian.org jessie Release.gpg [2373 B]

                                                     
100% [1 InRelease gpgv 63.1 kB]
                               
100% [Packages 0 B] [1 InRelease gpgv 63.1 kB] [Waiting for headers]
                                                                    
100% [1 InRelease gpgv 63.1 kB] [Waiting for headers]
                                                     
100% [Waiting for headers]
100% [Waiting for headers]
                          
Get:3 http://security.debian.org jessie/updates/main armhf Packages [325 kB]

                          
22% [Waiting for headers] [3 Packages 18.5 kB/325 kB 6%]
                                                        
Get:4 http://httpredir.debian.org jessie Release [148 kB]

                                                        
17% [4 Release 8430 B/148 kB 6%] [3 Packages 18.5 kB/325 kB 6%]
                                                               
100% [4 Release 148 kB/148 kB 100%]
                                   
100% [Working]
              
100% [3 Packages bzip2 0 B] [4 Release gpgv 148 kB] [Waiting for headers]
                                                                         
Get:5 http://security.debian.org jessie/updates/contrib armhf Packages [1138 B]

100% [3 Packages bzip2 0 B] [4 Release gpgv 148 kB] [Waiting for headers]
                                                                         
Get:6 http://security.debian.org jessie/updates/non-free armhf Packages [14 B]

                                                                         
100% [3 Packages bzip2 0 B] [4 Release gpgv 148 kB]
                                                   
100% [3 Packages bzip2 0 B]
100% [3 Packages bzip2 0 B]
                           
100% [3 Packages bzip2 0 B] [Waiting for headers] [Waiting for headers]
                                                                       
Get:7 http://httpredir.debian.org jessie/main armhf Packages [6641 kB]

                                                                       
8% [3 Packages bzip2 0 B] [7 Packages 22.9 kB/6641 kB 0%]
                                                         
Get:8 http://httpredir.debian.org jessie/contrib armhf Packages [38.1 kB]

                                                         
8% [8 Packages 0 B/38.1 kB 0%] [3 Packages bzip2 0 B] [7 Packages 69.2 kB/6641 
                                                                               
12% [3 Packages bzip2 0 B] [7 Packages 281 kB/6641 kB 4%]
                                                         
12% [8 Packages xz 0 B] [Waiting for headers] [3 Packages bzip2 0 B] [7 Package
                                                                               
Get:9 http://httpredir.debian.org jessie/non-free armhf Packages [62.2 kB]

12% [8 Packages xz 0 B] [9 Packages 20.1 kB/62.2 kB 32%] [3 Packages bzip2 0 B]
                                                                               
14% [8 Packages xz 0 B] [3 Packages bzip2 0 B] [7 Packages 372 kB/6641 kB 6%]
                                                                             
15% [3 Packages bzip2 0 B] [7 Packages 440 kB/6641 kB 7%]
                                                         
15% [9 Packages xz 0 B] [3 Packages bzip2 0 B] [7 Packages 440 kB/6641 kB 7%]
                                                                             
19% [3 Packages bzip2 0 B] [7 Packages 717 kB/6641 kB 11%]
                                                          
19% [7 Packages 734 kB/6641 kB 11%]
                                   
19% [5 Packages bzip2 0 B] [7 Packages 734 kB/6641 kB 11%]
                                                          
19% [7 Packages 766 kB/6641 kB 12%]
                                   
19% [6 Packages bzip2 0 B] [7 Packages 766 kB/6641 kB 12%]
                                                          
20% [7 Packages 799 kB/6641 kB 12%]
                                   
40% [7 Packages 2273 kB/6641 kB 34%]
62% [7 Packages 3846 kB/6641 kB 58%]
83% [7 Packages 5419 kB/6641 kB 82%]
                                    
100% [Working]
              
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
                        
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
100% [7 Packages xz 0 B]                                           1166 kB/s 0s
                                                                               
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
100% [7 Packages xz 0 B]
                        
100% [Working]
              
Fetched 7282 kB in 19s (382 kB/s)

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... 10%

Reading package lists... 18%

Reading package lists... 26%

Reading package lists... 35%

Reading package lists... 43%

Reading package lists... 52%

Reading package lists... 60%

Reading package lists... 67%

Reading package lists... 74%

Reading package lists... 81%

Reading package lists... 89%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 93%

Reading package lists... 94%

Reading package lists... 94%

Reading package lists... 97%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... 99%

Reading package lists... Done


Reading package lists... 0%

Reading package lists... 100%

Reading package lists... Done


Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree... 77%

Building dependency tree       


Reading state information... 0%

Reading state information... 0%

Reading state information... Done

aufs-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@UniFi-CloudKey:~# /sbin/auplink / flush
root@UniFi-CloudKey:~# reboot


Broadcast message from root@UniFi-CloudKey on pts/0 (Sun 2017-01-01 14:00:38 PST):



The system is going down for reboot NOW!



root@UniFi-CloudKey:~# 
New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

@Sango

 

I wonder if my sources list got corrupted. What does yours look like?

Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

@etcook

 

Not sure how to do it.  Do you have a backup of your CK?  The only other way I am thinking is if you invoke a factory reset, it should clear it up to allow you to upgrade, then you can do a restore afterwards.

New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

@Sango

What are the contents of your /etc/apt/sources.list file?

Senior Member
Posts: 3,856
Registered: ‎05-13-2015
Kudos: 1134
Solutions: 98

Re: Can't update Cloud Key Firmware

@etcook

 

Here you go.

 

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2017.01.01 14:29:53 =~=~=~=~=~=~=~=~=~=~=~=
login as: ubnt
ubnt@192.168.1.6's password: 

  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2013-2016
 |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
 |______|___|  /__||__/   |__|
            |_/                  http://www.ubnt.com

      Welcome to UniFi CloudKey!

Last login: Sun Jan  1 14:01:02 2017

root@UniFi-CloudKey:~# cat /etc/apt/sources.list
deb http://httpredir.debian.org/debian/ jessie main contrib non-free
root@UniFi-CloudKey:~# exit
logout
Established Member
Posts: 2,548
Registered: ‎04-26-2016
Kudos: 942
Solutions: 262

Re: Can't update Cloud Key Firmware

To me it looks like the CloudKey has no internet access.

 

Can you ping for example Google.com when logged in to the CloudKey?

New Member
Posts: 31
Registered: ‎05-20-2016
Kudos: 3

Re: Can't update Cloud Key Firmware

It had internet access, but it turns out it was a space issue. Although it showed me as having plenty of space left in the interface, it looks like the image was being downloaded into a different volume. I cold booted the unit and then followed the instructions provided above, and it worked!

New Member
Posts: 3
Registered: ‎07-30-2016
Kudos: 14

Re: Can't update Cloud Key Firmware

[ Edited ]

I struggled with the same thing and ended up updating the ubnt tools to 0.9.7-1 and via step 4 successfully completed the cloud key update to 0.89

 

https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-Cloud-Key-firmware-0-8-7-has-been-released/ba...

 

  1. Connect to the UniFi Cloud Key via SSH.
  2. Issue:
    dpkg -l |grep ubnt-tools
  3. If ubnt-tools is anything other than 0.9.7-1, then you need to update it. You can update it by issuing: 
    apt-get update && apt-get install --only-upgrade ubnt-tools
  4. Once the ubnt-tools package is updated, you can run the upgrade by issuing: 

     

    ubnt-systool fwupdate http://dl.ubnt.com/unifi/cloudkey/firmware/UCK/UCK.mtk7623.v0.8.9.d9dda97.180108.1229.bin

New Member
Posts: 19
Registered: ‎08-16-2017
Kudos: 2
Solutions: 1

Re: Can't update Cloud Key Firmware

cheers. I had the same issue but I stumbled around it by first updating Cloud-Key Controller in the GUI and then when it came back up I could then update the Cloud-Key firmware successfully... but I guess your method will be more efficient to do that in the future, thanks.

Established Member
Posts: 2,548
Registered: ‎04-26-2016
Kudos: 942
Solutions: 262

Re: Can't update Cloud Key Firmware

This was caused by a bug. You don't have to do this again in the future once you performed the upgrade.

New Member
Posts: 1
Registered: ‎08-01-2016

Re: Can't update Cloud Key Firmware

Thank you, this finally addressed my issue with updating.

New Member
Posts: 2
Registered: ‎02-19-2017

Re: Can't update Cloud Key Firmware

I'm trying to update my cloud key from 0.8.2 because it was working totally fine, then one day just lost all of the device and username information and I have to start over.  I have tried to update to 0.10.0 from the web gui, automatically and manually, and after clearing the space as outlined above, but it's still stuck on 0.8.2.  I have also tried to ssh in and use the cli to manually update to 0.9.x and that also didn't work.

 

What can I try next?

New Member
Posts: 1
Registered: ‎12-15-2016

Re: Can't update Cloud Key Firmware

New Member
Posts: 29
Registered: ‎07-05-2015
Kudos: 5

Re: Can't update Cloud Key Firmware

I tried doing this via web management (automatic and manually), then via ssh using :

root@UniFi-CloudKey:~# ubnt-systool fwupdate https://dl.ubnt.com/unifi/cloudkey/firmware/UCK/UCK.mtk7623.v0.10.0.cc913ee.180306.1543.bin
1239
converted 'https://dl.ubnt.com/unifi/cloudkey/firmware/UCK/UCK.mtk7623.v0.10.0.cc913ee.180306.1543.bin' (ANSI_X3.4-1968) -> 'https://dl.ubnt.com/unifi/cloudkey/firmware/UCK/UCK.mtk7623.v0.10.0.cc913ee.180306.1543.bin' (UTF-8)
--2018-03-23 19:21:58-- https://dl.ubnt.com/unifi/cloudkey/firmware/UCK/UCK.mtk7623.v0.10.0.cc913ee.180306.1543.bin
Resolving dl.ubnt.com (dl.ubnt.com)... 13.32.172.223
Connecting to dl.ubnt.com (dl.ubnt.com)|13.32.172.223|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 350700556 (334M) [application/octet-stream]
Saving to: '/var/tmp/fwupdate.DrujrOhYqQ'

/var/tmp/fwupdate.DrujrOhYqQ 100%[========================================================================================================================>] 334.45M 5.04MB/s in 1m 43s

2018-03-23 19:23:41 (3.26 MB/s) - '/var/tmp/fwupdate.DrujrOhYqQ' saved [350700556/350700556]

Firmware file: '/var/tmp/fwupdate.DrujrOhYqQ'
Firmware: UCK.mtk7623.v0.10.0.cc913ee.180306.1543
/sbin/ubnt-systool: 221: [: /boot/fwupdate.bin: unexpected operator
Firmware ready - rebooting to update...

Broadcast message from root@UniFi-CloudKey on pts/0 (Fri 2018-03-23 19:24:23 CDT):

The system is going down for reboot NOW!

 

 

Still boots with 0.8.2

Reply