andrewhead / tutorons-server

Routines for generating micro-explanations of online code as a web service.
http://www.tutorons.com
6 stars 2 forks source link

SVG server goes down for unknown reasons #36

Open andrewhead opened 8 years ago

andrewhead commented 8 years ago

Sometimes I find that when inspecting examples for regular expressions, the SVGs are not included in the explanation. If you think this is happening, you can reproduce this by:

  1. Going to http://webmasters.stackexchange.com/questions/9457/apache-domain-redirect-to-subfolder and observing that the generated explanations don't contain a diagram.
  2. Going to regexsvg.tutorons.com?patt=mypatt---if this issue is happening, the server will hang instead of asking you to save an SVG.

For the time being, I find that I can get the SVG server running again if I docker kill the regexper-server and regex-svg-server Docker containers, and then relaunch the containers from the Ansible scripts with ./deploy --tags containers. I should find out why this happens, and see if I can re-program the SVG server so it doesn't crash.

andrewhead commented 8 years ago

After a bit of investigation, it appears that our selenium-webdriver code isn't successfully launching the Firefox browser anymore (even in local development without the headless browser). We may need to rework our solution to this without the Firefox headless browser. Maybe use the phantomjs browser instead.