I need to automatically start it and then connect to it.
I manually started it and tried to connect to it with a web browser but I cant’t address is
https://your.ip.address.here:8443/
Error I get is
Firefox can’t establish a connection to the server at 192.168.7.111:8443.
I thought it might be the firewall so I tried to turn it off. When I went to YAST to managed it it said it need to install firewalld I let it install.
Now I can’t manage the firewall from YAST I get no access to it. Error indicators it’s not running or maybe it is but I’m locked out.
So my dilemma is how can I make sure my firewall is turned off, automatically start Ubiquity Controller, and then connect to the GUI with my browser?
All the stuff I see on the Internet has all the lib files located in a different directory and the path is totally different. The files are in /opt/unifi not /usr/lib/whatever.
I don’t need the firewall. My network is behind a firewall already.
Well, that confirms no active process listening on that port. The following can be used to find out which ports are listening for TCP connections from the network:
BTW, I had a quick look at the repo you pulled from - that’s a very old version of Unifi Controller. I note that Ubiquiti currently offer version 5.7.23 (but only a .deb package unfortunately). You could probably build an RPM package easily enough though.
Thanks.
Looks like I’ll continue to run this on a Mac.
Was hoping I could migrate it to my Linux box.
It’s going to be more pain than I’m up for right now.
**flamebait:/home/flamebait/Downloads/Unifi RPM #** zypper in unifi-5.7.23-1.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: nothing provides libdl.so.2(GLIBC_2.17)(64bit) needed by unifi-5.7.23-1.1.x86_64
Solution 1: do not install unifi-5.7.23-1.1.x86_64
Solution 2: break unifi-5.7.23-1.1.x86_64 by ignoring some of its dependencies
**Choose from above solutions by number or cancel [1/2/c] (c): **c
**flamebait:/home/flamebait/Downloads/Unifi RPM #** zypper in libdl.so.2
Loading repository data...
Reading installed packages...
'libdl.so.2' not found in package names. Trying capabilities.
'glibc-32bit' providing 'libdl.so.2' is already installed.
Resolving package dependencies...
Nothing to do.
**flamebait:/home/flamebait/Downloads/Unifi RPM #**
Problem: nothing provides libdl.so.2(GLIBC_2.17)(64bit) needed by
unifi-5.7.23-1.1.x86_64 Solution 1: do not install
unifi-5.7.23-1.1.x86_64 Solution 2: break unifi-5.7.23-1.1.x86_64 by
ignoring some of its dependencies
*Choose from above solutions by number or cancel [1/2/c] (c): *c flamebait:/home/flamebait/Downloads/Unifi RPM # zypper in libdl.so.2
Loading repository data…
Reading installed packages…
‘libdl.so.2’ not found in package names. Trying capabilities.
‘glibc-32bit’ providing ‘libdl.so.2’ is already installed.
Resolving package dependencies…
Nothing to do. flamebait:/home/flamebait/Downloads/Unifi RPM #
Hi
I guess the source provider doesn’t have openSUSE Tumbleweed on their
radar… the binary blobs need to be built against a later glibc… not
a lot you can do with closed source stuff…
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-23-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
glibc is installed and it’s the latest one.
The blob requires an older one 2.17
glibc-2.27-5.1.x86_64 is installed.
weird since is’t basicly a .jar file.
I’m good. I’m going to find another way to skin this cat hopefully.
Need to find a way to build a rpm that the learning curve is not to steep on.
I did a manual start since it didn’t appear to be running.
-- Logs begin at Sun 2017-01-22 20:19:49 PST, end at Thu 2018-06-07 21:00:56 PDT. --
Jun 07 11:36:26 flamebait systemd[1]: Started UniFi controller service.
Jun 07 11:48:08 flamebait systemd[1]: Stopping UniFi controller service...
Jun 07 11:48:23 flamebait systemd[1]: Stopped UniFi controller service.
**-- Reboot --**
Jun 07 12:30:46 flamebait systemd[1]: Started UniFi controller service.
Jun 07 16:25:56 flamebait systemd[1]: Stopping UniFi controller service...
Jun 07 16:25:56 flamebait systemd[1]: Stopped UniFi controller service.
Jun 07 19:46:12 flamebait systemd[1]: Starting unifi...
Jun 07 19:46:12 flamebait import-cert[17774]: Missing key "/etc/ssl/servercerts/serverkey.pem"
Jun 07 19:46:12 flamebait import-cert[17774]: Missing certificate "/etc/ssl/servercerts/servercert.pem"
Jun 07 19:46:12 flamebait import-cert[17774]: Missing CA certificate "/etc/pki/trust/anchors/YaST-CA.pem"
Jun 07 19:46:12 flamebait import-cert[17774]: pkcs12: Cannot open input file /etc/ssl/servercerts/servercert.pem, No such file or directory
Jun 07 19:46:12 flamebait import-cert[17774]: pkcs12: Use -help for summary.
Jun 07 19:46:13 flamebait import-cert[17774]: Importing keystore /var/tmp/unifi.p12 to /usr/lib/unifi/data/keystore...
Jun 07 19:46:13 flamebait import-cert[17774]: keytool error: java.io.FileNotFoundException: /var/tmp/unifi.p12 (No such file or directory)
Jun 07 19:46:13 flamebait unifi.init[17794]: Starting Ubiquiti UniFi Controller/usr/lib/unifi/bin/unifi.init: line 90: start-stop-daemon: command not found
Jun 07 19:46:13 flamebait unifi.init[17794]: ..done
Jun 07 19:46:13 flamebait systemd[1]: Started unifi.
Jun 07 20:49:12 flamebait systemd[1]: Stopping unifi...
Jun 07 20:49:15 flamebait systemd[1]: Stopped unifi.
**-- Reboot --**
Jun 07 20:59:45 flamebait systemd[1]: Starting unifi...
Jun 07 20:59:45 flamebait import-cert[4326]: Missing key "/etc/ssl/servercerts/serverkey.pem"
Jun 07 20:59:45 flamebait import-cert[4326]: Missing certificate "/etc/ssl/servercerts/servercert.pem"
Jun 07 20:59:45 flamebait import-cert[4326]: Missing CA certificate "/etc/pki/trust/anchors/YaST-CA.pem"
Jun 07 20:59:45 flamebait unifi.init[4328]: Starting Ubiquiti UniFi Controller/usr/lib/unifi/bin/unifi.init: line 90: start-stop-daemon: command not found
Jun 07 20:59:45 flamebait unifi.init[4328]: ..done
Jun 07 20:59:45 flamebait systemd[1]: Started unifi.
When I try and launch the jar I get this and the terminal window hangs
flamebait@flamebait:/usr/lib/unifi> java -jar lib/ace.jar start
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: logs/server.log (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:133)
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.(LogManager.java:127)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
at com.ubnt.service.OoOO.e.o00000(Unknown Source)
at com.ubnt.service.OoOO.e.(Unknown Source)
at com.ubnt.ace.Launcher.(Unknown Source)