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

Middleman ruby process hangs randomly #149

Closed
subatoi opened this issue Apr 23, 2018 · 3 comments
Closed

Middleman ruby process hangs randomly #149

subatoi opened this issue Apr 23, 2018 · 3 comments

Comments

@subatoi
Copy link

subatoi commented Apr 23, 2018

Middleman hangs on me when I run bundle exec middleman server at seemingly random times. I can't look at http://localhost:4567/ (I'm using the default port) and I can't exit out of the process on the CLI.

I can identify the PID and kill -9 it then rerun bundle exec middleman server, with the same background processes running, and then it'll work, so there doesn't appear to be any pattern.

It might well be my setup but this wasn't happening before the recent updates.

Took a sample of processes (middleman_hang.txt):
middleman_hang.txt

@subatoi
Copy link
Author

subatoi commented Jun 14, 2018

OK so I'm pretty sure this was happening because I was trying to open http://localhost:4567/ before the processes had finished running, so not sure if it's worth keeping this open.

@idavidmcdonald
Copy link

This is happening for both myself and @kentsanggds when trying to run the GDS Way (https://github.com/alphagov/gds-way) and the Reliability engineering (https://github.com/alphagov/reliability-engineering) repositories locally.

We have a short term solution which is to instead start the server locally using EXECJS_RUNTIME=Node bundle exec middleman server.

It looks like this is a common issue with middleman that is being seen due to a dependancy called rubyracer. You can find more context from other people having a similar problem, for example https://gitlab.com/gitlab-com/www-gitlab-com/issues/842

@tijmenb
Copy link
Contributor

tijmenb commented Feb 13, 2019

I believe this was fixed in alphagov/tech-docs-gem#54. Feel free to reopen if the issue resurfaces.

@tijmenb tijmenb closed this as completed Feb 13, 2019
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

3 participants