git Failed to set a new url

73 views
Skip to first unread message

Zachary Spalding

unread,
Sep 30, 2022, 2:37:49 PM9/30/22
to archivematica
I just setup a Ubuntu 18.04 system and was following the instructions for Archivematica, but I keep hitting these errors.

This one appears when I do the vagrant up command

TASK [artefactual.archivematica-src : Checkout archivematica-storage-service code] ***
fatal: [am-local]: FAILED! => {"changed": false, "cmd": "/usr/bin/git ls-remote origin -h refs/heads/stable/0.19.x", "msg": "fatal: 'origin' does not appear to be a git repository\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.", "rc": 128, "stderr": "fatal: 'origin' does not appear to be a git repository\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n", "stderr_lines": ["fatal: 'origin' does not appear to be a git repository", "fatal: Could not read from remote repository.", "", "Please make sure you have the correct access rights", "and the repository exists."], "stdout": "", "stdout_lines": []}

PLAY RECAP *********************************************************************
am-local                   : ok=128  changed=81   unreachable=0    failed=1    skipped=83   rescued=0    ignored=3  

This second one happens when it do the vagrant provision command
TASK [artefactual.archivematica-src : Checkout archivematica-storage-service code] ***
fatal: [am-local]: FAILED! => {"changed": false, "msg": "Failed to set a new url https://github.com/artefactual/archivematica-storage-service.git for origin:  fatal: detected dubious ownership in repository at '/vagrant/src/archivematica-storage-service'\nTo add an exception for this directory, call:\n\n\tgit config --global --add safe.directory /vagrant/src/archivematica-storage-service\n"}

PLAY RECAP *********************************************************************
am-local                   : ok=115  changed=13   unreachable=0    failed=1    skipped=90   rescued=0    ignored=0  

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Any ideas of what I am missing?
Thanks
Zack
Reply all
Reply to author
Forward
0 new messages