Skip to content

Device or resource busy - getaddrinfo when doing ruby http calls on ubuntu #12

@grosser

Description

@grosser
Device or resource busy - getaddrinfo (Errno::EBUSY)

did not find anything on the web that would help ... something about ulimit might be setup wrong :/

require 'net/http'
Net::HTTP.get_response(URI('http://www.google.com'))

ulimit seems fine:
/proc/sys/fs/file-max -> 524288

FROM ruby as ruby

ADD https://github.com/coord-e/magicpak/releases/download/v1.3.0/magicpak-x86_64-unknown-linux-musl /usr/bin/magicpak
RUN chmod +x /usr/bin/magicpak && /usr/bin/magicpak -v "$(which ruby)" /magicpak

FROM scratch

COPY --from=ruby /magicpak /.
COPY --from=ruby /usr/local/lib/ruby /usr/local/lib/ruby

RUN ["ruby", "-r", "net/http", "-e", "Net::HTTP.get_response(URI('http://www.google.com'))"]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions