Problems with grafana and rocket chat: how to stop rocket chat?

Hi
I have installed grafana for my influxdb and openhab but when I opened my browser on http://192.168.178.30:3000 to login to grafana, I found the login page to rocket chat :face_with_raised_eyebrow:
I do not have any plans to work with rocket chat and wasn’t able to stop or uninstall it.
I have a ubuntu server running on my nas in a virtual station, when I login to rocket chat the version is 1.1.3 and was installed on Oct 27 2018.

sudo netstat -lp
tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN 23285/node

I’m sorry but I want to stop rocket chat running on my server. Is there a way to stop the service?
Regards Ben

try somethink like this

sudo systemctl disable rocketchat && sudo systemctl stop rocketchat

depends on your OS

sudo systemctl disable rocketchat returns

Failed to disable unit: Unit file rocketchat.service does not exist.

sudo systemctl stop rocketchat returns

Failed to stop rocketchat.service: Unit rocketchat.service not loaded.

How could that be that no service ist running, but Rocket Chat is there and I can login in to it?

sudo /etc/init.d/rocketchat stop

?

that doesn’t work:

sudo /etc/init.d/rocketchat stop
sudo: /etc/init.d/rocketchat: command not found

Can I provide you with more information, please ask if there is something I can do ? I greatly appreciate your help. Thanks

try to at first kill RC…

This shows process number>

#ps aux |grep rocket

and then kill proces

#kill -9 PROCESNR

you can always disable RC site in apache

a2dissite rocketchat

/etc/init.d/apache2 restart

doesn’t work

ps aux |grep rocket
root 828 0.0 0.0 4504 0 ? Ss Jul03 0:00 /bin/sh /snap/rocketchat-server/1384/bin/startmongo
root 1057 1.2 2.6 1502392 26924 ? Sl Jul03 86:32 mongod --bind_ip 127.0.0.1 --pidfilepath /var/snap/rocketchat-server/common/mongod.pid --smallfiles --journal --dbpath=/var/snap/rocketchat-server/common --replSet rs0
root 5518 0.6 0.0 18100 228 ? Ss 12:45 0:00 /bin/bash /snap/rocketchat-server/1384/bin/startRocketChat
root 5607 37.3 42.3 1712844 427540 ? Dl 12:45 0:47 node /snap/rocketchat-server/1384/main.js
root 5864 0.0 0.0 13136 944 pts/0 S+ 12:47 0:00 grep --color=auto rocket

kill -9 -5518

(PROCESSID for startRocketChat - stops the service on port 3000)

a2dissite rocketchat /etc/init.d/apache2 restart

Command ‘a2dissite’ not found, but can be installed with:

apt install apache2

rocketchat restarts after a minute

eh,
it looks like that u have snap ?

I have no idea how it works with snap, but google something how to stop service +snap

maybe this :

sudo service snap.rocketchat-server.rocketchat-server stop
1 Like

Yes this works
As I didn’t know what snap is, this is a good start to get more familiar with snap apps.
Many thanks
cheers