Open TonyBrobston opened 3 years ago
I did just try a fresh install against the regular leonowski/docker-blueiris
after chmod
'ing and chown
'ing as mentioned above. I now am able to successfully enter my license key and update Blue Iris.
I was reading some information for the 5th time and I think I have some confusion around this paragraph: "Service mode allows you to run blueiris as a service only. This will disable all the GUI related processes from running. To run in service mode, you first have to run in normal mode, allow an install to happen, and configure your blue iris server the way you need it to be. After you're done and no longer need to make changes, destroy the conatiner and re-launch it with the command -c /etc/supervisor/conf.d/supervisord-service.conf" https://github.com/leonowski/docker-blueiris/tree/run_as_service
I assumed "you first have to run in normal mode" meant to essentially comment this line out: https://github.com/TonyBrobston/tbro-server/blob/3172148d0f8b1a2786a3708c7b5e5d3b180823e0/home-automation/docker-compose.yml#L117 and still run on leonowski/docker-blueiris:run_as_service
. But now I'm wondering if @leonowski is meaning to run again leonowski/docker-blueiris:latest
? 🤔
Here are the steps I'm using, that seem to work for a fresh install:
mkdir /SURVEILLANCE/test
chmod -R 777 /SURVEILLANCE/test
chown 1000:1000 /SURVEILLANCE/test
Use docker-compose like this:
version: '3.8'
services:
blue-iris:
image: leonowski/docker-blueiris
restart: unless-stopped
privileged: true
init: true
environment:
- RESOLUTION=1270x650x24
- TZ=America/Chicago
ports:
- 8082:8080
volumes:
- /SURVEILLANCE/test:/home/wineuser/prefix:rw
Then, after doing setup of cameras and other things through the Blue Iris GUI, switch docker-compose to run as a service:
version: '3.8'
services:
blue-iris:
image: leonowski/docker-blueiris:run_as_service
restart: unless-stopped
init: true
environment:
- TZ=America/Chicago
volumes:
- /SURVEILLANCE/test:/home/wineuser/prefix:rw
command: -c /etc/supervisor/conf.d/supervisord-service.conf
Then run docker-compose up -d && docker-compose logs -f blue-iris
to recreate the container while reusing the persisted data through the volume mount.
I typically just comment out the differences between the two docker-compose above, since you'll need to switch back and forth: https://github.com/TonyBrobston/tbro-server/blob/3172148d0f8b1a2786a3708c7b5e5d3b180823e0/home-automation/docker-compose.yml#L102-L117
I wish the first couple chmod
/chown
weren't necessary. This seems to be a common docker issue, typically the host PUID and PGID are passed in as environment variables, which should mostly solve the file permission issues I would think.
I'm also wishing I didn't have to switch between leonowski/docker-blueiris
and leonowski/docker-blueiris:run_as_service
. But, I suppose all of this is better than having another server running one windows program 🤷♂️ .
I recently decided to make some changes to my Blue Iris setup.
I'm running on the
run_as_service
branch.Awhile back I made some file permission changes to my Blue Iris folder on my host machine. This caused problems (as you could probably imagine). I started seeing this error:
After some digging I found a previous conversation where we
chmod -R 777
andchown 1000:1000
on/SURVEILLANCE/blue-iris
in my case. I ran these commands and everything seemed to be looking good again.At some point I restarted my container and started getting the same error as above and it seems that no matter what I try I can't get past it.![image](https://user-images.githubusercontent.com/4724577/115761908-7af90b00-a368-11eb-81a9-7086bb581874.png)
It seems as though the service is still running the background because ui3 is still letting me see my cameras and recording with node-deepstackai-trigger is still working, I just can't get to the regular BlueIris Windows application to make changes.
@leonowski any ideas what this might be?
Another separate issue, I tried a fresh install and am seeing two issues I also can't get past.
Here is what I see in the logs when I click "Close"; seems to be a stackoverflow at the end: