Devstack installation error on ginkgo.master - Not a git repository (or any parent up to mount..

298 views
Skip to first unread message

Bhaskar rao

unread,
Jul 22, 2018, 12:19:20 AM7/22/18
to General Open edX discussion
Hello,

I was trying to install devstack on my local machine with "ginkgo.master".

I tried twice but both the times, I got the below error and dont know how to fix and continue from there

Can anyone tell me, how to:

1. Fix it
2. Continue installation from here after fixing(or any other way of fixing)


    default: TASK [git_clone : Install read-only ssh key] ***********************************
    default: skipping: [localhost] => (item=(censored due to no_log))
    default:
    default: TASK [git_clone : Check that working tree is clean] ****************************
    default: failed: [localhost] (item=/edx/app/ecommerce/ecommerce) => {"changed": true, "cmd": "test ! -e \"/edx/app/ecommerce/ecommerce\" || git -C \"/edx/app/ecommerce/ecommerce\" status --porcelain --untracked-files=no", "delta": "0:00:00.007893", "end": "2018-07-21 21:28:11.148037", "failed": true, "item": "/edx/app/ecommerce/ecommerce", "rc": 128, "start": "2018-07-21 21:28:11.140144", "stderr": "fatal: Not a git repository (or any parent up to mount point /edx/app/ecommerce)\nStopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).", "stderr_lines": ["fatal: Not a git repository (or any parent up to mount point /edx/app/ecommerce)", "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."], "stdout": "", "stdout_lines": []}
    default:
    default: RUNNING HANDLER [forum : restart the forum service] ****************************
    default:     to retry, use: --limit @/edx/app/edx_ansible/edx_ansible/playbooks/vagrant-devstack.retry
    default:
    default: PLAY RECAP *********************************************************************
    default: localhost                  : ok=215  changed=62   unreachable=0    failed=1  
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: checkout edx-platform repo into /edx/app/edxapp/edx-platform ------------------ 4358.49s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: Take security updates during ansible runs ------------------------------------- 2049.89s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: install node dependencies ----------------------------------------------------- 837.57s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: install python requirements --------------------------------------------------- 325.12s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: compiling all py files in the edx-platform repo ------------------------------- 206.29s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: migrate ------------------------------------------------------------------------ 67.40s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: git checkout forum repo into /edx/app/forum/cs_comments_service ---------------- 57.57s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: install build depends ---------------------------------------------------------- 43.06s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: create nodeenv ----------------------------------------------------------------- 41.29s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing: update rubygems ---------------------------------------------------------------- 19.22s
    default: INFO:/edx/app/edx_ansible/edx_ansible/playbooks/callback_plugins/task_timing:
    default: Playbook Configure instance(s) finished: 2018-07-21 21:28:11.167690, 331 total tasks.  2:18:34.975500 elapsed.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

wajeeha...@arbisoft.com

unread,
Sep 13, 2018, 10:00:32 AM9/13/18
to General Open edX discussion
I am facing same error on `vagrant provision`

wajeeha...@arbisoft.com

unread,
Sep 17, 2018, 10:31:34 AM9/17/18
to General Open edX discussion
@Bhaskar rao 
It seemed like some inconsistency with the setup or network.
Try either destroying machine and resetting it up or upgrade your network speed.

It worked for me; i did reboot my system too before destroying and restarting vagrant machine setup so i am guessing it either freed some memory or network consumption that helped resolving this issue.

Thanks,
Wjia

Umar Asghar

unread,
Oct 15, 2018, 9:52:41 AM10/15/18
to General Open edX discussion
You can follow these steps for it fixing.

- vagrant ssh
- cd /edx/app/ecommerce/ecommerce/
- git init
- git remote set-url origin https://github.com/edx/ecommerce.git

The default setup is making something unexpected and showing that ecommerce is not a GIT repository. SO, what we did first make it a git repository by git init in vagrant /edx/app/ecommerce/ecommerce/ folder and just pull the latest edx ecommerce app code. Then run your normal vagrant provision. This issue will be fixed.

Happy Coding.
 

On Sunday, July 22, 2018 at 9:19:20 AM UTC+5, Bhaskar rao wrote:
Message has been deleted

mudassir...@gmail.com

unread,
Oct 15, 2018, 10:48:37 AM10/15/18
to General Open edX discussion
I think, we just need to set remote in ecommerce app without pulling data. Rest of the part could be done by running "vagrant provision". i did the same and it works.

abdul...@arbisoft.com

unread,
Oct 24, 2018, 4:40:14 AM10/24/18
to General Open edX discussion
I faced the same issue. One of the causes of this issue might be internet inconsistency as @wjia mentioned.
If you're sure your internet is working fine, then try the following on your host:

cd ~/solutions/ecommerce/
git init
git remote add origin https://github.com/edx/ecommerce
git pull

then run ' vagrant provision ' again.

After more than a couple dozen tries after increasing my bandwidth, This solved the issue for me.

Thanks,
Moeez
Reply all
Reply to author
Forward
0 new messages