Can't find whats starting/restarting process on ubuntu

by FrostyFire   Last Updated December 12, 2017 22:00 PM

I am using node and trying to bind to port 8080 but get the port in use error.

I ran (with root privileges):

lsof -i tcp:8080

COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
node    1851  xxx   11u  IPv6  19064      0t0  TCP *:http-alt (LISTEN)

xxx is a user with sudo privileges.

If I kill the process it will end but immediately restarts. It starts on server boot as well. Upstart is not even installed. Forever is installed but forever list says nothing is running.

The services file says:

http-alt    8080/tcp    webcache    # WWW caching service
http-alt    8080/udp

I googled http-alt and it seems related to niginx but my config files do not reference port 8080. Besides...

readlink -f /proc/1851/exe

/usr/bin/nodejs

Obviously a node process...somewhere

Someone else has access to this server but are unreachable atm. I don't know what else to check, for this process. How can I find where this process is getting launched from and the real location of the file (ie not /usr/bin/nodejs)? Its not upstart, its not forever, sysv-rc-conf does not have any node related process either.

Edit:

ps -f 1851

UID        PID  PPID  C STIME TTY      STAT   TIME CMD
xxx       1851    1850  0 20:49 ?        Sl     0:20 node build/dev-server.js

node build/dev would be the result of a npm run dev command. I ran kill - 15 on the PPID but it did nothing except change the PPID to 1 (/sbin/init). The port is still in use.

I also grepped init.d for "node" and "npm" with no results.



Related Questions




Port wont open to web

Updated May 23, 2015 05:00 AM


Nginx - Create multiple webhooks on one subdomain

Updated March 13, 2017 14:00 PM