Hi 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. Running chown -R unifi:unifi /usr/lib/unifi allowed the service to restart successfully. Unifi: WARN Unable to load properties from '/usr/lib/unifi/data/system.properties' - /usr/lib/unifi/data/system.properties (No such file or directory)Ĭhecking the permissions on /usr/lib/unifi showed that everything was owned root:root, while all processes were running under user unifi.
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: Mar 26 14:47:03 unifi systemd: Started Do you also have : ERROR Error processing element InMemoryAppender (): CLASS_NOT_FOUND Mar 26 14:46:46 unifi unifi: 14:46:46,796 main ERROR Unable to locate appender "InMemoryAppender" for logger config "root" Mar 26 14:46:46 unifi unifi: 14:46:46,504 main ERROR Error processing element InMemoryAppender (): CLASS_NOT_FOUND Mar 26 14:46:45 unifi unifi.init: * Starting Ubiquiti UniFi Controller unifi Mar 26 14:46:45 unifi systemd: Starting unifi. └─1089 bin/mongod -dbpath /usr/lib/unifi/data/db -port 27117 -unixSocketPrefix /usr/lib/unifi/run -logRotate reopen -logappend -logpath /usr/lib/unifi/logs/mongod.log -pidfilepath /usr/> ├─1039 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dfile.encoding=UTF-8 =true =true =false -Xmx1024M -XX:+ExitOnOutOfMemoryError>
├─ 883 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi.pid -procname unifi -outfile > ├─ 882 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi.pid -procname unifi -outfile > ├─ 881 unifi -cwd /usr/lib/unifi -home /usr/lib/jvm/java-8-openjdk-amd64 -cp /usr/share/java/commons-daemon.jar:/usr/lib/unifi/lib/ace.jar -pidfile /var/run/unifi.pid -procname unifi -outfile > Process: 694 ExecStart=/usr/lib/unifi/bin/unifi.init start (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Fri 14:47:03 UTC 11min ago Sudo systemctl status -no-pager rvice rvice
# I personally use stop and start instead of restart, just a personal preference ( Just to make sure the service is completely stopped ) Sudo java -jar /usr/lib/unifi/lib/ace.jar discover Sudo apt install -yes openjdk-8-jre-headless unifi Sudo apt install -yes apt-transport-https Įcho 'deb stable ubiquiti' | sudo tee /etc/apt//100-ubnt-unifi.list
So here is my setup process: sudo apt update -yes Otherwise all the other steps work as posted. Otherwise it errors out saying "file or folder not found" in the log for the Unifi Service ( To get the system.properties file to generate ) In order to get the service to even start up # echo 'deb xenial/mongodb-org/3.4 multiverse' | sudo tee /etc/apt//mongodb-org-3.4.list # sudo apt-key adv -keyserver -recv 06E85760C0A52C50 # echo 'deb stable ubiquiti' | sudo tee /etc/apt//100-ubnt-unifi.list # sudo apt install -yes ca-certificates apt-transport-https Which is available from the Ubuntu 20.04 main repository. # unifi has since been updated to work with mongodb-server 3.6. # Previous install steps from when unifi still required mongodb-server <= 3.4. Sudo systemctl status -no-pager -full rvice rvice Sudo apt install -yes apt-transport-httpsĮcho 'deb stable ubiquiti ' | sudo tee /etc/apt//100-ubnt-unifi.list # Thanks to for posting the updated install steps. # As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020. # Install Ubiquiti Unifi Controller on Ubuntu 20.04.