Unifi controller upgrade linux

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

Источник

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! 🙂

Читайте также:  Контакты windows live что это

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:

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.

Источник

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 или установка новой версии.

Источник

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.

Читайте также:  Лучший pdf редактор для windows

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.

Читайте также:  Как посмотреть все установленные обновления windows 10

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.

Источник

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