vesparny / angular-kickstart

angular-kickstart - speed up your AngularJS development and testing with a great gulpjs build system.
http://bit.ly/angular_kickstart
MIT License
552 stars 83 forks source link

grunt serve dies with port 9000 already in use #2

Closed spacemonkey closed 10 years ago

spacemonkey commented 10 years ago

Ciao Alessandro! A clean install results in grunt serve failing with port 9000 already in use, and I'm assuming test or some such is hogging that port when the server tries to fire up.

Might have something to do with angular-generator? See https://github.com/yeoman/yeoman/issues/1118

ng-kickstart mpirtle$ grunt serve
Running "clean:dist" (clean) task

Running "clean:tmp" (clean) task
Cleaning build/tmp/assets...OK
Cleaning build/tmp/index.html...OK
Cleaning build/tmp/templates-app.js...OK
Cleaning build/tmp/templates-common.js...OK
Cleaning build/tmp/webapp...OK

Running "html2js:app" (html2js) task
Successfully converted 3 html templates to js.

Running "html2js:common" (html2js) task
Successfully converted 0 html templates to js.

Running "concurrent:build" (concurrent) task

    Running "copy:webappJs" (copy) task
    Copied 8 files

    Done, without errors.

    Running "copy:vendorJs" (copy) task
    Copied 7 files

    Done, without errors.

    Running "copy:vendorCss" (copy) task
    Copied 4 files

    Done, without errors.

    Running "sass:dev" (sass) task
    File "build/tmp/assets/css/0.0.1.style.css" created.

    Done, without errors.

Running "copy:webappAssets" (copy) task
Created 3 directories, copied 9 files

Running "tpl:build" (tpl) task

Running "configureProxies" task
Proxy created for: /api to localhost:9001

Running "connect:livereload" (connect) task
Fatal error: Port 9000 is already in use by another process.
vesparny commented 10 years ago

Hey Mitch, seems you have a process already started on port 9000.

could you try to check this?

$ netstat -tulpn | grep :9000

You should find the locking process, then you can decide to kill it, or change the port in use in /build/build.config.js

Let me know ;)

spacemonkey commented 10 years ago

Yeah, it's called php-fpm. :-D

I think that's a pretty major collision there, as port 9000 is the default for socket-based installs including osx, debian, ubuntu, homebrew, macports, and probably many others. Might want to set the default to something else?

vesparny commented 10 years ago

Yep, setting another default port may be the right solution. I' didn't think about collision.

Which port should be better? 9001?

nathiyakumar commented 7 years ago

Running "injector:dev" (injector) task Missing option template, using dest as template instead Injecting css files (2 files)

Nothing changed

Running "concurrent:tasks" (concurrent) task Running "connect:server" (connect) task Waiting forever... Fatal error: Port 4000 is already in use by another process.

Execution Time (2017-05-25 17:47:46 UTC+5:30)
loading tasks   587ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 96%
connect:server   24ms  ▇▇ 4%
Total 612ms

Running "watch" task
Waiting...

Warning: Used --force, continuing.

Done, but with warnings.

Execution Time (2017-05-25 17:47:45 UTC+5:30) loading tasks 532ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 27% injector:dev 393ms ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 20% concurrent:tasks 1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 53% Total 2s

nathiyakumar commented 7 years ago

how to solve this error in linux?