RobertDeRose/jekyll-livereload

Error: no acceptor (port is in use or requires root privileges)

nyarly opened this issue · 6 comments

I've just updated to Jekyll 3.7.2, and Livereload has stopped working.

⮀ jekyll serve -DL                                                                                          
Configuration file: /home/judson/blog/_config.yml                                                                                                                               
            Source: /home/judson/blog                                                                                                                                           
       Destination: /home/judson/blog/_site
 Incremental build: disabled. Enable with --incremental
      Generating...                                                                                                                                                             
                    done in 0.793 seconds.                                                                                                                                      
 Auto-regeneration: enabled for '/home/judson/blog'                                                                                                                             
 LiveReload Server: http://127.0.0.1:35729                                                                                                                                      
jekyll 3.7.2 | Error:  no acceptor (port is in use or requires root privileges)   

There's nothing on 35729, and it plainly doesn't require root.

It appears that Mainline has finally added Livereload support.

https://jekyllrb.com/news/2018/01/02/jekyll-3-7-0-released/

Therefore my plugin is now, no longer needed and thus, you're conflict of ports.

I tried to kill the process running on that port (4000, in my case), but this also didn't work.

What worked for me was to restart my computer.

@fordarnold I appreciate that you're still using this plugin. Have you tried updating to use Jekyll's now built in live-reload support?

Hey @RobertDeRose, thanks for the feedback. Quick question, how do I remove this plugin and utilise the Jekyll live-reload?

@fordarnold

group :jekyll_plugins do
    gem 'jekyll-livereload'
end

Remove this plugin from your Gemfile

tik9 commented

I use jekyll serve --livereload and got the error. I was not connected to the internet. Upon connecting, it worked.