docker-blueiris: UI3 does not work
I’ve been trying to get UI3 which comes with Blue Iris 5 working. Blue Iris should be loading UI3 by default at it’s webserver but I am by a 404 for the login.htm
page. Under the www/
folder, indeed that file does not exist.
I noticed in the main directory (Program Files/Blue Iris 5
) that there is a ui3.zip
. Unzipping this to www/
(unzip ui3.zip -d www/
does get the page to load but errors to occur.
Installing UI3’s latest release from it’s GitHub repository also causes the same issue as unzipping.
An unexpected error has occurred in Blue Iris Login (v 20 / 5.0.6.9). If you wish to report the error, please SCREENSHOT the browser now.
ReferenceError: $ is not defined
at http://censored_hostname/login.htm?page=%2F [149:3]
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Checking the browser console, the error appears to be at login.htm Loading failed for the <script> with source “http://192.168.3.2:81/applet/loginScripts.js?v=20-5.0.6.9”.
When performing a wget
or curl
to this endpoint, I can see errors. This leads me to believe there is something up with the webserver.
I have to been able to reproduce this across multiple machines running this docker image. There was one time it worked, but I didn’t do anything differently.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15
For UI3 to work, the port number used by the browser must be the same number that the server is using inside the container - e.g, if you use
-p 8081:81
it will not work, but if you use-p 81:81
, it should work. If you need to use a port other than 81, you’ll have to configure BI (Settings -> Web Server) to use that port and map it (e.g.-p 8081:8081
) in docker@calvinbui @dseven @FuzzyMistborn @OscarVanL I added another “program” to
supervisord.conf
.This kicks off a bash script that, once Blue Iris is up and healthy on port
8080
, deletes all the contents ofwww
and then unzipsui3.zip
intowww
. This is an unfortunate workaround; I couldn’t figure out why part ofwww
is missing.I’m hoping to get this merged, if I’m not able to I will probably publish my own docker image of my fork.
https://github.com/TonyBrobston/docker-blueiris/blob/f57ca08d6da61847c49ac2af91549682bc9c042b/supervisord.conf#L24-L26
https://github.com/TonyBrobston/docker-blueiris/blob/f57ca08d6da61847c49ac2af91549682bc9c042b/fixui3.sh#L6-L11