palkan / sharelatex-vagrant-ansible

Vagrant + Ansible configuration for ShareLatex
12 stars 2 forks source link

'origin' does not appear to be a git repository #1

Closed saludes closed 10 years ago

saludes commented 10 years ago

for me vagrant provision ends with

ASK: [sharelatex | Git Checkout ShareLatex master] ***************************
failed: [192.168.51.111] => {"cmd": ["/usr/bin/git", "ls-remote", "origin", "-h", "refs/heads/master"], "failed": true, "item": "", "rc": 128}
stderr: fatal: 'origin' does not appear to be a git repository
palkan commented 10 years ago
  1. Which version of ansible? (try latest, 1.4.4)
  2. Please provide full verbosed log (add ansible.verbose = 'vvv' to Vagrantfile)
saludes commented 10 years ago

It is ansible 1.5.2. Attached the final (failed) task:

TASK: [sharelatex | Git Checkout ShareLatex master] ***************************
<192.168.51.111> ESTABLISH CONNECTION FOR USER: vagrant
<192.168.51.111> REMOTE_MODULE git repo=https://github.com/sharelatex/sharelatex.git dest=/webapps/sharelatex version=master
<192.168.51.111> EXEC ['ssh', '-C', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/saludes/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'IdentityFile=/Users/saludes/.vagrant.d/insecure_private_key', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.51.111', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719 && echo $HOME/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719'"]
<192.168.51.111> PUT /var/folders/c7/h0y17v8w8xj8_l0059_zh8080000gn/T/tmpSm_f0W TO /home/vagrant/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719/git
<192.168.51.111> EXEC ['ssh', '-C', '-tt', '-q', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/Users/saludes/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'IdentityFile=/Users/saludes/.vagrant.d/insecure_private_key', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=vagrant', '-o', 'ConnectTimeout=10', '192.168.51.111', '/bin/sh -c \'sudo -k && sudo -H -S -p "[sudo via ansible, key=sjerdinkwauyrsbzgyirzivqsqicsfpf] password: " -u root /bin/sh -c \'"\'"\'echo SUDO-SUCCESS-sjerdinkwauyrsbzgyirzivqsqicsfpf; /usr/bin/python /home/vagrant/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719/git; rm -rf /home/vagrant/.ansible/tmp/ansible-tmp-1394707415.83-5033275448719/ >/dev/null 2>&1\'"\'"\'\'']
failed: [192.168.51.111] => {"cmd": ["/usr/bin/git", "ls-remote", "origin", "-h", "refs/heads/master"], "failed": true, "item": "", "rc": 128}
stderr: fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
palkan commented 10 years ago

Ansible 1.5.2 failed due to version=master (don't know why). Fixed.