-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocket.Chat isn't registered with PM2 #1
Comments
Hey @jeansnkicks - thanks for raising this issue 👍 This isn't a very good solution and I plan to handle the "error" properly. On a side note: you should re-install this role from Galaxy using the name 'RocketChat.Server' as it moved over to the official RocketChat Github namespace, the same goes for your Thanks for using this and bringing it to my attention! You'll hear from me soon when I've decided how I'm going to handle this in a more graceful manner. |
@jeansnkicks: Well, c549084 should fix this - I just opted to us Make sure you grab the role from Galaxy as 'RocketChat.Server'. I've tested and it works for me, could you let me know how it goes for you? |
To add to this: I've decided I'm going to support the native service management systems of the supported platforms for this role, rather than using PM2, so, soon you'll be able to handle Rocket.Chat like any other services running on your system(s) :) |
Makes sense about PM2. I reset the VM and re-ran using the new role. Success, except for a checksum issue with the rocket.chat master package sitting on S3. And for some reason, rocket.chat had to be started (via PM2 restart) - meteor was complaining about the node version, except, it was the correct version. Manual update for checksum fixed the role issue. Restart fixed the meteor issue. Any reason why you're pulling the package from S3 there and not from github sources? |
@jeansnkicks Yeah, I've literally just updated the hashsum for the master tarball. That's a bit concerning about having to start Rocket.Chat manually via PM2... I do continuous testing with my changes, on completely fresh systems to ensure no regression has been introduced, I don't seem to run into this issue. I don't suppose you have the output of the Ansible run? Or if you could try doing a run through of the playbook on a completely fresh system? |
@cmacrae LOL, re: hashsum. I've got a clean snapshot of the CentOS 7 VM for just this reason. I'll reinstall the role from scratch, run the role again and report back. |
The hash sum even changed again since my comment on it! Must be some anomalies going on with the stable binary deployment, haha. So, you'll need to make sure you have the latest code again - I wish the Galaxy cli tool had an update/pull feature... About the re-deployment; nice one. I appreciate it! |
OK, nuts. Moving backwards somehow. Ansible rough output, yml file. No error from PM2, but on the server:
Is empty. And meteor/rocket chat isn't running. I'm still learning ansible, is there a debug file I can pull from somewhere? Or that I can force the creation of, if I re-run it? |
OK, if I force the registration manually:
All is good. I expect I could simply re-run the role and get the same result. Not sure why that step is balking on my image the first time around. |
Hmmm, strange, it seems to skip the startup - I'm just testing this on my CentOS system at the moment, to be sure I didn't introduce any regression with today's commits. Also, I'm going to get started on systemd support tonight, shouldn't take me long at all, so, perhaps that'll be the saving factor :) |
Sounds good. Happy to test. I'm going to work on a vagrant setup for testing to automate the test process. |
Awesome 👍 |
Well, I'm happy to say, I've written the systemd support, and it works great! |
Cool. I'll be on a bit tonight (US Eastern) to test if you post it in the next few hours. |
Phew! That was quite the session! I've tested on CentOS 7, Ubuntu 14.04 & 15.04 - all works great for me. |
You've done a ton of work today! Impressed for sure. So... first pass, something is failed. Meteor/RC isn't loaded. Systemctl reports: rocketchat.service loaded failed failed Rocket.Chat Server Not sure where it got off the rails - /var/www didn't get created. Unless that changed? Something seems pretty off. I'm going to reset and try again. |
Full reset and re-attempt same result. Somehow rc isn't getting installed at all. I'll start digging through the logs. If there is something specific I should pull first let me know. |
Yeah, quite a bit of stuff added/shifted around! Yeah, I moved the With your Ansible runs, are there any failing tasks? |
No failing tasks, which I thought off. Systemctl: rocketchat.service - Rocket.Chat Server journalctl -xn has nothing helpful (success or error). Node --version is reporting it is v0.10.36 which certainly won't make Meteor happy. I'll do some more digging. System clock is also way off, I just noticed, but that's probably unrelated. |
Weird, could you show me the contents of the |
[Unit] [Service] [Install] Where do the Meteor logs dump out? |
It's definitely a node setup issue. From /var/log/messages:
And:
If I try to force nave:
But the node version is stuck on 0.10.36. The step shows "changed" in the Ansible role logs, but something isn't quite right there. |
Alright, nice one for narrowing it down. |
Right, I think I've found the problem! I'll implement a change, test it, then push. |
Right, 2006cfe should fix this! Try it out :) |
Rock and roll! It's fixed! You're the man. I'm closing this issue. |
Eyyyy, good to hear! Thanks for the help with the investigation :) |
Running the playbook against a minimal, clean Centos 7 VM (CentOS Linux release 7.1.1503 (Core)). Everything succeeds (or appears to) except the task:
TASK: [cmacrae.rocket_chat | Register Rocket.Chat service status] *************
failed: [rc-alpha.greensky.local] => {"changed": false, "cmd": "pm2 show rocket.chat", "delta": "0:00:00.205768", "end": "2015-12-14 10:45:43.195818", "rc": 1, "start": "2015-12-14 10:45:42.990050", "stdout_lines": [], "warnings": []}
stderr: [PM2][WARN] rocket.chat doesn't exist
...ignoring
playbook is simple:
hosts: chat_servers
vars:
rocket_chat_automatic_upgrades: True
roles:
I'm new to rocket.chat, so I'm not sure where to start digging to provide additional troubleshooting details.
Rocket.chat is definitely not running (port 3000) on the host, although NGINX is (80/443), mongo is running on 27017.
The text was updated successfully, but these errors were encountered: