-
Notifications
You must be signed in to change notification settings - Fork 5
bc-server runs as root - web server can't access recordings #3
Comments
Can you try the recent commit? Use I have also added a new volume for /etc/bluecherry.conf so that the settings are retained between rebuilds/upgrades of the docker image - this is in |
Nevermind if you haven't started yet hold off. Found an issue. |
Okay feel free to try now. |
Failing with:
Not sure if I have some cleanup to do, or ....... I'll poke at it some more as I get time. |
I think the issue is that
|
Of course now it doesn't work, because the config is blank. Where is the content for |
So in the |
Thanks for trying it out. It is weird, I got a similar message but then it worked for me. I built it with and without the file existing. I'll try to reproduce it on my end. |
No problem. I'm actually running BC on "bare metal" for now, but may consider docker in the future, and interested in learning more about it anyway. A couple of other notes ... you're mounting
It might be nice to make a variable in By way of good news; the permissions fix looks good - I can play back recordings through the client now. |
Good news on the permissions. Just need to somehow fix the bluecherry.conf. It doesn't seem like there is a 'copy file if it exists' functionality. It should be created by the dockerbuild file as a file that exists on first run, so I am not sure why it would create it as a directory. I am playing with it. |
Me again. Hope the feedback is useful. Let me know if not, and I'll go away :)
So I found that I was unable to playback recordings, through either the remote client or web. This is because
bc-server
is running asroot
, the files (and subdirectories) are created with only owner and group access, and the web server (running aswww-data
) is not in theroot
group.I found an old motherboard to install Ubuntu on to experiment with non-docker. There, I see that
bc-server
is running as thebluecherry
user and group, and thatwww-data
is a member of thebluecherry
group, so it does have access to the recordings.The text was updated successfully, but these errors were encountered: