unofficial-unifi / unifi-pfsense

A script that installs the UniFi Controller software on pfSense and other FreeBSD systems
BSD 2-Clause "Simplified" License
755 stars 245 forks source link

Exception in thread "main" #240

Closed Lucero7919 closed 2 years ago

Lucero7919 commented 3 years ago

New install of Unifi, when the service tries to start, throws an error:

WARN Unable to load properties from '/usr/local/UniFi/data/system.properties' - /usr/local/UniFi/data/system.properties (No such file or directory)

Exception in thread "main" java.lang.NoClassDefFoundError: org/xerial/snappy/OSInfo at com.ubnt.service.system.S.(Unknown Source) at com.ubnt.ace.Launcher.(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.xerial.snappy.OSInfo at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ... 2 more

tong2x commented 3 years ago

clean install? without previous version?

java trouble shooting

Java compatibility on FreeBSD This script may create a conflict that breaks Java on a FreeBSD upgrade. To resolve this conflict do the following:

pkg unlock -yq javavmwrapper pkg unlock -yq java-zoneinfo pkg unlock -yq openjdk8 pkg unlock -yq snappyjava pkg unlock -yq snappy pkg unlock -yq mongodb36 pkg remove -y javavmwrapper pkg remove -y java-zoneinfo

tong2x commented 2 years ago

no more updates, closing