# Uanble to install couchdb using ansible.

**URL:** <https://forum.ansible.com/t/uanble-to-install-couchdb-using-ansible/25688>\
**Category:** Ansible Project\
**Created:** [October 5, 2017, 4:10pm UTC](https://forum.ansible.com/t/uanble-to-install-couchdb-using-ansible/25688 "2017-10-05T16:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete\_omolo](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@pete\_omolo](https://forum.ansible.com/u/pete_omolo)\
**Post date:** [October 5, 2017, 4:10pm UTC](https://forum.ansible.com/t/uanble-to-install-couchdb-using-ansible/25688/1 "2017-10-05T16:10:54Z")

</div>

Hi all,

I’m trying to install couchdb using ansible but it fails mid way. I get the below error

TASK [Stop CouchDB] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [[couchdbXX.XXX.com](http://couchdbXX.XXX.com)]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Could not find the requested service couchdb: host”}  
…ignoring

TASK [Kill CouchDB] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [[couchdbXX.XXX.com](http://couchdbXX.XXX.com)]: FAILED! =\> {“changed”: true, “cmd”: “pkill -9 -u `id -u couchdb`”, “delta”: “0:00:00.002576”, “end”: “2017-10-05 15:40:15.816317”, “failed”: true, “rc”: 1, “start”: “2017-10-05 15:40:15.813741”, “stderr”: “”, “stderr\_lines”: , “stdout”: “”, “stdout\_lines”: }  
…ignoring

TASK [Set the Soft ulimit for CouchDB user] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [[couchdbXX.XXX.com](http://couchdbXX.XXX.com)]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “Shared connection to [couchdbXX.XXX.com](http://couchdbXX.XXX.com) closed.\r\n”, “module\_stdout”: “sudo: unable to resolve host couchdbXX\r\n\r\nTraceback (most recent call last):\r\n File "/tmp/ansible\_nnos08w2/ansible\_module\_pam\_limits.py", line 292, in \r\n main()\r\n File "/tmp/ansible\_nnos08w2/ansible\_module\_pam\_limits.py", line 185, in main\r\n nf.write(line)\r\n File "/usr/lib/python3.5/tempfile.py", line 622, in func\_wrapper\r\n return func(\*args, \*\*kwargs)\r\nTypeError: a bytes-like object is required, not ‘str’\r\n”, “msg”: “MODULE FAILURE”, “rc”: 0}  
to retry, use: --limit @/etc/ansible/playbooks/install-couchdbXX\_.retry

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[couchdbXX.XXX.com](http://couchdbXX.XXX.com) : ok=69 changed=23 unreachable=0 failed=1

Kindly assist
