Telegraf: error starting server: listen tcp :1619: bind: address already in use

I had this working and not sure the issue with this error. I have this running on a digitalocean droplet. Last line. This is for the webhook on port 1619 for Particle. Hopefuly something simple.

bind: address already in use

root@ubuntu-s-1vcpu-1gb-sfo3-01:~# telegraf --config https://us-central1-1.gcp.cloud2.influxdata.com/api/v2/telegrafs/XXXXX
2022-11-30T23:56:08Z I! Starting Telegraf 1.22.3+ds1-0ubuntu1
2022-11-30T23:56:08Z I! Loaded inputs: webhooks
2022-11-30T23:56:08Z I! Loaded aggregators: 
2022-11-30T23:56:08Z I! Loaded processors: 
2022-11-30T23:56:08Z I! Loaded outputs: influxdb_v2
2022-11-30T23:56:08Z I! Tags enabled: host=ubuntu-s-1vcpu-1gb-sfo3-01
2022-11-30T23:56:08Z I! [agent] Config: Interval:20s, Quiet:false, Hostname:"ubuntu-s-1vcpu-1gb-sfo3-01", Flush Interval:10s
2022-11-30T23:56:08Z I! [inputs.webhooks] Started the webhooks_particle on /particle
**2022-11-30T23:56:08Z E! [telegraf] Error running agent: starting input inputs.webhooks: error starting server: listen tcp :1619: bind: address already in use**

This fixed it

root@ubuntu-s-1vcpu-1gb-sfo3-01:~# sudo lsof -i tcp:1619
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
telegraf 34383 root    8u  IPv6 764576      0t0  TCP *:1619 (LISTEN)
root@ubuntu-s-1vcpu-1gb-sfo3-01:~# sudo kill -9 34383
root@ubuntu-s-1vcpu-1gb-sfo3-01:~# sudo lsof -i tcp:1619
root@ubuntu-s-1vcpu-1gb-sfo3-01:~# telegraf
2022-12-01T00:27:24Z I! Using config file: /etc/telegraf/telegraf.conf
2022-12-01T00:27:24Z I! Starting Telegraf 1.22.3+ds1-0ubuntu1
2022-12-01T00:27:24Z I! Loaded inputs: webhooks
2022-12-01T00:27:24Z I! Loaded aggregators: 
2022-12-01T00:27:24Z I! Loaded processors: 
2022-12-01T00:27:24Z I! Loaded outputs: influxdb_v2
2022-12-01T00:27:24Z I! Tags enabled: host=ubuntu-s-1vcpu-1gb-sfo3-01
2022-12-01T00:27:24Z I! [agent] Config: Interval:20s, Quiet:false, Hostname:"ubuntu-s-1vcpu-1gb-sfo3-01", Flush Interval:10s
2022-12-01T00:27:24Z I! [inputs.webhooks] Started the webhooks_particle on /particle
2022-12-01T00:27:24Z I! [inputs.webhooks] Started the webhooks service on :1619
1 Like