-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Install packages for network configuration #31
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
If you are in the situation of having to manually configure the interface address of a container from within that container you are already doing something very wrong. This seems like a very X/Y problem but without additional context it's impossible to identify your actual issue. |
Packages to change the IP should not be required. The IP that the container is detecting is the one from the docker network which is perfectly fine. You can then configure the controller to force the correct inform URL to your devices. |
yes but what should I do if I can't specify the interface which the controller uses? On my host I have my en0 interface and podman0 which I aussume is the default podman bridge.
It is not perfectly fine in my case. What other options do I have to get the container into my real network and some docker/podman internal network? |
Perhaps provide some more context to why this is an issue for yourself? Also note that our container could be behaving differently to how we expect as you're using podman while we test using docker. |
yea that also crossed my mind.. |
About the apt issues. Not the actual problem but makes it hard to debug with the image
|
I still don't believe you've explained why you need this issue? Because you're the first person I've seen ask request this in the years we've had a unifi container. The only thing you really need to do to get your devices back online is to force the inform URL within the controller for it to push the correct inform information to your devices. |
I'm trying to debug and figure out what's going on here.. I asked if it's expected to be unable to install any more package in the image, no answer Telling me you don't believe I need this doesn't help me either. I provided information about my network setup, how I run the image, which engine I use etc but you guys only tell me that I dont need this ... but the container isn't working for me and I try to figure out why 🤷
Yes, but well if the controller only gives me a 404 how to do that then? |
Re the 404, have you ever been able to access the webui? |
yes I have but it randomly stops working. Can't really tell what's the issue since there is not a single line of logs anywhere of that controller. I mean... since I get the 404 I assume I can actually reach the container and it responds. But why the 404, no clue. When I search online for "unifi controller 404" I get a dozen posts telling me to repair the mongodb database. It's just hard to debug without any logs and only a 404. Is there a way to make the whole thing more verbose maybe? |
The unifi logs themselves will show within your |
I don't think so... I tried to reach the databse from multiple endpoints and it works and actually having a look at the logs in my volume (thanks!) I can see this:
|
Oh lord... 💆 And now it seems to work... at least for now... I will see how long this will last. Any way to get the devices onto this new controller then without factory resetting them all? 🤔 |
I have it running "fine" now but it keeps being flaky. But I guess this is more a reason of the underlying unifi-controller and not the image. |
Is this a new feature request?
Wanted change
It would be nice if basic tools like ifconfig or ip would be included in the image
Reason for change
When starting the container the unifi-controller always gets an ip address from a wrong network. At least in my case.
I can exec into the container but am unable to do any diagnostics or set the ip address manuall, which is suggested in the unifi forums.
I also can not simply install net-tools because there is package conflict with unifi and mongodb in apt and resolving this means uninstalling unifi.
So yea.. I'm stuck with either having the container always in the wrong network or having to uninstall unifi to install net-tools
If there is any way through the UI or env var or so to specify the network interface that the controller should use would also solve the issue I think.
Proposed code change
Make the network interface/address configurable or add tools to the image to manually configure the network
The text was updated successfully, but these errors were encountered: