OpenVidu Pro deployment problem

42 views
Skip to first unread message

Mohammad Reza

unread,
Jan 4, 2020, 1:32:36 AM1/4/20
to OpenVidu

Dear OpenVidu Team


Thank you for your kind co-operations regarding the deployment of OpenVidu Pro. Currently we are stuck in one of the deployment phases. We started the deployment using the online installation manual for openvidu pro on premise installation. We have succeeded in many steps, but we are stuck in the “ ansible -i inventory.yaml -m ping all” step. When we run the command, we get the following error:

 

ERROR! Syntax Error while loading YAML.
  expected '<document start>', but found '<block mapping start>'

The error appears to be in '/home/msj/openvidu-pro-clustering/group_vars/all': line 20, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


openvidu_version: 2.11.0
^ here

 

We have tried many things in “ ./group_vars/all “  for OpenVidu version, including entering the release number with or without quotations, the release URL with and without quotations and we got the same error for all of them. As we had no samples for the OpenVidu version setting and were unable to find it in OpenVidu Server params section , kindly inform us about the phrase we should set in this line.

 

 

Regards

Carlos Ruiz Ballesteros

unread,
Jan 5, 2020, 5:30:29 PM1/5/20
to Mohammad Reza, OpenVidu
Hi Mohammad,

Please, could you attach your group_vars/all file? In this way i can test it.
If not, please, try the following things:
- It seems like there is some strange character in the yaml file. Check that the format of your file
is UTF-8, maybe the editor you're using to edit this file is changing characters or something.
- Check that all parameters have no spaces at the beginning.
- The error is pointing to the line 20 and column 1, the error could be in the "openvidu_pro_password" that is the parameter before this line,
put your password with quotes to ensure that ansible reads this parameter as string.

Best regards,
Carlos

--
You received this message because you are subscribed to the Google Groups "OpenVidu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/335bc439-46f8-4b9c-86fc-0aba869c6f5b%40googlegroups.com.

Mohammad Reza

unread,
Jan 6, 2020, 8:53:53 AM1/6/20
to OpenVidu
Dear Carlos
Thanks for your help. I managed to ping successfully ! Now I have another problem, I started the deployment and after some successful steps, I get the following error:


TASK [file-server : Creating user for kms recordings] *****************************************************************************************
task path: /home/msj/openvidu-pro-clustering/roles/file-server/tasks/main.yml:9
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_htpasswd_payload_bwlrhror/ansible_htpasswd_payload.zip/ansible/modules/web_infrastructure/htpasswd.py", line 105, in <modu        le>
ImportError: No module named 'passlib'

fatal: [media-node-1]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "attributes": null,
            "backup": null,
            "content": null,
            "create": true,
            "crypt_scheme": "apr_md5_crypt",
            "delimiter": null,
            "directory_mode": null,
            "follow": false,
            "force": null,
            "group": "kurento",
            "mode": 416,
            "name": "OPENVIDUAPP",
            "owner": "root",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "path": "/etc/nginx/conf.d/kms.htpasswd",
            "regexp": null,
            "remote_src": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "src": null,
            "state": "present",
            "unsafe_writes": null
        }
    },
    "msg": "Failed to import the required Python library (passlib) on medianode's Python /usr/bin/python3.5. Please read module documentation a        nd install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult         the documentation on ansible_python_interpreter"
}


PLAY RECAP ************************************************************************************************************************************
media-node-1               : ok=14   changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=1


The fact is, I have set the right python interpreter and I have installed passlib module manually on the media node and I am able to see passlib module in python 3.5 installed modules list, but I still get this error. your guidance is highly appreciated.


Kind Regards



در دوشنبه 6 ژانویهٔ 2020، ساعت 2:00:29 (UTC+3:30)، Carlos Ruiz Ballesteros نوشته:
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Carlos Ruiz Ballesteros

unread,
Jan 7, 2020, 3:20:47 AM1/7/20
to Mohammad Reza, OpenVidu
Hello Mohammad,

Which Ubuntu version are you using? It seems to be a common problem with Ansible ( https://github.com/ansible/ansible/issues/28966 )  but I need to check which Ubuntu versions have this problem.

Try to run in your media media nodes and tell me if it works:

sudo apt update && sudo apt install python3-passlib

Best regards,
Carlos


To unsubscribe from this group and stop receiving emails from it, send an email to openvidu+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvidu/a98e8f03-59d6-4300-98f4-4ad04cda55f8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages