Unifi6 via pkg -> HTTP Status 400 – Bad Request

macx979

Dabbler
Joined
Sep 25, 2019
Messages
41
Hi,

I just recently tried to install Unifi Controller in a jail since version 6 seems to be available via pkg and that would be a great simplification.

I created a jail with release 12.2-RELEASE, VNET and BPF, as well as a fixed ip address.

Code:
pkg upgrade -y
pkg install unifi6

sysrc unifi_enable=YES
service unifi start


Installation seems to work fine and unifi service starts. However, when connection to https://<ip-address>:8443 I get "HTTP Status 400 – Bad Request". This happens on Firefox as well as Chromium.
To double check I installed unifi5 instead and got the same result.

Any ideas, what's going wrong?

Best

EDIT: tried the alternative installation from ports:

Code:
pkg install mongodb36 snappyjava
portsnap fetch
portsnap extract Mk
portsnap extract UIDs
portsnap extract GIDs
portsnap extract Templates
portsnap extract net-mgmt/unifi6
cd /usr/ports/net-mgmt/unifi6
make install clean
echo 'unifi_enable="YES"' > /etc/rc.conf
service unifi start


Result is the same. Installations works fine, http error message as above.

EDIT2: tried 12.1-Release with pkg installation -> again, same result.

I am running out of "try & error" ideas. :smile:
 
Last edited:

macx979

Dabbler
Joined
Sep 25, 2019
Messages
41
aaalright.

the webui is on port 8443 and I used port 8843 accidentially. :rolleyes::cool:
 
Top