Unifi controller как обновить linux

Содержание
  1. UniFi — Как с помощью APT установить или обновить UniFi в Debian/Ubuntu
  2. Note.wdm.net.ua
  3. my notes
  4. Обновление контроллера UniFi на Debian
  5. Обновление UniFi controller c версии 5.0.7 до версии 5.3.11.0.
  6. Обновление UniFi controller c версии 3.2.5 до версии 5.0.7.
  7. Обновление UniFi controller c версии 3.1.9 до версии 3.2.5.
  8. Upgrade Ubiquiti UniFi on Ubuntu 19.04
  9. Download the Installation Script
  10. Log into Upgraded UniFi Controller
  11. UniFi — Переход на другую версию фирменного ПО через SSH
  12. davecoutts / unifi_ubuntu_2004.sh
  13. This comment has been minimized.
  14. nugget commented May 9, 2020
  15. This comment has been minimized.
  16. goldengit commented May 31, 2020
  17. This comment has been minimized.
  18. chucklebrother commented Jun 15, 2020 •
  19. This comment has been minimized.
  20. jbloz7 commented Jun 19, 2020
  21. This comment has been minimized.
  22. ThomasLobker commented Jun 19, 2020
  23. This comment has been minimized.
  24. Flurkmark commented Aug 15, 2020
  25. This comment has been minimized.
  26. tmuncks commented Aug 22, 2020
  27. This comment has been minimized.
  28. davecoutts commented Aug 22, 2020
  29. This comment has been minimized.
  30. Smugger21 commented Sep 13, 2020 •
  31. This comment has been minimized.
  32. firecat53 commented Sep 18, 2020
  33. This comment has been minimized.
  34. tonyappleton commented Oct 30, 2020
  35. This comment has been minimized.
  36. Zilog-80 commented Dec 7, 2020
  37. This comment has been minimized.
  38. mephibosheth commented Dec 21, 2020
  39. This comment has been minimized.
  40. adrianoapmartins commented Jan 13, 2021
  41. This comment has been minimized.
  42. ARolek commented Feb 6, 2021 •
  43. This comment has been minimized.
  44. rnicolaev commented Feb 13, 2021
  45. This comment has been minimized.
  46. davecoutts commented Feb 13, 2021
  47. This comment has been minimized.
  48. Dudleydogg commented Mar 7, 2021
  49. This comment has been minimized.
  50. kkarhan commented Mar 8, 2021
  51. This comment has been minimized.
  52. Maciej-Majcherek commented Mar 26, 2021
  53. This comment has been minimized.
  54. davecoutts commented Mar 26, 2021
  55. This comment has been minimized.
  56. Maciej-Majcherek commented Mar 26, 2021
  57. This comment has been minimized.
  58. davecoutts commented Mar 26, 2021
  59. This comment has been minimized.
  60. Bubba-Kastorsky commented Apr 9, 2021
  61. This comment has been minimized.
  62. crayz9000 commented Apr 21, 2021
  63. This comment has been minimized.
  64. earenasr commented Apr 21, 2021
  65. This comment has been minimized.
  66. crayz9000 commented Apr 21, 2021
  67. This comment has been minimized.
  68. earenasr commented Apr 21, 2021
  69. This comment has been minimized.
  70. davecoutts commented Apr 21, 2021
  71. This comment has been minimized.
  72. ganter799 commented Jun 29, 2021
  73. This comment has been minimized.
  74. AHrubik commented Jul 16, 2021
  75. This comment has been minimized.
  76. warybyte commented Jul 23, 2021
  77. This comment has been minimized.
  78. dbosk commented Aug 10, 2021
  79. This comment has been minimized.
  80. larrydevops commented Aug 15, 2021
  81. This comment has been minimized.
  82. Thijxx commented Aug 26, 2021 •
  83. This comment has been minimized.
  84. emulated24 commented Aug 27, 2021
  85. This comment has been minimized.
  86. Thijxx commented Aug 30, 2021
  87. This comment has been minimized.
  88. emulated24 commented Aug 31, 2021
  89. This comment has been minimized.
  90. RocketLR commented Sep 13, 2021
  91. This comment has been minimized.
  92. ficematt commented Oct 2, 2021 •
  93. This comment has been minimized.
  94. Starkstromkonsument commented Oct 2, 2021
  95. This comment has been minimized.
  96. ficematt commented Oct 3, 2021

UniFi — Как с помощью APT установить или обновить UniFi в Debian/Ubuntu

В данной статье приведен список файлов с исходными кодами, которые необходимо создать, а также строки, файла sources.list, которые можно использовать для установки и обновления UniFi на системе с Debian или Ubuntu с помощью APT. Описанный метод является стандартным методом установки и обновления пакетов в этих ОС. Предполагается, что содержание размещенных в нашем хранилище файлов статей меняться не будет, однако если изменения все-таки будут внесены, об этом будет сообщено в распространяемых электронными способами сообщениях. Это касается и данной статьи.

Как с помощью APT установить или обновить контроллер UniFi

Добавьте файл /etc/apt/sources.list.d/100-ubnt.list (или отредактируйте файл /etc/apt/sources.list). Параметр ‘stable’ в исходном коде является плавающим. Если требуется оставить какую-либо ветку свободной, укажите ее в строке исходного кода (например, для UniFi v5 в исходном коде используйте ‘unifi5’ и т. д.).

Добавьте ключи GPG:

# для Ubiquiti sudo apt-key adv —keyserver keyserver.ubuntu.com —recv C0A52C50 # или по HTTP, используя hkp://keyserver.ubuntu.com:80

Обновление, установка или модификация контроллера:

# восстановление последней информации пакета sudo apt-get update # установка/обновление контроллера unifi sudo apt-get install unifi

(Опция) Данный шаг может и не потребоваться (зависит от использованного дистрибутива Linux). Если в дистрибутиве отсутствует MongoDB и в хранилище файлов, откуда был взят дистрибутив, этот компонент недоступен, см. руководство по установке MongoDB. Самую новую версию руководства по установке Ubuntu см. ЗДЕСЬ , а Debian ЗДЕСЬ . Mongo 3 может работать ненадежно с функцией резервного копирования UniFi, не забудьте об этом, когда будете обновлять Mongo. В настоящее время предпочтительнее использовать Mongo 2.

Прямого доступа к хранилищу файлов (а также к спискам его файлов) не предоставляется. Если Вы попытаетесь напрямую открыть папку, то будет выдано сообщение 403 о том, что доступ запрещен.

Источник

Note.wdm.net.ua

my notes

Обновление контроллера UniFi на Debian

Обновление UniFi controller c версии 5.0.7 до версии 5.3.11.0.

2017-02-01
Debian 7.11

Прошло без проблем.

Плюсы:
– Решилась проблема с Картой и размещением на ней AP.

Обновление UniFi controller c версии 3.2.5 до версии 5.0.7.

Прошло без проблем.

GUI обновилось успешно.
Статистика где-то потерялась.
Точки все видны. Статус NEEDS UPGRADE
Решил использовать – Rolling upgrade.
Процесс начался хорошо:

Закончился плохо:

Точки в статусе DISCONNCTED пингуются. Предполагаю что работают со старой конфигурацией.
Обновление через CONSTUM UPGRADE не выполняется.

По прибытию на место выяснилось:
Точки не отдают Wifi. Световая индикация отсутствует.
Сделали:
Отключили/включили точку на коммутаторе (POE).
Точки стали видны в Контроллере со старой конфигурацией.
Выполнили UPGRADE каждой точки индивидуально – все заработало!

Вывод: ROLLING UPDATE – не применяем более.

Обновление UniFi controller c версии 3.1.9 до версии 3.2.5.

Debian
Обновление репозитариев

Обновление старой UniFi или установка новой версии.

Источник

Upgrade Ubiquiti UniFi on Ubuntu 19.04

UniFi Controller 5.10.x with Dark Mode

I have upgraded my automation server to Ubuntu 19.04 a few months ago, and this time decided to use the excellent UniFi upgrade script by Glenn R to update UniFi controller version from 5.9.x to 5.10.x

Download the Installation Script

As always, the process is very simple: you visit the UniFi installation scripts page by Glenn R and download the install script with desired UniFi version – 5.10.x is the current stable release so that’s what I did.

The script may offer to download another script, for Easy Update (if you already have UniFi controller software installed) and then ask you to select if you’re upgrading just the controller, or UniFi controller plus all the Ubiquiti devices it manges, or even upgrade the OS. I only upgraded controller.

You get to choose the release version for your upgrade:

UniFi Upgrade — Choose Version

I also got a warning about upgrading controller without firmware on all the managed devices:

UniFi Controller Upgrade — Firmware Warning

My versions of USG and access points are above these (rather old) required versions, so it was okay for me to proceed.

After about 5 min of working, the script confirmed a success:

UniFi Controller Upgrade — Success

Thank you, Glenn! 🙂

Log into Upgraded UniFi Controller

Browsing to the port 8443 on the automation server, I could see the login page immediately confirming freshly upgraded UniFi version:

UniFi Controller Login Screen

… and after the login there’s now a great feature explanation section, showing you what new greatness is available with the most recent update:

Читайте также:  Ноутбук не видит телевизор через wifi windows 10

UniFi Upgrade — Welcome

Can’t believe how Dark Mode is a seriously new release worthy feature in most software news lately!

I’m very happy with the upgrade scripts and can totally recommend them. Don’t forget I also have a post on installing UniFi controller on Ubuntu 18.10.

Источник

UniFi — Переход на другую версию фирменного ПО через SSH

Описано, как вручную перейти на более новую (или на более старую) версию фирменного ПО, используя SSH. Дальнейшую информацию о том, как подключить устройство, используя SSH см. в разделе «Другие статьи по этой теме» в конце данной статьи.

При некоторых сценариях, при устранении неполадок может требоваться ручная настройка. У некоторых пользователей возникают проблемы с настройкой точек доступа UAP, пока они не обновят фирменное ПО до версии, одинаковой с контроллером (в большинстве случаев при удаленной установке).

При устранении неполадок часто бывает так, что проблема обнаружена и требуется изменить версию фирменного ПО на одной или нескольких UAP без изменения версии ПО контроллера. Это возможно сделать. Если на контроллере Вы используете версию, отличную от той, которая была поставлена вместе с контроллером, то сначала убедитесь, что опция Automatic Upgrades (Автоматические обновления) в контроллере выключена.

Стандартный метод обновления фирменного ПО по SSH

Локальное обновление фирменного программного обеспечения

Определение версии фирменного ПО

Другие статьи по этой теме

Имеется множество способов сделать это. Есть способ, при котором UAP запросит фирменное ПО с контроллера и выполнит обновление. Имеется также способ, называемый локальным обновлением, при котором процесс обновления запускается UAP самостоятельно. В данной статье будут детально описаны оба способа.

Стандартный метод обновления фирменного ПО по SSH (путем связи с контроллером)

Пользователи, обновляющие USG или USG-Pro-4 должны сначала вызвать консоль и ввести команду sudo su, чтобы обновить псевдоним,

указывающий на URL, так чтобы этот псевдоним указывал на контроллер, локальный web-хост или на наш CDN (или другой хорошо известный хост).

Процесс локального обновления фирменного ПО (запускается UAP самостоятельно).

Чтобы выполнить локальное обновление, необходимо переименовать файл firmware.bin в fwupdate.bin, а затем скопировать его в папку /tmp на UAP.

Итак, Вам необходимо скопировать файл из соответствующей папки контроллера. Параметры «версии» см. в таблице ниже, для этой версии в таблице указано наименование папки соответствующей модели UAP.

При работе под Linux:

Откройте приложение Terminal (Терминал).

scp /usr/lib/unifi/dl/firmware/ binary / version /firmware.bin user@ip.of.uap :/tmp/fwupdate.bin

При работе на Mac:

Откройте приложение Terminal (Терминал).

scp /Applications/UniFi.app/Contents/Resources/dl/firmware/ binary / version / f irmware.bin user@ip.of.uap :/tmp/fwupdate.bin

Например, в Linux, если требуется скопировать двоичный файл 3.2.1 в стандартную UAP для локального обновления, необходимо ввести команду:

scp /usr/lib/unifi/dl/firmware/BZ2/3.2.1.2601/firmware.bin user@ip.of.uap :/tmp/fwupdate.bin

Локальный путь к двоичному файлу с кодом фирменного ПО может меняться в зависимости от того, был этот файл поставлен вместе с контроллером, либо был загружен специальный двоичный файл.

Пользователям Windows необходимо скопировать файл с помощью WinSCP или MobaXterm (есть и другие программы для этого, например, PSCP и т.п.). После того, как Вы скопируете файл в папку /tmp/, рекомендуется переименовать его (так как Вы, наверное, пожелаете оставить локальный файл с именем firmware.bin).

Затем подключитесь по SSH и введите соответствующую команду, чтобы начать локальное обновление.

Примечания: Убедитесь, что Вы используете соответствующий двоичный файл фирменного ПО для соответствующего устройства. Данный метод полезен для некоторых тестовых фирменных ПО, которые могут не содержать wget. Вы можете применить этот метод и по другим причинам, например для обновления некоторого устройства UniFi до другой версии фирменного ПО без изменения существующей версии контроллера.

USG/USG-Pro поддерживает локальное обновление, однако Вы можете пожелать в качестве имени файла использовать upgrade.tar Вы должны поместить файл с обновлением в папку, в которую разрешена запись, так что лучше всего использовать /home/username/ (замените username на имя пользователя с правами администратора). Вам необходимо запустить соответствующую команду. Допустим, Вы находитесь в домашней папке, а файл имеет имя upgrade.tar .

Введите команду ‘sudo syswrapper.sh upgrade upgrade.tar’

Определение версии фирменного ПО

Пожалуйста, изучите таблицу, приведенную ниже. В ней приведены только стабильные версии (без альфа- и бета-версий). В дереве папок можно отыскать номера и других версий.

Чтобы отыскать версию фирменного ПО, можно исследовать всю структуру. Убедитесь, что найдена согласующаяся версия фирменного ПО (см. ниже). Например, фирменное ПО для стандартной UAP, LR, OD, OD5 и PicoM2 находится в папке BZ2. Для текущих моделей AC используйте фирменное ПО из папки U7E. В таблице ниже приведены все папки с фирменным ПО. Кроме того, на него ссылается файл bundles.json (находится в папке с фирменным ПО), но его читать немного сложнее, чем таблицу ниже.

Vista+: C:\Users\ username \Ubiquiti UniFi\dl\firmware

XP: C:\Documents and Settings\ username \Ubiquiti UniFi\dl\firmware

Как и для версии 4.8.14 мы приводим прямые ссылки на файлы с фирменным ПО в нашем CDN. Вы можете использовать эти ссылки в пользовательском интерфейсе (UI) контроллера для выполнения специальных вариантов обновления. Как и 4.8.14, версия контроллера также имеет ссылку, так что Вы можете щелкнуть по ней мышью, чтобы получить ссылки на двоичные файлы. Кроме того, как и для версии 4.8.14, хостинг фирменного ПО USG/USG-Pro-4 осуществляется в нашем CDN; теперь оно не поставляется вместе с контроллером и ссылки на него также есть в таблице ниже. И контроллер, и ссылки на CDN работают через SSH.

UAP, UAP-LR, UAP-Outdoor, UAP-Outdoor5, PicoM2HP

Источник

davecoutts / unifi_ubuntu_2004.sh

# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install —yes apt-transport-https
echo ‘ deb https://www.ui.com/downloads/unifi/debian stable ubiquiti ‘ | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
sudo apt update
sudo apt install —yes openjdk-8-jre-headless unifi
sudo apt clean
sudo systemctl status —no-pager —full mongodb.service unifi.service
# Now log into https://unifi_controller_hostname:8443/
# # ————————————————————————————————————————
# # Previous install steps from when unifi still required mongodb-server
# # unifi has since been updated to work with mongodb-server 3.6. Which is available from the Ubuntu 20.04 main repository.
# # ————————————————————————————————————————
#
# sudo apt install —yes ca-certificates apt-transport-https
# echo ‘deb https://www.ui.com/downloads/unifi/debian stable ubiquiti’ | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
# sudo apt-key adv —keyserver keyserver.ubuntu.com —recv 06E85760C0A52C50
# wget -qO — https://www.mongodb.org/static/pgp/server-3.4.asc | sudo apt-key add —
# echo ‘deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse’ | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
# sudo apt-mark hold openjdk-11-*
# sudo apt update
# # mongodb 3.4 dependency
# wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb -P /tmp
# sudo apt install —yes /tmp/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
# rm /tmp/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb
# sudo apt install —yes mongodb-org
# sudo apt install —yes unifi

This comment has been minimized.

Copy link Quote reply

nugget commented May 9, 2020

Thanks so much for this!

This comment has been minimized.

Copy link Quote reply

goldengit commented May 31, 2020

Thanks for this — got me pointed in the right direction with install — had to edit JRE path before unifi service successfully launched — see here:

This comment has been minimized.

Copy link Quote reply

chucklebrother commented Jun 15, 2020 •

no jre8 installed, not sure I liked the idea of messing with the init script as per goldengit’s instructions especial as the init script seemed aware of the architectural path names that the linked post addresses.

Given that the init script seems aware that it needs to specify architecture, and seem fairly specific about wanting java 8 I thought I’d run:

sudo apt install openjdk-8-jdk

This seems to have worked and I got the unifi controller landing page and successfully imported my backup from the controller on my previous server.

This comment has been minimized.

Copy link Quote reply

jbloz7 commented Jun 19, 2020

Installing Java worked for me too.

This comment has been minimized.

Copy link Quote reply

ThomasLobker commented Jun 19, 2020

For me downgrading MongoDB was not necessary. I currently have version 3.6.9 installed from the Ubuntu 20.04 repository.

Читайте также:  Как посмотреть свойства системы windows

This comment has been minimized.

Copy link Quote reply

Flurkmark commented Aug 15, 2020

Just posting to preserve my findings for posterity, maybe someone with similar issues will find this.
Ubuntu 20.04. Got it working by changing the init-scripts as stated above. Stopped working after reboot. Server only binds ipv6, and db stopping.

Fixes:
Add to init string:

Also, /usr/lib/unifi/run is linked and gets broken after reboot. I just created it as a directory in place. You could off course just re-link it proper.

This comment has been minimized.

Copy link Quote reply

tmuncks commented Aug 22, 2020

For me, this is all that was needed on a clean 20.04 install:

This comment has been minimized.

Copy link Quote reply

davecoutts commented Aug 22, 2020

Thanks all for the notes and feedback.

It would seem that the Unifi Controller has been updated since I first released the gist 4 months ago.
mongodb-server

This comment has been minimized.

Copy link Quote reply

Smugger21 commented Sep 13, 2020 •

I have to run:
sudo java -jar /usr/lib/unifi/lib/ace.jar discover

In order to get the service to even start up
( To get the system.properties file to generate )
Otherwise it errors out saying «file or folder not found» in the log for the Unifi Service
Just though I would post this.

Otherwise all the other steps work as posted.

So here is my setup process:

This comment has been minimized.

Copy link Quote reply

firecat53 commented Sep 18, 2020

Thanks! Finally able to update my last container to 20.04 base.

This comment has been minimized.

Copy link Quote reply

tonyappleton commented Oct 30, 2020

Worked like a charm — thank you!!

This comment has been minimized.

Copy link Quote reply

Zilog-80 commented Dec 7, 2020

Works great thank you.

This comment has been minimized.

Copy link Quote reply

mephibosheth commented Dec 21, 2020

Just gotta say, «Thank you!» Done in 10 minutes and with no industrial language. Just what the doctor ordered.

This comment has been minimized.

Copy link Quote reply

adrianoapmartins commented Jan 13, 2021

Great, thanks for the rundown. In my set up I actually had to reboot the machine, for some reason I wasn’t able to log in with my Ubiquiti account but it was fixed after a restart, for some reason.

This comment has been minimized.

Copy link Quote reply

ARolek commented Feb 6, 2021 •

Worked great for me! I did have to make some firewall adjustments:

  • port 8443 is needed for the web console
  • port 3478 is needed for the STUN communication

This comment has been minimized.

Copy link Quote reply

rnicolaev commented Feb 13, 2021

Hi guys, can you please explain how to update the Unifi controller on Ubuntu 20.04, when Unifi will release new versions of the controller in the future.

This comment has been minimized.

Copy link Quote reply

davecoutts commented Feb 13, 2021

Once the Unifi controller is installed it is simply a matter of executing the commands ,

When you run the apt update command you will see that the latest Unifi https://dl.ubnt.com/unifi/debian repository package list is downloaded.
If Unifi have released a new version and placed it in their repository, the apt upgrade command will download and install it.

This comment has been minimized.

Copy link Quote reply

Dudleydogg commented Mar 7, 2021

Fresh install Ubuntu Server, Ran the .sh script. went to the URL, uploaded my Backup file and I was up and running, even populated my cloud URL. Wow fantastic thanks.

This comment has been minimized.

Copy link Quote reply

kkarhan commented Mar 8, 2021

For me, this is all that was needed on a clean 20.04 install:

This comment has been minimized.

Copy link Quote reply

Maciej-Majcherek commented Mar 26, 2021

@davecoutts Do you also have : ERROR Error processing element InMemoryAppender ([Appenders: null]): CLASS_NOT_FOUND

This comment has been minimized.

Copy link Quote reply

davecoutts commented Mar 26, 2021

Yes I do see that error.
These errors first appeared after I upgraded from version 6.0.45 to 6.1.71, which I did today.
I checked the unifi log history with journalctl -u unifi.service —no-pager to confirm this.

In my case the Unifi Controller is still running normally, even with the new set of errors.

This comment has been minimized.

Copy link Quote reply

Maciej-Majcherek commented Mar 26, 2021

Thanks for quick reply Dave. I was just curious if it is only on my environment.
I’ve got one last question 😅
Did You upgrade controller via sudapt update unifi ?

This comment has been minimized.

Copy link Quote reply

davecoutts commented Mar 26, 2021

You are welcome Maciej.
I updated the server with sudo apt update && sudo apt upgrade and that picked up the new unifi version.

This comment has been minimized.

Copy link Quote reply

Bubba-Kastorsky commented Apr 9, 2021

Worked great for me! I did have to make some firewall adjustments:

  • port 8443 is needed for the web console
  • port 3478 is needed for the STUN communication

Also i need to make:
sudo ufw allow 8080/tcp
*port 8080 Port used for device and controller communication.

This comment has been minimized.

Copy link Quote reply

crayz9000 commented Apr 21, 2021

With a fresh Ubuntu 20.04 install, the script worked to install UniFi 6.1.71-15061-1, except the web interface wouldn’t start, and this message was reported by systemctl status:

unifi[36574]: WARN Unable to load properties from ‘/usr/lib/unifi/data/system.properties’ — /usr/lib/unifi/data/system.properties (No such file or directory)

Checking the permissions on /usr/lib/unifi showed that everything was owned root:root, while all processes were running under user unifi. Running chown -R unifi:unifi /usr/lib/unifi allowed the service to restart successfully.

This comment has been minimized.

Copy link Quote reply

earenasr commented Apr 21, 2021

hola buen dia, instale satisfactoriamente, me estaba funcionando bien pero de un momento a otro no me abre por web, no conozco del tema podrian ayudarme por favor

This comment has been minimized.

Copy link Quote reply

crayz9000 commented Apr 21, 2021

hola buen dia, instale satisfactoriamente, me estaba funcionando bien pero de un momento a otro no me abre por web, no conozco del tema podrian ayudarme por favor

Trate de usar sudo chown -R unifi:unifi /usr/lib/unifi y sudo systemctl restart unifi

This comment has been minimized.

Copy link Quote reply

earenasr commented Apr 21, 2021

hola buen dia, instale satisfactoriamente, me estaba funcionando bien pero de un momento a otro no me abre por web, no conozco del tema podrian ayudarme por favor

Trate de usar sudo chown -R unifi:unifi /usr/lib/unifi y sudo systemctl restart unifi

nada no me funciona, no se que mas hacer tengo 200 equipos que se validan en ese cloud, usted sabe de alguien que pueda revisarlo y pago sus servicios ?

This comment has been minimized.

Copy link Quote reply

davecoutts commented Apr 21, 2021

With a fresh Ubuntu 20.04 install, the script worked to install UniFi 6.1.71-15061-1, except the web interface wouldn’t start, and this message was reported by systemctl status:

unifi[36574]: WARN Unable to load properties from ‘/usr/lib/unifi/data/system.properties’ — /usr/lib/unifi/data/system.properties (No such file or directory)

Checking the permissions on /usr/lib/unifi showed that everything was owned root:root, while all processes were running under user unifi. Running chown -R unifi:unifi /usr/lib/unifi allowed the service to restart successfully.

Читайте также:  Для чего нужно создание образа системы windows

I believe the /usr/lib/unifi/data/system.properties (No such file or directory) error only occurs the first time the unifi application starts, following the installation.
I don’t know the unifi application post installation initialisation process, but it could be that the system.properties file needs time to be generated.

If you check soon after application start, you will see the system.properties file in directory /var/lib/unifi , which is soft linked from /usr/lib/unifi/data .

I don’t believe you need to change the ownership of /usr/lib/unifi .
To check this you could try restarting the unifi application without changing the /usr/lib/unifi directory ownership, and see if the system.properties error reoccurs. In my case I didn’t see the system.properties error on restarting the unifi application.

This comment has been minimized.

Copy link Quote reply

ganter799 commented Jun 29, 2021

Just wanna thanks for your guide. Had some problems installing on Ubuntu 21.04 and switch to my Raspberry4 with Raspberry PI OS lite. Had to install ufw and open port 8443/tcp. Don’t know if the last step was really necessary but it worked. Maybe I was too stupid and mixed up the IP. Now everything works like charm.

This comment has been minimized.

Copy link Quote reply

AHrubik commented Jul 16, 2021

Thanks for this — got me pointed in the right direction with install — had to edit JRE path before unifi service successfully launched — see here:

This is still required using Ubuntu 20.04-2.

This comment has been minimized.

Copy link Quote reply

warybyte commented Jul 23, 2021

This also works on my configuration of 18.04. Thanks so much!

This comment has been minimized.

Copy link Quote reply

dbosk commented Aug 10, 2021

On a Raspberry Pi 4 (arm64), I needed to modify one line:

This comment has been minimized.

Copy link Quote reply

larrydevops commented Aug 15, 2021

Works perfectly. Tried on Ubuntu 20.04.02

This comment has been minimized.

Copy link Quote reply

Thijxx commented Aug 26, 2021 •

Does not work (anymore) as it currently fails a mongodb dependency check unfortunately.

I’m working with Ubuntu 21.04, that is probably the problem. Manually installed Mongo but unifi keeps nagging about it missing no matter what I do.

This comment has been minimized.

Copy link Quote reply

emulated24 commented Aug 27, 2021

Does not work (anymore) as it currently fails a mongodb dependency check unfortunately.

I’m working with Ubuntu 21.04, that is probably the problem. Manually installed Mongo but unifi keeps nagging about it missing no matter what I do.

I did this on Ubuntu Server 21.04 on arm64 RPi4b, works fine, mongodb 3.6.3 gets installed:

This comment has been minimized.

Copy link Quote reply

Thijxx commented Aug 30, 2021

I used the pre-installed Raspberry Pi image for Ubuntu 21.04, maybe there is a difference there? Otherwise I cannot explain why it did not work out for me. I’ve moved to the LinuxServer docker container with Unifi.

This comment has been minimized.

Copy link Quote reply

emulated24 commented Aug 31, 2021

I used the pre-installed Raspberry Pi image for Ubuntu 21.04, maybe there is a difference there? Otherwise I cannot explain why it did not work out for me. I’ve moved to the LinuxServer docker container with Unifi.

Not sure what went wrong, but I used this image for installation: ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz
Then did what’s above, twice already, no problem at all. 🙂

This comment has been minimized.

Copy link Quote reply

RocketLR commented Sep 13, 2021

For me, this is all that was needed on a clean 20.04 install:

Jupp thanks man. This worked flawlessly.

This comment has been minimized.

Copy link Quote reply

ficematt commented Oct 2, 2021 •

I have followed these steps but can seem to access the Unifi console. When I check the unifi.service status bellow is the output.
● unifi.service — unifi
Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2021-10-01 23:04:39 CDT; 3min 13s ago
Process: 1001 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS)
Main PID: 1196 (jsvc)
Tasks: 37 (limit: 43313)
Memory: 313.0M
CGroup: /system.slice/unifi.service
├─1196 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo>
├─1199 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo>
└─1200 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo>

Oct 01 23:03:36 dvr1 systemd[1]: Starting unifi.
Oct 01 23:03:36 dvr1 unifi.init[1001]: * Starting Ubiquiti UniFi Controller unifi
Oct 01 23:04:39 dvr1 unifi.init[1001]: . fail!
Oct 01 23:04:39 dvr1 systemd[1]: Started unifi.
lines 1-16/16 (END)

The third line up from the bottom is the one that has me worried. I have tried looking online for a solution, but have come up empty handed.
Also, when I check the open ports with sudo lsof -nP -iTCP -sTCP:LISTEN I don’t see where the port 8443 is listening and open. I do not have UFW active. I have not had an issue with getting portainer and cockpit running. Those ports are shown listening when I ran the above command.

This comment has been minimized.

Copy link Quote reply

Starkstromkonsument commented Oct 2, 2021

I have followed these steps but can seem to access the Unifi console. When I check the unifi.service status bellow is the output. ● unifi.service — unifi Loaded: loaded (/lib/systemd/system/unifi.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2021-10-01 23:04:39 CDT; 3min 13s ago Process: 1001 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS) Main PID: 1196 (jsvc) Tasks: 37 (limit: 43313) Memory: 313.0M CGroup: /system.slice/unifi.service ├─1196 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo> ├─1199 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo> └─1200 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commo>

Oct 01 23:03:36 dvr1 systemd[1]: Starting unifi. Oct 01 23:03:36 dvr1 unifi.init[1001]: * Starting Ubiquiti UniFi Controller unifi Oct 01 23:04:39 dvr1 unifi.init[1001]: . fail! Oct 01 23:04:39 dvr1 systemd[1]: Started unifi. lines 1-16/16 (END)

The third line up from the bottom is the one that has me worried. I have tried looking online for a solution, but have come up empty handed. Also, when I check the open ports with sudo lsof -nP -iTCP -sTCP:LISTEN I don’t see where the port 8443 is listening and open. I do not have UFW active. I have not had an issue with getting portainer and cockpit running. Those ports are shown listening when I ran the above command.

Same problem here. After enforcing some debugging in /etc/init.d/unifi I get a lot of Java-Output and this line:

[. ] main ERROR Unable to create file logs/server.log java.io.IOException: Could not create directory /logs

Any ideas anybody? The logging paths semm to be set up correctly. Why is it trying to create that directory? /var/log/unifi is present and writable by the user in question. Some more debugging data:

OS: Ubuntu Server 20.04.3 LTS (focal)

This comment has been minimized.

Copy link Quote reply

ficematt commented Oct 3, 2021

I got the Unifi application running. I uninstalled the Unifi application. Then I ran the script found HERE.

Be sure you are running the latest script. You have to scroll down and copy the link from further down in the post. Below is the command you need to run. Refer to the post linked above for the most current information.

apt-get update; apt-get install ca-certificates wget -y
wget https://get.glennr.nl/unifi/install/unifi-6.4.54.sh
bash unifi-6.4.54.sh

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Оцените статью