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

Balena Engine fails to start when changing the network interface name #304

Open
nitishagar opened this issue Aug 8, 2022 · 1 comment
Open

Comments

@nitishagar
Copy link


BUG REPORT INFORMATION

Description

Issue with the balena engine not starting when an img contains a udev rule to change a network interface name. Resulting in containers failing to connect to the network.

Steps to reproduce the issue:

  1. Device is flashed via preloaded unwrapped image. img contains a udev rule to change a network interface name
  2. Device boots in balena with default name
  3. Network-Manager container attempts to grab MAC address from defined network interface but since it has not been renmaed yet.. Device reboots
  4. On reboot, the UDEV rule has taken, Network-Manager container grabs MAC address and changes device name to MAC address. Set environment variable for serial_number. Device reboots again
  5. On second reboot, the containers do not seem to start properly and the issue outline above occurs. It seems the BalenaEngine does not restart properly. Going into HostOS and running "reboot" fixes the problem but obviously we do not want to manually do this every time.

Describe the results you received:

Cannot connect to the balenaEngine daemon at unix:///var/run/balena-engine.sock. Is the balenaEngine daemon running?

Describe the results you expected:
All container services coming up and connecting as expected.

Additional information you deem important (e.g. issue happens only occasionally):

Device type: Generic x86_64
OS version: balenaOS 2.98.33
Supervisor version: 14.0.13

@jellyfish-bot
Copy link

[nitish] This has attached https://jel.ly.fish/41fb2425-19a8-4747-96f1-8c663a78a33c

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