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

Port 35729 is already in use by another process #39

Closed
b4z81 opened this issue Oct 8, 2013 · 37 comments
Closed

Port 35729 is already in use by another process #39

b4z81 opened this issue Oct 8, 2013 · 37 comments

Comments

@b4z81
Copy link

b4z81 commented Oct 8, 2013

grunt-dev.command return this error:

Running "connect:livereload" (connect) task
Started connect web server on localhost:9000.

Running "open:server" (open) task

Running "watch" task
Waiting...Fatal error: Port 35729 is already in use by another process.
logout

if i display the list of open network connections:

Sublime   1156 macbookpro    7u  IPv4 0xffffff801a66ba40      0t0  TCP *:35729 (LISTEN)
@toddmotto
Copy link
Owner

This usually happens when there's another Terminal window open, or is this from a fresh boot?

Sent from my iPhone

On 8 Oct 2013, at 11:16, Stefano Guglielmi notifications@github.com wrote:

grunt-dev.command return this error:

Running "connect:livereload" (connect) task
Started connect web server on localhost:9000.

Running "open:server" (open) task

Running "watch" task
Waiting...Fatal error: Port 35729 is already in use by another process.
logout
if i display the list of open network connections:

Sublime 1156 macbookpro 7u IPv4 0xffffff801a66ba40 0t0 TCP *:35729 (LISTEN)

Reply to this email directly or view it on GitHub.

@b4z81
Copy link
Author

b4z81 commented Oct 8, 2013

right, it works after closing the other terminal window.
thank you

Il giorno martedì 8 ottobre 2013, Todd Motto notifications@github.com ha
scritto:

This usually happens when there's another Terminal window open, or is
this from a fresh boot?

Sent from my iPhone

On 8 Oct 2013, at 11:16, Stefano Guglielmi notifications@github.com
wrote:

grunt-dev.command return this error:

Running "connect:livereload" (connect) task
Started connect web server on localhost:9000.

Running "open:server" (open) task

Running "watch" task
Waiting...Fatal error: Port 35729 is already in use by another process.
logout
if i display the list of open network connections:

Sublime 1156 macbookpro 7u IPv4 0xffffff801a66ba40 0t0 TCP *:35729
(LISTEN)

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@b4z81 b4z81 closed this as completed Oct 9, 2013
@hassanjamal
Copy link

i was also facing same prob .
i cross check which program is using this port .
$ lsof | grep 35729
i found sublime text is using this . well that may be due to live reload plugin installed with sublime text . i immediately uninstalled this plugin and removed extension from chrome too .
and finally

$grunt serve was working for me

@tony-keller
Copy link

Was Sublime text for me:
Preferences>Package Control>remove package> livereload >Restart Sublime text > Worked!

@nothinking
Copy link

Thanks hassanjamal!
Thanks everybody!

@lajlev
Copy link

lajlev commented Jan 6, 2014

+1 Sublime

1 similar comment
@jevets
Copy link

jevets commented Jan 9, 2014

+1 Sublime

@johnmarty
Copy link

I want to run multiple project that both use watch. Can we configure the port watch uses?

@johnmarty
Copy link

of course we can, thanks
cite from grunt's git hub docs

Live reloading is built into the watch task. Set the option livereload to true to enable on the default port 35729 or set to a custom port: livereload: 1337.

@nlemsieh
Copy link

I had the same problem , so i was this options :{spawn : false, livereload: true} in Gruntfile.js and another Livereload installed in Sublime Text 2, to resolve this , you should to disable one Livereload. So I did like this options :{spawn : false, livereload: false}

@vkadam
Copy link

vkadam commented Feb 22, 2014

Custom port for livereload can be specified.
Change

livereload:true

to

livereload:12345

Take a look at https://github.com/gruntjs/grunt-contrib-watch#optionslivereload

@cmplank
Copy link

cmplank commented Mar 4, 2014

For me it turned out to be a stackoverflow.com tab in Chrome. Weird. Running lsof | grep 35729 revealed the problem.

@alexoviedo999
Copy link

sublime's livereload was the culprit....

@lukeed
Copy link

lukeed commented Mar 21, 2014

LiveReload is the culprit because Grunt uses the same package to update the browser.

However, You don't need to remove the LiveReload package from Sublime!!!!

Simply change the port that SublimeText's LiveReload uses, then restart Sublime.

Sublime Text 2 > Preferences > Package Settings > Live Reload > Settings - User

The opened file will mostly likely be blank. Paste in:

{
    "port" : 35730
}

This overrides the default port 37729

Restart Sublime.
Restart Terminal.

Sublime's LiveReload will no longer interfere/share ports with Grunt.

@monarksingh
Copy link

+1 for @lukeed

@SOSANA
Copy link

SOSANA commented Apr 19, 2014

+1

@fad12
Copy link

fad12 commented Apr 23, 2014

Run this command : $ lsof | grep 35729 see what other app useing the same port
1- make sure you have only on terminal window open
2 - if you install the live reload to sublime text just change the port

@0bserver07
Copy link

Thanks, it was the sublime. After that it worked +1 !

@smallmacro
Copy link

+1 for @lukeed It works!

@JohnReagan
Copy link

You can also add an option to specify a livereload port.
in Gruntfile.js: livereload: grunt.option(lrport) || true
and then run: grunt serve --lrport 1337

@esther44
Copy link

esther44 commented Sep 5, 2014

Sublim, uwamp...

@mucacran
Copy link

mucacran commented Nov 9, 2014

yo lo solucioné abriendo y serrando el sublime text,

  1. serré el sublime text
  2. instale el grunt en mi directorio por medio del ms-dos
    3.luego abrí el sublime
  3. listo ya no me salio ese error.

@charlieartist
Copy link

Was having this issue, restarting all apps didn't seem to solve it (probably a browser cache issue). Manually setting the port to a different one in Gruntfile.js in the project did the trick.

@KyleMerritt
Copy link

I was trying to run multiple watches using grunt-concurrent. I just set a different port for each watch task. Example:

watch: {
       less: {
            files: grunt.file.expand(config.lessFiles),
            tasks: ['less:production', 'concat:globalCss', 'concat:homeCss'],
            options: {
                spawn: true,
                event: ['changed'],
                livereload: 1341
            }
        },
        htmlDev: {
            files: config.htmlFiles,
            tasks: ['copy:html', 'exec', 'template:development'],
            options: {
                spawn: true,
                livereload: 1342
            }
        },
        tsChangedDev: {
            files: config.tsFiles,
            tasks: ['ts', 'copy:ts'],
            options: {
                spawn: false,
                event: ['changed'],
                reload: false,
                livereload: 1343
            }
        }
}

@heaversm
Copy link

Had to run sudo lsof -i :35729 in mac terminal to get it to list the offender - virtualbox for me.

@kalgar92
Copy link

kalgar92 commented Feb 8, 2015

Well done ty 👍

@nicolae-olariu
Copy link

Thank you @heaversm. The trick did it for me too! (Ubuntu 14.10)

@pengbits
Copy link

hipchat was running on 9000 for me - so changing the port in gruntfile did the trick

@vickyonit
Copy link

For me it was because of ioniclabs! found it using $ lsof grep | 35729

@kannan-chandra
Copy link

+1 Sublime
Uninstalling Sublime's livereload fixed it for me

@raua
Copy link

raua commented Jan 21, 2016

To solve this, I just need to close my firefox, sublime text and my terminal. After works well.

duoduo369 added a commit to duoduo369/gulp-frontend-scaffold that referenced this issue Feb 3, 2016
@redodonut
Copy link

Is the problem similar with Apache port interrupted after installing Nginx? then we should configure the ports to be different? I have met the problem after installing Livereload package for my sublime, and it was made _Fatal error: Port 35729 is already in use by another process. _ appeared when i am running grunt serve to my yeoman project which has grunt-contrib-connect integration with Livereload Chrome Extension.

@mrjonah
Copy link

mrjonah commented Jun 19, 2016

I had the same issue, saw grunt process was running multiple times, killed both and everything restarted just fine.

@karthikeyana
Copy link

karthikeyana commented Sep 12, 2016

Check which process is listening on that port using:
fuser port_no/tcp
then kill that process using
kill -9 pid

@umair-khanzada
Copy link

it's happening some time cause of other terminal window is open.
solution thats works for me is:

  1. Close all terminal windows and then run project again.
  2. Close terminal && Restat IDE.

@gunjot-mansa
Copy link

gunjot-mansa commented Nov 9, 2016

thanks to @cmplank
stackoverflow.com tab in Chrome

  • UPDATE -seems some other issue again!

@leotm
Copy link

leotm commented Mar 18, 2017

I only get it when LiveReload is already running in the background, with the LiveReload package installed.

Closing LiveReload the opening Sublime fixes it for me.

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