-
Notifications
You must be signed in to change notification settings - Fork 63
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
Missing ip & ifconfig causes mysterious errors #53
Comments
Same situation with docker image without ifconfig/ip. My errors were There is code for nil list but the error handling does not allow it. |
In the case neither Here is an example on Ubuntu 20.04:
|
Upon closer inspection, it seems that the gem already generates a "fake" MAC address if a real one could not be found. Line 307 in e4f0e05
A quick fix to this bug could be to return |
I used a new docker image to boot up an older Rails application that depends on the
uuidtools
gem, specifically theUUIDTools::UUID.timestamp_create
method. After the image update, I was seeing a these errors in rspec tests:This comes from the assumption that
/sbin/ip
will exist, atuuidtools/lib/uuidtools.rb
Line 639 in e4f0e05
My solution was to add the OS package that included the
ifconfig
command (which was smaller than the one that included theip
command).The text was updated successfully, but these errors were encountered: