Get the PID ps -Af | grep ruby
Attach to the process sudo gdb -p PID
Enter in Python python
Run snippet gdb_ruby_backtrace.py
Get the PID ps -Af | grep ruby
Attach to the process sudo gdb -p PID
Enter in Python python
Run snippet gdb_ruby_backtrace.py
Problem:
curl -v https://xxx/
* Trying x.x.x.x:443...
* TCP_NODELAY set
* Connected to xxx (x.x.x.x) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
| #!/usr/bin/env bash | |
| # Use @puppeteer/browsers to system-wide install the latest stable release of Chrome and Chromedriver. | |
| # By default to home directory. | |
| cd ~ | |
| mkdir -p bin | |
| output=($(npx @puppeteer/browsers install chrome@stable)) &&\ | |
| ln -sfv ${output[1]} ~/bin/chrome &&\ |
| class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | |
| Capybara.register_driver :chrome_headless do |app| | |
| client = Selenium::WebDriver::Remote::Http::Default.new | |
| client.read_timeout = ENV.fetch("SELENIUM_READ_TIMEOUT", 120).to_i | |
| options = Selenium::WebDriver::Chrome::Options.new | |
| options.add_argument('--headless=new') if ENV["HEADLESS"] != "false" | |
| options.add_argument('--disable-extensions') | |
| options.add_argument('--disable-gpu') | |
| options.add_option("goog:loggingPrefs", { browser: "ALL" }) |