# junos error

**URL:** <https://forum.ansible.com/t/junos-error/26735>\
**Category:** Ansible Project\
**Created:** [February 14, 2018, 5:44pm UTC](https://forum.ansible.com/t/junos-error/26735 "2018-02-14T17:44:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DOkuwa](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dokuwa/32/1471_2.png) [@DOkuwa](https://forum.ansible.com/u/DOkuwa)\
**Post date:** [February 14, 2018, 5:44pm UTC](https://forum.ansible.com/t/junos-error/26735/1 "2018-02-14T17:44:58Z")

</div>

Hello I am trying to backup config on a juniper router without success  
and getting an error message

ansible@ansible-new:/etc/ansible$ ansible-playbook -i hosts backup\_config-junos-facts.yml --user=ansible --extra-vars “ansible\_sudo\_pass=xxxx”  
PLAY [collect default set of facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.101.250.41]  
TASK [collect default sets of facts and configuration] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: argument must be string or read-only character buffer, not None  
fatal: [10.101.250.41]: FAILED! =\> {“changed”: false, “module\_stderr”: “Traceback (most recent call last):\n File "/tmp/ansible\_vRkO\_Y/ansible\_module\_junos\_facts.py", line 346, in \n main()\n File "/tmp/ansible\_vRkO\_Y/ansible\_module\_junos\_facts.py", line 327, in main\n inst.populate()\n File "/tmp/ansible\_vRkO\_Y/ansible\_module\_junos\_facts.py", line 130, in populate\n reply = self.rpc(‘get-software-information’)\n File "/tmp/ansible\_vRkO\_Y/ansible\_module\_junos\_facts.py", line 118, in rpc\n return send\_request(self.module, Element(rpc))\n File "/tmp/ansible\_vRkO\_Y/ansible\_modlib.zip/ansible/module\_utils/netconf.py", line 42, in send\_request\n File "/tmp/ansible\_vRkO\_Y/ansible\_modlib.zip/ansible/module\_utils/connection.py", line 66, in exec\_command\n File "/usr/lib/python2.7/socket.py", line 228, in meth\n return getattr(self.\_sock,name)(\*args)\nTypeError: argument must be string or read-only character buffer, not None\n”, “module\_stdout”: “”, “msg”: “MODULE FAILURE”, “rc”: 0}  
[WARNING]: Could not create retry file ‘/etc/ansible/backup\_config-junos-  
facts.retry’. [Errno 13] Permission denied: u’/etc/ansible  
/backup\_config-junos-facts.retry’

This is the code
