expfactory / expfactory-vm

a virtual machine to deploy the infrastructure on amazon aws
MIT License
0 stars 0 forks source link

issues with cloning experiments #3

Closed oricon closed 7 years ago

oricon commented 7 years ago

I'm having issues with setting up a AWS VM. On an ubuntu AMI cloning the experiments and generating the batter generate errors. See below:

==> engine: Traceback (most recent call last): ==> engine: File "/home/ubuntu/expfactory-build/expfactory-python/script/download_repos.py", line 12, in ==> engine: ==> engine: custom_battery_download(tmpdir=battery_dest,repos=["experiments","battery","vm"]) ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/vm.py", line 37, in custom_battery_download ==> engine: ==> engine: download_repo(repo,"%s/%s/" %(tmpdir,repo)) ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/vm.py", line 23, in download_repo ==> engine: ==> engine: return Repo.clone_from("https://github.com/expfactory/expfactory-%s" %(repo_type), destination) ==> engine: AttributeError ==> engine: : ==> engine: type object 'Repo' has no attribute 'clone_from' ==> engine: /tmp/vagrant-shell: line 66: /home/ubuntu/expfactory-build/vm/script/createdb.sql: No such file or directory ==> engine: mv: ==> engine: cannot stat '/home/ubuntu/expfactory-build/vm/static/index.html' ==> engine: : No such file or directory ==> engine: Traceback (most recent call last): ==> engine: File "/home/ubuntu/custom_setup_battery.py", line 8, in ==> engine: ==> engine: generate(battery_dest=battery_dest,experiments=experiments,config=config) ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/battery.py", line 141, in generate ==> engine: ==> engine: add_surveys=False) ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/battery.py", line 29, in generate_base ==> engine: ==> engine: tmpdir = custom_battery_download() ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/vm.py", line 37, in custom_battery_download ==> engine: ==> engine: download_repo(repo,"%s/%s/" %(tmpdir,repo)) ==> engine: File "/home/ubuntu/miniconda2/lib/python2.7/site-packages/expfactory-2.5.46-py2.7.egg/expfactory/vm.py", line 23, in download_repo ==> engine: ==> engine: return Repo.clone_from("https://github.com/expfactory/expfactory-%s" %(repo_type), destination) ==> engine: AttributeError ==> engine: : ==> engine: type object 'Repo' has no attribute 'clone_from' ==> engine: Experiment factory battery generation complete! ==> engine: /tmp/vagrant-shell: line 97: cd: /home/ubuntu/expfactory-battery: No such file or directory

vsoch commented 7 years ago

You just need to specify the version of gitpython. See https://github.com/expfactory/expfactory-python/issues/135

oricon commented 7 years ago

Thanks - that solved the clone issues.

There seems to be an error with this line # Replace standard index.html with link to expfactory docs sudo mv $HOME/expfactory-build/vm/static/index.html /var/www/nginx-default/index.html As there is no /var/www/nginx-default/index.html.

There is however, /var/www/html/index.nginx-debian.html, so would that be an appropriate target?

vsoch commented 7 years ago

you got it! It looks like there is a different version of nginx that has a change in file names. Let me know if the change works!

oricon commented 7 years ago

Yes, that seems to have worked. Thanks!

-- Joseph M. Orr, Ph.D. Assistant Professor Department of Psychology & Texas A&M Institute for Neuroscience Texas A&M University College Station, TX

On Sat, Aug 12, 2017 at 1:03 PM, Vanessa Sochat notifications@github.com wrote:

you got it! It looks like there is a different version of nginx that has a change in file names. Let me know if the change works!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_expfactory_expfactory-2Dvm_issues_3-23issuecomment-2D321996623&d=DwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=ZKy1VO33u0kvO-PqY1gpb9Ld-AGhtT8c9PAcpsEyp70&m=5VCrZ_M8NykeThTCHcR-b7G6gVLU66UXm5SQXQT3YE0&s=WZA_yWJSOGl221zrhgWsbk2EMywIW7UxvYBgABOPYSo&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AILZL0nwwzFZXHGkJSFXg8ah1CsMGOeaks5sXejpgaJpZM4O1eO-2D&d=DwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=ZKy1VO33u0kvO-PqY1gpb9Ld-AGhtT8c9PAcpsEyp70&m=5VCrZ_M8NykeThTCHcR-b7G6gVLU66UXm5SQXQT3YE0&s=HyVsa2-99iag-z_8wj4MUY0L5ASbypbTUVMitoAkIkI&e= .

vsoch commented 7 years ago

great! I'm going to close the issue, please re-open / make another if something else comes up!