- Установка UniFi v4.7.6 Controller на Ubuntu Server 14.04 LTS
- Ubiquiti unifi контроллер linux
- Ajax Systems
- Alfa Network
- Edge-Core
- Edimax
- Escene
- GAOKE
- HPE Aruba Networks
- Info-Sys
- ITElite
- Keenetic
- LigoWave
- Mercusys
- Точки доступа
- Контроллеры для точек доступа
- Wi-Fi антенны
- Материнские платы
- Радиокарты
- Беспроводные USB адаптеры
- Усилитель сигнала Wi-Fi (репитер)
- GPS-трекеры
- Блоки питания, РОЕ, инжекторы
- Грозозащита
- Кабель UTP, FTP, коннекторы
- Патч-корды
- Патч-Панели
- Сетевые компоненты и инструмент
- Корпуса
- Крепежная фурнитура
- Переходники и кабели USB, HDMI, DVI, SATA, 3RCA
- Пигтейлы
- Удлинители и сетевые фильтры
- SFP, SFP+ — модули/патч-корды/DAC-кабель
- Неуправляемые коммутаторы
- Управляемые коммутаторы
- IP телефоны
- VoIP шлюзы
- IP-ATC
- Аксессуары для VoIP-оборудования
- IP-камеры
- Регистраторы
- Аксессуары для видеонаблюдения
- Видеодомофоны
- Аналоговые видеокамеры
- Контроллеры для умного дома
- Датчики
- Сетевые карты и адаптеры
- Принт-серверы
- Сетевые накопители (NAS, DAS)
- USB-концентраторы
- Универсальные внешние аккумуляторы
- Установка UniFi Controller на Ubuntu
- How to install the UniFi Controller on Ubuntu
- davecoutts / unifi_ubuntu_2004.sh
- This comment has been minimized.
- nugget commented May 9, 2020
- This comment has been minimized.
- goldengit commented May 31, 2020
- This comment has been minimized.
- chucklebrother commented Jun 15, 2020 •
- This comment has been minimized.
- jbloz7 commented Jun 19, 2020
- This comment has been minimized.
- ThomasLobker commented Jun 19, 2020
- This comment has been minimized.
- Flurkmark commented Aug 15, 2020
- This comment has been minimized.
- tmuncks commented Aug 22, 2020
- This comment has been minimized.
- davecoutts commented Aug 22, 2020
- This comment has been minimized.
- Smugger21 commented Sep 13, 2020 •
- This comment has been minimized.
- firecat53 commented Sep 18, 2020
- This comment has been minimized.
- tonyappleton commented Oct 30, 2020
- This comment has been minimized.
- Zilog-80 commented Dec 7, 2020
- This comment has been minimized.
- mephibosheth commented Dec 21, 2020
- This comment has been minimized.
- adrianoapmartins commented Jan 13, 2021
- This comment has been minimized.
- ARolek commented Feb 6, 2021 •
- This comment has been minimized.
- rnicolaev commented Feb 13, 2021
- This comment has been minimized.
- davecoutts commented Feb 13, 2021
- This comment has been minimized.
- Dudleydogg commented Mar 7, 2021
- This comment has been minimized.
- kkarhan commented Mar 8, 2021
- This comment has been minimized.
- Maciej-Majcherek commented Mar 26, 2021
- This comment has been minimized.
- davecoutts commented Mar 26, 2021
- This comment has been minimized.
- Maciej-Majcherek commented Mar 26, 2021
- This comment has been minimized.
- davecoutts commented Mar 26, 2021
- This comment has been minimized.
- Bubba-Kastorsky commented Apr 9, 2021
- This comment has been minimized.
- crayz9000 commented Apr 21, 2021
- This comment has been minimized.
- earenasr commented Apr 21, 2021
- This comment has been minimized.
- crayz9000 commented Apr 21, 2021
- This comment has been minimized.
- earenasr commented Apr 21, 2021
- This comment has been minimized.
- davecoutts commented Apr 21, 2021
- This comment has been minimized.
- ganter799 commented Jun 29, 2021
- This comment has been minimized.
- AHrubik commented Jul 16, 2021
- This comment has been minimized.
- warybyte commented Jul 23, 2021
- This comment has been minimized.
- dbosk commented Aug 10, 2021
- This comment has been minimized.
- larrydevops commented Aug 15, 2021
- This comment has been minimized.
- Thijxx commented Aug 26, 2021 •
- This comment has been minimized.
- emulated24 commented Aug 27, 2021
- This comment has been minimized.
- Thijxx commented Aug 30, 2021
- This comment has been minimized.
- emulated24 commented Aug 31, 2021
- This comment has been minimized.
- RocketLR commented Sep 13, 2021
- This comment has been minimized.
- ficematt commented Oct 2, 2021 •
- This comment has been minimized.
- Starkstromkonsument commented Oct 2, 2021
- This comment has been minimized.
- ficematt commented Oct 3, 2021
Установка UniFi v4.7.6 Controller на Ubuntu Server 14.04 LTS
Программный контроллер управления точками доступа UniFi может быть развёрнут как под управлением OC Microsoft Windows так и под управлением OC Linux. В этой заметке будет рассмотрен пример установки UniFi v4.7.6 Controller на свежеустановленную ОС Ubuntu Server 14.04 LTS 64-bit. Актуальная на данный момент версия контроллера 4.7.6 является hotfix release, поэтому замечания об установке в среде Linux можно будет найти в предудущем релизе — UniFi Updates Blog — UniFi 4.7.5 is released .
Для начала добавим на нашем Ubuntu-сервере 2 дополнительных apt-репозитория в source list:
Затем добавим PGP ключи для доверия пакетам (первый для unifi, второй для mongodb):
Если наш сервер подключен к Интернет через прокси, то возможно получение ошибки таймаута соединения с сервером ключей. В таком случае для начала проверим есть ли в конфиге APT информация о прокси:
Должна присутсвовать запись типа:
Но этой настройки может оказаться недостаточно. Создадим переменные окружения для текущего пользователя, в которые запишем параметры прокси:
Проверим создались ли переменные:
Повторим попытку добавления ключей с использованием переменных окружения текущего пользователя (в команду sudo добавляем ключик -E):
Теперь «со спокойной душой» обновляем APT и устанавливаем контроллер с зависимостями:
будет предложено установить ряд дополнительных пакетов, соглашаемся:
После установки перезагружаем сервер и убеждаемся в том, что веб-интерфейс контроллера доступен нам через URL вида https://ip:8443
Как видим, нам доступен мастер первоначальной настройки UniFi Controller, поэтому задача установки может считаться выполненной.
Источник
Ubiquiti unifi контроллер linux
Ajax Systems
Alfa Network
Edge-Core
Edimax
Escene
GAOKE
HPE Aruba Networks
Info-Sys
ITElite
Keenetic
LigoWave
Mercusys
Точки доступа
Контроллеры для точек доступа
Wi-Fi антенны
Материнские платы
Радиокарты
Беспроводные USB адаптеры
Усилитель сигнала Wi-Fi (репитер)
GPS-трекеры
Блоки питания, РОЕ, инжекторы
Грозозащита
Кабель UTP, FTP, коннекторы
Патч-корды
Патч-Панели
Сетевые компоненты и инструмент
Корпуса
Крепежная фурнитура
Переходники и кабели USB, HDMI, DVI, SATA, 3RCA
Пигтейлы
Удлинители и сетевые фильтры
SFP, SFP+ — модули/патч-корды/DAC-кабель
Неуправляемые коммутаторы
Управляемые коммутаторы
IP телефоны
VoIP шлюзы
IP-ATC
Аксессуары для VoIP-оборудования
IP-камеры
Регистраторы
Аксессуары для видеонаблюдения
Видеодомофоны
Аналоговые видеокамеры
Контроллеры для умного дома
Датчики
Сетевые карты и адаптеры
Принт-серверы
Сетевые накопители (NAS, DAS)
USB-концентраторы
Универсальные внешние аккумуляторы
Очень хорошо для офисной или небольшой корпоративной сети,
но мало для провайдера.
На тесте было три UniFi AP, под сервер использовался:
- Intel(R) Pentium(R) 4 CPU 3.06GHz HT, RAM 2Ggb, HDD 160 Ggb.
- OS: Ubuntu Studio 10.10 x86 (рекомендую не ставить х64, так как есть проблемы с установкой).
Инструкция по установке:
1. Устанавливаем из пакетов mongoDB и dhcp3-server, так как он нужен для сервера управления. Настроить dhcp3-server очень просто. Выкладываю свой конфиг:
subnet 192.168.1.0 netmask 255.255.255.0 <
# Прописываем диапазон выдаваемых адресов от и до:
range 192.168.1.10 192.168.1.30;
# И шлюз по умолчанию:
option routers 192.168.1.1;
# Привязываем точки доступа каждую к своему адресу:
hardware ethernet 00:27:22:1e:11:11;
hardware ethernet 00:27:22:1e:11:12;
hardware ethernet 00:27:22:1e:11:13;
Следующий файл конфигурации:
# Прописываем интерфейс, который смотрит у нас на точки доступа:
# service dhcp3-server start (должен написать [OK])
Dhcp3-server запущен, можно приступать к установке UniFi controller.
2. Правим /etc/apt/sources.list . Добавляем репозиторий:
deb https://www.ubnt.com/downloads/unifi/distros/deb/maverick maverick ubiquiti
3. Добавляем в терминале через sudo GPG key:
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv C0A52C50
4. Устанавливаем пакет UniFi:
apt-get install unifi
После установки, рекомендую выключить репозиторий, так как могут возникнуть проблемы с установкой пакетов. Если ошибок не выскочило, то система установлена и уже даже работает.
5. После установки заходим на https://localhost:8080/, либо на https://IP-адрес:8080/, подтверждаем сертификат, и входим в систему через Ubiquiti UniFi Wizard. Думаю, для Вас не составит труда разобраться, что и как.
Необходимо ещё настроить интерфейс, в который включен AP:
# ping 192.168.1.20, точка должна ответить.
6. Подключаем, если ещё не подключили, в систему UniFi AP. Если они не были включены, или были, но визард контроллера их не нашёл, необходимо зажать на 5 секунд кнопку сброса. После определения, система прошивает AP в прошивку версии контроллера, поэтому не нужно бояться, что точка около 5 мин не идентифицируется, и ГЛАВНОЕ не выключайте её.
Настройка утсройства:
Заходим в систему Settings → Wireless Network → Create.
Прописываем SSID, например Office, выставляем шифрование и ключ. Режим гостевой не включал за ненадобностью.
А теперь очень важный момент — настройка Vlan. После установки Vlan, например 111, на сетевом интерфейсе его необходимо тоже добавить. По умолчанию пакет не установлен в системе, так что выберите пакет vlan в менеджере пакетов либо из командной строки:
После успешной установки:
Про добавление в автозагрузку настройки Vlan-ов читайте в google или на форумах.
Создаём вторую сеть, так же как и первую:
заходим в систему Settings → Wireless Network → Create;
прописываем SSID, например Buhgalteriya, выставляем шифрование и ключ.
Теперь мы имеем 2 SSID, 2 Vlan. Добавить можно ещё 2, по своему усмотрению.
Произведём необходимые настройки DHCP для автоматического подключения абонентов. Даём офисным работникам ключ сети для SSID Office и бухгалтерии ключ сети, также в настройках контроллера можно выставить приоритет для каждой подсети. Предположим, что бухгалтеру важнее поработать с Банк-Клиентом, чем офисному работнику покачать фильмы, поэтому отдаём приоритет в HIGH в настройках UniFi контроллера, там где мы прописывали SSID и Vlan.
Проверено и работает, абонент который подключен к SSID Office, не увидит никаким образом пользователя из бухгалтерии и наоборот, так как у каждого свой Vlan на уровне контроллера.
В конце хотелось бы добавить преимущества Ubiquiti UniFi:
эргономичность и привлекательный дизайн;
поддержка Multi-SSID (наконец-то дождались).
Контроллеру необходимо где-то быть установленным (тут достаточно и БУ компьютера). Если в офисе есть сервер, то использовать можно его, но всё ПО написано на JAVA, что не есть лёгким в обработке.
Для провайдеров эти устройства подойдут разве что для покрытия помещения, но в прошивке AP, которая будет работать без контроллера и его функционала.
Вывод. Если в дальнейшем в настройках контроллера появится возможность группировать AP по зонам с добавлением на группы Vlan-ов, а также появятся модели AP уличного типа, то Ubiquiti Networks выйдет на рынок с решением для покрытия городских сетей, что при нынешних ценах на оборудование других брендов будет очень выгодно небольшим провайдерам, имеющим лицензию на частоту 2,4 Ггц.
И маленькое пожелание: хотелось бы увидеть аппаратное решение контроллера данного производителя и расширение функционала.
Валерий Бурец специально для ASP24.
Источник
Установка UniFi Controller на Ubuntu
Для управления Wi-Fi точками доступа требуется установить на сервер UniFi Controller. Контроллер помогает конфигурировать точки доступа, настраивать бесшовный роуминг и обновлять прошивки точек. Для дома или небольшого офиса — то что надо. Дёшево и сердито. Ubuntu Server может быть виртуальным.
Когда я впервые писал эту заметку, то Ubuntu Server был 14-й, могу добавить, что инсталляция на Ubuntu Server 16 ничем не отличается.
Добавляем на сервер два репозитория:
echo ‘deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti’ | sudo tee -a /etc/apt/sources.list
echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’ | sudo tee -a /etc/apt/sources.list
Добавляем ключи к репозиториям:
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv C0A52C50
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv 7F0CEB10
Обновляем кеш и ставим контроллер:
sudo apt-get update
sudo apt-get install unifi
После установки перезагружаем сервер и убеждаемся в том, что веб-интерфейс контроллера доступен нам через URL вида https://ip:8443
Дальнейшее конфигурирование осуществляется через веб-интерфейс. Если контроллер и точки доступа в одной подсети, то они увидят друг друга.
Если вам понравилась статья, то ставьте 👍🏻 каналу.
Пишите комментарии, задавайте вопросы, подписывайтесь.
Источник
How to install the UniFi Controller on Ubuntu
POST UP TO DATE 19/08/2015
Ubiquiti UniFi is properly supported on Ubuntu and Debian, breaking away from being Windows only. Being on Linux also reduces a lot of overhead that Windows typically laid on. The installation instructions provided by Ubiquiti aren’t the best so here’s my take on it.
I will be using a freshly installed Ubuntu 14.04.1 LTS. I previously had issues on installing to a dirty Ubuntu image I’ve been using as a do-it-all template. There is a section below where I was able to work out those issues though if you are also facing them.
Add the repository and GPG keys
To install the controller you will need to add the Ubiquiti repository to your apt sources list. This one liner does that for you:
Next you will need to add the GNU Privacy Guard (GPG) keys for UniFi and MongoDB (used to store your users and WiFi statistics within the UniFi controller). The GPG keys verifies the genuinity of who you will be downloading from during the installation. Here’s another one liner to add both (Ubiquiti first then MongoDB):
Now perform update to ensure Ubuntu recognises the repository:
Finally the big moment — installing the UniFi controller.
It will install a bunch of dependencies with it including Java 6, MongoDB, Tomcat and a Java SSL certificate tool.
As of August, the unifi-beta and unifi-rapid packages are obsolete.
Access the web interface
If everything went smoothly you should be able to access the controller through your web browser: https://unifi-server-here:8443
Depending on the version installed, you will be taken to the setup wizard. You’re done!
Determine the problem
A good start would be to go through the system logs and google the issue:
Just like any other service in Ubuntu, UniFi can be stop, started and restarted.
Java Home not found
This issue can be tricky. UniFi cannot access Java to run Tomcat (its web server). To check if you have Java, simply run:
If nothing appears you do not have Java. The latest version of UniFi supports Java 8. To install Java, follow this guide from Digital Ocean.
If you do have Java (or installed it now), you will have to edit the UniFi startup script to point out the location of Java. Open the startup script:
Change the ‘JAVA_HOME’ location to your new Java location:
Keystore file missing / java.io.FileNotFoundException
When going through the log file you may find the error:
This error means that the ‘keystore’ file is missing, resulting in Tomcat not being able to start up. The keystore file is responsible for encrypting your connection (HTTPS/SSL).
Generate a new keystore file, answering blank to every question including password:
Restart UniFi when successful and try accessing the web interface again.
Источник
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.
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.
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.
Источник