Description
Server Setup Information
-
Version of Rocket.Chat Server: 3.0.4
-
Operating System: Debian 9 Stretch (5.3.18-1-pve)
-
Deployment Method: tar
-
Number of Running Instances: 1
-
DB Replicaset Oplog: (how do I find this ? )
-
NodeJS Version: v13.11.0
-
MongoDB Version: 4.0.16
-
Proxy: apache2
-
Firewalls involved: IPtables
Hello world ! I am new here, simply trying to get a server organised for our extended family / club of friends, to get through this ‘lockdown’ in Western Europe. I thought it would be nice to have our own (encrypted) video chat server, to maintain social contact
I installed node + Rocket.chat by following this guide: https://www.vultr.com/docs/how-to-install-rocket-chat-on-debian-9
After that I (tried to) set up the proxy, by making use of the apache2 instance already running on our server by following this page: https://rocket.chat/docs/installation/manual-installation/configuring-ssl-reverse-proxy/
I do not have nginx installed, so I changed the line in /etc/systemd/system/rocketchat.service from
After=network.target remote-fs.target nss-lookup.target mongod.target nginx.target
to
After=network.target remote-fs.target nss-lookup.target mongod.target apache2.target
When I start the Rocket.chat server by issuing the command ‘systemctl start rocketchat’, I do not get any errors. All seems to be well when I ‘systemctl sttus rocketchat’.
I cannot connect to the server in a browser afterwards: ‘connection timed out’.
I did discover some information in syslog:
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on #, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on Remove, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on or, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on Replace, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on nginx, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on with, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on your, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:4] Failed to add dependency on proxy, ignoring: Invalid argument
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:8] Failed to parse service restart specifier, ignoring: always # When is set to always, the service will be restarted in any case (hit a timeout, got terminated)
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:9] Failed to parse sec value, ignoring: 15 # If node service crashes, restart the service after 15 seconds
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:10] Failed to parse output specifier, ignoring: syslog # Output to syslog
Mar 17 21:18:17 trapper systemd[1]: [/etc/systemd/system/rocketchat.service:11] Failed to parse output specifier, ignoring: syslog # Output to syslog
I also noticed troubles with this ‘meteor’-thing (which I have never used before, tbh), while trying to check if mongo was running ok:
mongo mongo/meteor --eval “rs.initiate({ _id: ‘‘rs0’’, members: [ { _id: 0, host: ‘‘mongo:27017’’ } ]})”
MongoDB shell version v4.0.16
connecting to: mongodb://mongo:27017/meteor?gssapiServiceName=mongodb
2020-03-17T22:38:06.529+0100 E QUERY [js] Error: couldn’t connect to server mongo:27017, connection attempt failed: SocketException: Error connecting to mongo:27017 (134.x.x.5:27017) :: caused by :: Connection timed out :
connect@src/mongo/shell/mongo.js:344:17
@(connect):2:6
exception: connect failed
It seems like mongo wants to connect to ‘localhost’, but somehow this is resolved to an external IP. My /etc/hosts looks like this:
127.0.0.1 localhost.localnet localhost
::1 localhost.localnet localhost
I have been looking into this for several hours now and I am ready to abandon my project. As a last resort I turn to the Community here, for help
Thanks in advance for your time !
D
Any additional Information
Not atm, but please ask me for more !