Closed david-pivonka closed 4 years ago
I've never seen that failure mode before. Try docker-compose down
and then docker-compose up -d
.
Worst case scenario you can remove all of your volumes with (BIG FAT WARNING) docker-compose down -v
and set the controller up from a unifi backup.
Tried everything. I even created whole new docker container for it and nothing. Still same error:
Attaching to unifi-new
unifi-new | Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
unifi-new | at com.ubnt.ace.class.super(Unknown Source)
unifi-new | at com.ubnt.service.ooOO.Q.<clinit>(Unknown Source)
unifi-new | at com.ubnt.ace.Launcher.<clinit>(Unknown Source)
unifi-new | Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
unifi-new | at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
unifi-new | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
unifi-new | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
unifi-new | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
unifi-new | ... 3 more
unifi-new | Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
unifi-new | at com.ubnt.ace.class.super(Unknown Source)
unifi-new | at com.ubnt.service.ooOO.Q.<clinit>(Unknown Source)
unifi-new | at com.ubnt.ace.Launcher.<clinit>(Unknown Source)
unifi-new | Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils
unifi-new | at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
unifi-new | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
unifi-new | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
unifi-new | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
unifi-new | ... 3 more```
Can it be system Java related?
did
docker rmi $(docker volume ls |grep 'unifi') &&
docker rmi $(docker image ls |grep 'unifi') &&
docker rmi $(docker container ls |grep 'unifi')
and installed it again and now it works.
That's really strange. Thanks for sharing your resolution in case anyone else runs into this!
Also let me know if it happens again on the next upgrade @iam-Zedgar.
I tried upgrading to latest version using:
and this happened: https://hastebin.com/vonahuxoxa.terminal