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

Qless-Web fails to run on newer Ruby because of Vegas #298

Open
stephenreay opened this issue Aug 28, 2024 · 0 comments
Open

Qless-Web fails to run on newer Ruby because of Vegas #298

stephenreay opened this issue Aug 28, 2024 · 0 comments

Comments

@stephenreay
Copy link

As reported in resque/resque#1746, the web UI for Qless fails to load on newer Ruby installs, due to Vegas relying on a now-removed questionable "feature".

The issue is referenced in the Vegas repo as well: quirkey/vegas#29

A workaround is to patch the installed file, as shown in the first issue thread above:

(you may need to adjust the file path for your specific version)

/usr/local/rvm/gems/ruby-3.0.2@global/gems/vegas-0.1.11/lib/vegas/runner.rb:146: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open

    def port_open?(check_url = nil)
      begin
        check_url ||= url
-        options[:no_proxy] ? open(check_url, :proxy => nil) : open(check_url)
+        options[:no_proxy] ? URI.open(check_url, :proxy => nil) : URI.open(check_url)
        false
      rescue Errno::ECONNREFUSED, Errno::EPERM, Errno::ETIMEDOUT
        true
      end
    end

Seams to be the fix. So needs to be fixed in vegas not in resque.

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

1 participant