How do I use net-mgmt/unifi{2,3,4} for Ubiquity UAP-PRO?
David Wolfskill
david at catwhisker.org
Sun Nov 30 01:02:24 UTC 2014
[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 at ubnt.com> and received a pointer to
<https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-3-2-7-is-released/ba-p/1085473>,
which includes:
| Download
|
| 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
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.java:207)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.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.BeanCreationException: Error creating bean with name 'int' defined in class com.ubnt.oOOO.new: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public com.ubnt.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 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.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1055)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:951)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<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 exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'class' defined in class com.ubnt.oOOO.new: Invocation 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.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:181)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586)
... 14 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'class' defined in class com.ubnt.oOOO.new: Invocation 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.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:305)
at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1.class(<generated>)
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$$FastClassBySpringCGLIB$$51338a2f.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:293)
at com.ubnt.oOOO.new$$EnhancerBySpringCGLIB$$1ca218e1.int(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160)
... 15 more
Caused by: java.io.FileNotFoundException: /common/local/share/java/unifi/data/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.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.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 r275236M/275239:1001503: Sat Nov 29 04:53:06 PST 2014 root at g1-253.catwhisker.org:/common/S1/obj/usr/src/sys/CANARY i386
g1-253(10.1-S)[26]
That doesn't seem particularly useful, either.
So ... now what??!?
Thanks....
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Actions have consequences ... as do inactions.
See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20141129/04292673/attachment.sig>
More information about the freebsd-net
mailing list