middleman-livereload icon indicating copy to clipboard operation
middleman-livereload copied to clipboard

Middleman server does not respond to SIGINT or SIGTERM while live reloading

Open FriedSock opened this issue 9 years ago • 3 comments

If I perform a search and replace while live reloading is turned on, the middleman server will take a long time performing all its live reloading. At the moment my only option is to kill -9 the process and start the server again.

FriedSock avatar Jan 15 '16 12:01 FriedSock

Gemfile.lock please

tdreyno avatar Jan 17 '16 03:01 tdreyno

I've got the issue that after about 3 times editing a sass file, middleman server hangs and I can only kill -9. It's worse when more than 1 browsers are connected.

GEM
  remote: https://rubygems.org/
  specs:
    activesupport (5.0.1)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (~> 0.7)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
    addressable (2.5.0)
      public_suffix (~> 2.0, >= 2.0.2)
    autoprefixer-rails (6.7.2)
      execjs
    backports (3.6.8)
    builder (3.2.3)
    coffee-script (2.4.1)
      coffee-script-source
      execjs
    coffee-script-source (1.12.2)
    compass-import-once (1.0.5)
      sass (>= 3.2, < 3.5)
    concurrent-ruby (1.0.4)
    contracts (0.13.0)
    dotenv (2.2.0)
    em-websocket (0.5.1)
      eventmachine (>= 0.12.9)
      http_parser.rb (~> 0.6.0)
    erubis (2.7.0)
    eventmachine (1.2.2)
    execjs (2.7.0)
    fast_blank (1.0.0)
    fastimage (2.0.1)
      addressable (~> 2)
    ffi (1.9.17)
    haml (4.0.7)
      tilt
    hamster (3.0.0)
      concurrent-ruby (~> 1.0)
    hashie (3.5.3)
    htmlcompressor (0.2.0)
    http_parser.rb (0.6.0)
    i18n (0.7.0)
    kramdown (1.13.2)
    libv8 (3.16.14.17)
    listen (3.0.8)
      rb-fsevent (~> 0.9, >= 0.9.4)
      rb-inotify (~> 0.9, >= 0.9.7)
    memoist (0.15.0)
    middleman (4.2.1)
      coffee-script (~> 2.2)
      compass-import-once (= 1.0.5)
      haml (>= 4.0.5)
      kramdown (~> 1.2)
      middleman-cli (= 4.2.1)
      middleman-core (= 4.2.1)
      sass (>= 3.4.0, < 4.0)
    middleman-autoprefixer (2.7.1)
      autoprefixer-rails (>= 6.5.2, < 7.0.0)
      middleman-core (>= 3.3.3)
    middleman-blog (4.0.1)
      addressable (~> 2.3)
      middleman-core (>= 4.0.0)
      tzinfo (>= 0.3.0)
    middleman-cli (4.2.1)
      thor (>= 0.17.0, < 2.0)
    middleman-core (4.2.1)
      activesupport (>= 4.2, < 5.1)
      addressable (~> 2.3)
      backports (~> 3.6)
      bundler (~> 1.1)
      contracts (~> 0.13.0)
      dotenv
      erubis
      execjs (~> 2.0)
      fast_blank
      fastimage (~> 2.0)
      hamster (~> 3.0)
      hashie (~> 3.4)
      i18n (~> 0.7.0)
      listen (~> 3.0.0)
      memoist (~> 0.14)
      padrino-helpers (~> 0.13.0)
      parallel
      rack (>= 1.4.5, < 3)
      sass (>= 3.4)
      servolux
      tilt (~> 2.0)
      uglifier (~> 3.0)
    middleman-livereload (3.4.6)
      em-websocket (~> 0.5.1)
      middleman-core (>= 3.3)
      rack-livereload (~> 0.3.15)
    middleman-lunr (0.3.0)
      middleman-core (>= 3.3)
      therubyracer (~> 0.8)
    middleman-minify-html (3.4.1)
      htmlcompressor (~> 0.2.0)
      middleman-core (>= 3.2)
    middleman-syntax (3.0.0)
      middleman-core (>= 3.2)
      rouge (~> 2.0)
    mini_portile2 (2.1.0)
    minitest (5.10.1)
    nokogiri (1.7.0.1)
      mini_portile2 (~> 2.1.0)
    oj (2.18.1)
    padrino-helpers (0.13.3.3)
      i18n (~> 0.6, >= 0.6.7)
      padrino-support (= 0.13.3.3)
      tilt (>= 1.4.1, < 3)
    padrino-support (0.13.3.3)
      activesupport (>= 3.1)
    parallel (1.10.0)
    public_suffix (2.0.5)
    rack (2.0.1)
    rack-livereload (0.3.16)
      rack
    rb-fsevent (0.9.8)
    rb-inotify (0.9.8)
      ffi (>= 0.5.0)
    redcarpet (3.4.0)
    ref (2.0.0)
    rouge (2.0.7)
    sass (3.4.23)
    sassc (1.11.2)
      bundler
      ffi (~> 1.9.6)
      sass (>= 3.3.0)
    servolux (0.12.0)
    therubyracer (0.12.3)
      libv8 (~> 3.16.14.15)
      ref
    thor (0.19.4)
    thread_safe (0.3.5)
    tilt (2.0.6)
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    uglifier (3.0.4)
      execjs (>= 0.3.0, < 3)

PLATFORMS
  ruby

DEPENDENCIES
  builder (~> 3.0)
  middleman
  middleman-autoprefixer
  middleman-blog
  middleman-livereload
  middleman-lunr
  middleman-minify-html
  middleman-syntax
  nokogiri
  oj
  redcarpet
  sassc
  therubyracer

BUNDLED WITH
   1.14.3

crstin avatar Feb 16 '17 10:02 crstin

@crstin Try the steps in this guide and see if you can dig out more details on why/where it hangs.

https://blog.newrelic.com/2013/04/29/debugging-stuck-ruby-processes-what-to-do-before-you-kill-9/

sandstrom avatar Feb 16 '17 14:02 sandstrom