Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

/bin/sh: 1: barman: not found #8

Open
luzfcb opened this issue Jun 2, 2015 · 1 comment
Open

/bin/sh: 1: barman: not found #8

luzfcb opened this issue Jun 2, 2015 · 1 comment

Comments

@luzfcb
Copy link

luzfcb commented Jun 2, 2015

hello, I am trying to use that role, and I'm having the following problem:

barman@dbslave:/var/log/barman$ cat backup.log 
Tue Jun  2 18:02:01 BRT 2015
/bin/sh: 1: barman: not found


barman@dbslave:/var/log/barman$ barman check solar_db
Server solar:
    ssh: FAILED (return code: 255)
    PostgreSQL: OK
    archive_mode: OK
    archive_command: OK
    directories: OK
    retention policy settings: OK
    backup maximum age: OK (no last_backup_maximum_age provided)
    compression settings: OK
    minimum redundancy requirements: OK (have 0 backups, expected at least 0)


playbook: 
- hosts: all
  sudo: True
  roles:
  - role: modcloth.barman
    barman_backup_schedule: '2 * * * *'
    barman_upstreams:
      - name: "solar_db"
        ssh_user: "db_server_user"
        hostname: "10.60.20.230"

do you have any idea what I'm doing wrong?

@rafecolton
Copy link

The barman executable is probably not in your $PATH. barman is installed with pip ala https://github.com/modcloth/ansible-role-modcloth-barman/blob/master/tasks/main.yml#L68-L69 - you should check your Python/pip setup as the barman user (barman by default). You may also want to use find to locate the executable on your system. Depending on your version of find, the command may look something like this:

sudo find / -type f -name barman -executable 2>/dev/null

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

No branches or pull requests

2 participants