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

dhcpcd is not running #2773

Closed
DevSysEngineer opened this issue Oct 21, 2024 · 2 comments
Closed

dhcpcd is not running #2773

DevSysEngineer opened this issue Oct 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DevSysEngineer
Copy link

Describe the Bug

When I ran factor on my server I got a lot of errors in /var/log/syslog saying dhcpcd was not running. This is correct because my server is configured with a static IP address without dhcpcd.

Expected Behavior

No error logs

Steps to Reproduce

Steps to reproduce the behavior:

  1. apt-get purge dhcpcd
  2. Run facter
  3. Check log: tail -f /var/log/syslog -n 200

Environment

Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

facter --version

4.3.0

@DevSysEngineer DevSysEngineer added the bug Something isn't working label Oct 21, 2024
@joshcooper
Copy link
Contributor

joshcooper commented Oct 23, 2024

@DevSysEngineer can you include some of the errors you're seeing the log (redacted as needed)? Also can you try to reproduce using the latest version 4.10.0?

@DevSysEngineer
Copy link
Author

Hello @joshcooper, I resolved the issue by purging the dhcpcd-base package.

This line in the code link triggers the dhcpcd command, but it fails since dhcpcd isn't installed on the system. After removing dhcpcd-base, this line no longer attempts to call dhcpcd, which resolves the problem.

Is there perhaps an additional check needed to verify that the dhcpcd client is running before calling it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants