Skip to content
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

Installing Rocket.chat on CentOS7 via Ansible #82

Open
herstell opened this issue May 4, 2018 · 5 comments
Open

Installing Rocket.chat on CentOS7 via Ansible #82

herstell opened this issue May 4, 2018 · 5 comments

Comments

@herstell
Copy link

herstell commented May 4, 2018

Hey Guys,

i try to install rocketchat via ansible on centos7.
After some obscurities with node I come to a new problem, and I dont know a solution.
I installed it via documentation (https://rocket.chat/docs/installation/automation-tools/ansible/)
I defined my server in my inventoryfile... everythings fine with this but after execute
ansible-playbook -i inventory rocket_chat.yml
I get the following error

TASK [RocketChat.Server : Unpack the Rocket.Chat binary tarball] ***************
fatal: [centos1]: FAILED! => {"failed": true, "msg": "ERROR! file or module does not exist: /var/lib/rocket.chat/rocket.chat-latest.tgz"}

PLAY RECAP *********************************************************************
centos1                    : ok=20   changed=0    unreachable=0    failed=1

The file in /var/lib exists

[root@localhost bin]# ls -lhrt /var/lib/rocket.chat/rocket.chat-latest.tgz
-rw-r--r--. 1 rocketchat rocketchat 461 May  4 02:03 /var/lib/rocket.chat/rocket.chat-latest.tgz

Whats my problem with this?

@nanocat-net
Copy link

Hi!

I just ran into this problem too. The role defines a fixed checksum to check the downloaded file against, and if it doesn't match, I was getting this failure.

I suppose this means that rocket.chat-latest.tgz has been re-created (updated) since that checksum was added to the role.

While I can't recommend that you do this, I worked around this on my development server by modifying the checksum defined in RocketChat.Server/defaults/main.yml to match the checksum reported by ansible (I think I needed to add -vv to my ansible command line to see enough details, including the "valid" and "invalid" checksums).

I would say that a better pinning workflow needs to be used by the maintainers of this ansible role! Otherwise people are going to start doing dirty checksum hacks on production systems ^^

HTH
N

@aoyawale
Copy link

aoyawale commented Jun 3, 2018

yes, you need to add the checksum since It has been a while and has changed. I been trying to submit PR's to fix a lot of stuff that needs but, it looks like the maintainers are not around.

@Lawri-van-Buel
Copy link

While i did not test it on centos check out my pull request for a new role.

#84

It checks for the cryptographically signature instead of the hash.
Also it gives you the capability to change the mongodb url. (Like add ssl or use a cluster)

@xenithorb
Copy link
Collaborator

xenithorb commented Jun 4, 2018

I'm around, I just haven't had time to work on it with starting new employment. Most of the work and bug fixes people are complaining about are located on this branch: https://github.com/RocketChat/Rocket.Chat.Ansible/commits/v3.1.0_updates and it's my fault for not getting it out sooner. I just need to sit down review some things and merge it, honestly.

@aoyawale
Copy link

aoyawale commented Jun 7, 2018

@xenithorb let us know when you do so we can help further :) some of us are actively trying to make it better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants