Date: Sat, 29 Nov 2014 17:02:15 -0800 From: David Wolfskill <david@catwhisker.org> To: net@freebsd.org Subject: How do I use net-mgmt/unifi{2,3,4} for Ubiquity UAP-PRO? Message-ID: <20141130010215.GP1228@albert.catwhisker.org>
next in thread | raw e-mail | index | archive | help
--uMNE0C2is0k/ADx7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Reply-To set, as I'm not subscribed to -net@ -- dhw] I have just received a new Ubiquity UAP-PRO access point. I would like to be able to use it. I first tried <http://downloads.ubnt.com/unifi>; that only has links for MacOS and MS Windows. I ran nmap, and found that 22/tcp seems to be open, but I was unable to guess a login & password combination. I wrote to <support@ubnt.com> and received a pointer to <https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-3-2-7-is-released/b= a-p/1085473>, which includes: | Download |=20 | UniFi Controller for Mac | UniFi Controller for Windows | UniFi.unix.zip (UniFi Zipped Package is also provide for DIYers. See | readme.txt for details.) The seeme dto require databases/mongodb, so I built & installed that (bringing in archivers/snappy and lang/v8 in the process). That done, I fixed the mongod symlink, then tried java -jar lib/ace.jar start That seemed to "do stuff" for a bit (quietly), then settle down to doing gettimeofday() calls (according to ktrace output). I failed to find this useful. A bit of poking around on the Net made me aware of net-mgmt/unifi{2,3,4}, so I looked at the pkg-descr files, and decided to try one of them. Given that this is a new device, I figured I'd try unifi4. It installed... but now what? It doesn't seem to have installed any executables. And (semi-)blindly hacking yields: g1-253(10.1-S)[22] cd /usr/local/share/java/unifi g1-253(10.1-S)[23] ls -lT bin/mongod=20 lrwxr-xr-x 1 root wheel 21 Nov 29 12:45:57 2014 bin/mongod -> /usr/local= /bin/mongod g1-253(10.1-S)[24] java -jar lib/ace.jar start log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: logs/server.log (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:142) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender= =2Ejava:207) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:= 165) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.j= ava:307) at org.apache.log4j.config.PropertySetter.setProperties(PropertySet= ter.java:172) at org.apache.log4j.config.PropertySetter.setProperties(PropertySet= ter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConf= igurator.java:842) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConf= igurator.java:768) at org.apache.log4j.PropertyConfigurator.configureRootCategory(Prop= ertyConfigurator.java:648) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfig= urator.java:514) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfig= urator.java:580) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(Opti= onConverter.java:526) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at com.ubnt.oOOO.D.OO0O.o00000(Unknown Source) at com.ubnt.oOOO.D.OO0O.<clinit>(Unknown Source) at com.ubnt.ace.Launcher.<clinit>(Unknown Source) Exception in thread "launcher" org.springframework.beans.factory.BeanCreati= onException: Error creating bean with name 'int' defined in class com.ubnt.= oOOO.new: Instantiation of bean failed; nested exception is org.springframe= work.beans.factory.BeanDefinitionStoreException: Factory method [public com= =2Eubnt.oOOO.D.D com.ubnt.oOOO.new.int()] threw exception; nested exception= is org.springframework.beans.factory.BeanCreationException: Error creating= bean with name 'class' defined in class com.ubnt.oOOO.new: Invocation of i= nit method failed; nested exception is java.io.FileNotFoundException: /comm= on/local/share/java/unifi/data/db/version (No such file or directory) at org.springframework.beans.factory.support.ConstructorResolver.in= stantiateUsingFactoryMethod(ConstructorResolver.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFacto= ry.java:1055) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.= getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRe= gistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.do= GetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.ge= tBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFac= tory.preInstantiateSingletons(DefaultListableBeanFactory.java:628) at org.springframework.context.support.AbstractApplicationContext.f= inishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.r= efresh(AbstractApplicationContext.java:479) at org.springframework.context.annotation.AnnotationConfigApplicati= onContext.<init>(AnnotationConfigApplicationContext.java:73) at com.ubnt.oOOO.ooOO.?00000(Unknown Source) at com.ubnt.ace.Launcher.main(Unknown Source) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: = Factory method [public com.ubnt.oOOO.D.D com.ubnt.oOOO.new.int()] threw exc= eption; nested exception is org.springframework.beans.factory.BeanCreationE= xception: Error creating bean with name 'class' defined in class com.ubnt.o= OOO.new: Invocation of init method failed; nested exception is java.io.File= NotFoundException: /common/local/share/java/unifi/data/db/version (No such = file or directory) at org.springframework.beans.factory.support.SimpleInstantiationStr= ategy.instantiate(SimpleInstantiationStrategy.java:181) at org.springframework.beans.factory.support.ConstructorResolver.in= stantiateUsingFactoryMethod(ConstructorResolver.java:586) ... 14 more Caused by: org.springframework.beans.factory.BeanCreationException: Error c= reating bean with name 'class' defined in class com.ubnt.oOOO.new: Invocati= on of init method failed; nested exception is java.io.FileNotFoundException= : /common/local/share/java/unifi/data/db/version (No such file or directory) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.= getObject(AbstractBeanFactory.java:296) at org.springframework.beans.factory.support.DefaultSingletonBeanRe= gistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.do= GetBean(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.AbstractBeanFactory.ge= tBean(AbstractBeanFactory.java:194) at org.springframework.context.annotation.ConfigurationClassEnhance= r$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:305) at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1.class(<genera= ted>) at com.ubnt.oOOO.new.int(Unknown Source) at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1.CGLIB$int$0(<= generated>) at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1$$FastClassByS= pringCGLIB$$51338a2f.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodPr= oxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhance= r$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:293) at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1.int(<generate= d>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor= Impl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.support.SimpleInstantiationStr= ategy.instantiate(SimpleInstantiationStrategy.java:160) ... 15 more Caused by: java.io.FileNotFoundException: /common/local/share/java/unifi/da= ta/db/version (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream.java:171) at java.io.FileWriter.<init>(FileWriter.java:90) at com.ubnt.oOOO.D.G.afterPropertiesSet(Unknown Source) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571) at org.springframework.beans.factory.support.AbstractAutowireCapabl= eBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509) ... 34 more g1-253(10.1-S)[25] uname -a FreeBSD g1-253.catwhisker.org 10.1-STABLE FreeBSD 10.1-STABLE #1402 r27523= 6M/275239:1001503: Sat Nov 29 04:53:06 PST 2014 root@g1-253.catwhisker.= org:/common/S1/obj/usr/src/sys/CANARY i386 g1-253(10.1-S)[26]=20 That doesn't seem particularly useful, either. So ... now what??!? Thanks.... Peace, david --=20 David H. Wolfskill david@catwhisker.org Actions have consequences ... as do inactions. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --uMNE0C2is0k/ADx7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUemyXXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7vIAP/As8Z4NgmV0UtQqW9FrlstXz VOfY9F1IjQIqxKL9821oNYTUit9fwj50zkzVAgk6YMpDwVvmZI7SwWrxfklzevJ6 qB6MdwDH4KzAMX87tVNSAlTPn/iyqhEDP7uTp3Jrsi3DOFV4wgoLflDzJy6N3XM9 SmbpLsKtIMjCe7s3y8PL9HWLlMEdFaxl1HJQplX5q3596UAtoqvKJVzrFN53U1ii 6yDVgBNzzf+1ntqCtjE8ylzl6B2tipW673/dBJXBrpG939uh/hQSJzEF7bFwmM/T eSqFtlMxmykXE9WXqjOdTs3NpQX0YpjzoEbClV8w06+b528Sfa6/92PQhKzXXcDm kbQe+d6xjEQNMYg486Ao0/4GyxUE8LT+LkVrQ4AWT37rzvIWyC64kwxXzowV6RE9 Rwu/W4MuNxKfLlLORKM3H58aVrBbHSsHJnT33Fa7AC9dPwNte4J1N/GWSb0F4Bw3 QUeKbOpQ1RrVgkudIzKBoF/EZMDXwZ4VGS2K0rJFLhUbzbzk0Wpn4gBN+UOkiuul wG6o60ZncYgum/XNMj9wzBVcTGGpLwWxCP5NhJ6lyYxGGJ22r8QQKOm6AV3JEGgr NfHgkRQ+vdRr+pdQGKmjpU6d2gcJ6bxbpvCsVIkeVlM1jm14GVWcgIsHKMSXtxAi PTg9R/2hQRO6cInmhZTd =UOrG -----END PGP SIGNATURE----- --uMNE0C2is0k/ADx7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141130010215.GP1228>