{"id":7804,"date":"2015-10-27T10:41:55","date_gmt":"2015-10-27T10:41:55","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/27\/cannot-start-sinatra-process-eventmachine-no-acceptor-open-source-projects-eventmachine-eventmachine\/"},"modified":"2015-10-27T10:41:55","modified_gmt":"2015-10-27T10:41:55","slug":"cannot-start-sinatra-process-eventmachine-no-acceptor-open-source-projects-eventmachine-eventmachine","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/27\/cannot-start-sinatra-process-eventmachine-no-acceptor-open-source-projects-eventmachine-eventmachine\/","title":{"rendered":"cannot start sinatra process &#8211; eventmachine &#8220;no acceptor&#8221;-open source projects eventmachine\/eventmachine"},"content":{"rendered":"<p>I have a Sinatra app that I run as a daemon, using Apache port-forwarding to mediate between port 80 and port 7655. This has been working fine in the past. Today, not so well. I cannot figure out why.<\/p>\n<p>Problem: <code>sudo ruby my_process.rb<\/code> returns:<\/p>\n<pre><code>\/var\/lib\/gems\/1.9.1\/gems\/eventmachine-1.0.0\/lib\/eventmachine.rb:526:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)\n<\/code><\/pre>\n<p>Tried: updating all system packages, updating all gems. No help (except for the more clear error message from eventmachine).<\/p>\n<p>When I run <code>sudo lsof -i :7655<\/code> I get nothing back. When I run <code>sudo ps aux<\/code> I don&#8217;t see <em>any<\/em> Ruby processes at all. Which I find highly irregular, given the nature of the error message!<\/p>\n<p>So is there something I&#8217;m missing in finding out why the port is unavailable?<\/p>\n<p>Also:<\/p>\n<p>Tried changing ports, nothing. I wonder if it is related to &#8220;localhost&#8221;? When I ping localhost I get all dropped packets. That doesn&#8217;t seem normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a Sinatra app that I run as a daemon, using Apache port-forwarding to mediate between port 80 and port 7655. This has been working fine in the past. Today, not so well. I cannot figure out why. Problem: sudo ruby my_process.rb returns: \/var\/lib\/gems\/1.9.1\/gems\/eventmachine-1.0.0\/lib\/eventmachine.rb:526:in `start_tcp_server&#8217;: no acceptor (port is in use or requires root [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7804","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7804"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7804\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}