-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.0.28 now requires root for mongodb #371
Comments
What cpu are you running under? |
linux/amd64 |
I'm really not sure why it worked before but not now, but this is part of what I'm working on with #362 . If you are not married to those ids then then the userid 999 and groupid 999 are known to work (i'm using them right now) Your permissions however do not line up with mine at all.
|
Ok I have a theory on the permissions not lining up. /var/run/unifi is a volume. I think you may have an old volume that from the old image (new image uses distro mongodb old one uses the main mongodb packages) there must be a difference in those packages. for docker using docker-compose i can clear all volumes with |
My apologies for failing to mention it: The confusing part for me is why |
Same issue here.. had to roll back to deb2b0ab ... 6.0.22 |
Ok, once the pr in #375 finishes running on travis |
Alright, give |
Not working. Returns 404. |
@SubtleMuffin the other option is The big caveat with beta-noroot is it does not work if the user does not exist in the passwd file right now, its something i'm still working on a way around. |
I'm afraid I will need more time to dig further into this. There's a puzzle here. There's clearly something about how either the kubelet or containerd work that I don't understand. @jacobalberty one question, in the Dockerfile you have:
But |
FWIW, removing |
I'll have to go through the commit log and see when/why I added it. It'll
be a few hours before I get a chance to. It's been there for a while iirc.
Interesting that removing it fixes the issue. Sounds like the easiest fix
then just need to check the log and see if there's some side effect to
removing it. It's possible it just predates the symlink. Ubiquiti in the
past has shuffled directories around and symlinks and volumes have been
added to keep it working in a container.
…On Wed, Oct 21, 2020, 9:49 AM Jason Tackaberry ***@***.***> wrote:
FWIW, removing "${RUNDIR2}" from the volumes list in the Dockerfile fixes
the issue for me. Though it's not yet clear to me why.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#371 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPDNAU7EXEK7CCGGCT3PATSL3YG7ANCNFSM4SYVN2ZA>
.
|
The addition of |
Ohh I see now that's a recent addition. I was working on removing
runas_uid0 that should have been committed into beta where I was stripping
out the gosu stuff. I'm not sure why it got into master I'll remove it as
soon as I get to a computer.
…On Wed, Oct 21, 2020, 9:52 AM Jacob Alberty ***@***.***> wrote:
I'll have to go through the commit log and see when/why I added it. It'll
be a few hours before I get a chance to. It's been there for a while iirc.
Interesting that removing it fixes the issue. Sounds like the easiest fix
then just need to check the log and see if there's some side effect to
removing it. It's possible it just predates the symlink. Ubiquiti in the
past has shuffled directories around and symlinks and volumes have been
added to keep it working in a container.
On Wed, Oct 21, 2020, 9:49 AM Jason Tackaberry ***@***.***>
wrote:
> FWIW, removing "${RUNDIR2}" from the volumes list in the Dockerfile
> fixes the issue for me. Though it's not yet clear to me why.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#371 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAPDNAU7EXEK7CCGGCT3PATSL3YG7ANCNFSM4SYVN2ZA>
> .
>
|
travis-ci is backed up a bit, the |
I got notified that the new |
Excellent. closing issue then. |
I run the controller as a non-root user, and this has been working fine since I originally deployed it earlier this year, including with 6.0.23, but as of 6.0.28, mongodb refuses to start:
/usr/lib/unifi/run
is a symlink to/var/run/unifi
.On 6.0.23:
And on 6.0.28:
So this requires mongodb to run as root.
I am running the container under Kubernetes, with a
securityContext
stanza defining a non-root uid/gid:The text was updated successfully, but these errors were encountered: