Skip to content
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

Unable to start mdns: Out of memory #63

Closed
Remarknl opened this issue Jan 11, 2022 · 5 comments
Closed

Unable to start mdns: Out of memory #63

Remarknl opened this issue Jan 11, 2022 · 5 comments

Comments

@Remarknl
Copy link

I am trying to use ser2net to make a zigbee usb stick available to containers in a kubernetes cluster. However i am stuck with an error that i ony get when running ser2net in a container.

When running in a container i get a Unable to start mdns: Out of memory error and ser2net does not start. I can reproduce this on docker, k3s and podman using a container built with the following dockerfile:

FROM debian:bookworm-slim
RUN apt update && apt install -y ser2net && rm -rf /var/lib/apt/lists/*
CMD ["ser2net"]

I tried running ser2net -d -l -l -c <config file> in the container as advised in openhab/openhab-core#1511 but there is no additional output.

@cminyard
Copy link
Owner

cminyard commented Jan 14, 2022 via email

@cminyard
Copy link
Owner

Any news on this?

@Remarknl
Copy link
Author

Im sorry, I didn’t get the chance to access this environment. I will follow up this weekend. In the meantime i used a temporary raspberry pi. I use containers mainly because i want to deploy as much software as possible via containers to the edge and keep my os image as small as possible. I do this by mounting /dev/ttyX and running the container privileged. In the end i am not targeting docker but k8s, that is why i cant use the —device option.

If i get this working, i can contribute dockerfiles, compose-files, kubernetes resources and documentation to go with it. Would you be interested in that?

@Remarknl
Copy link
Author

I found the problem. Long story short: In the dockerfile you have to add the -d parameter or the process will exit with code 1.
I only used that parameter during debugging. Although you pointed me in the right direction i want to say i am sorry i frankly wasted your time.

@cminyard
Copy link
Owner

cminyard commented Jan 23, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants