Configuration issue with the latest devstack on Windows

2,340 views
Skip to first unread message

Ophir

unread,
Feb 9, 2014, 9:39:27 AM2/9/14
to edx-...@googlegroups.com
Hi,

I want to evaluate the edx and later contribute.
I am working on windows 7 64 bit, and tried to walk through
https://github.com/edx/configuration/wiki/edX-Developer-Stack

The vagrantfile is taken from
https://raw.github.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile
when I try to do vagrant up, I get

Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'focaccia-devstack'...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "C:/Users/Ophir/.vagrant.d/boxes/focaccia-devstack/virtualbox/box.ovf", "--vsys", "0", "--vmname
", "devstack_default_1391112633_1391946834728_88780", "--vsys", "0", "--unit", "10", "--disk", "C:\\Users\\Ophir\\Vi
rtualBox VMs\\devstack_default_1391112633\\box-disk1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting C:\Users\Ophir\.vagrant.d\boxes\focaccia-devstack\virtualbox\box.ovf...
OK.
0%...10%...20%...30%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Could not create the clone medium 'C:\Users\Ido Ophir\VirtualBox VMs\devstack_default_1391112633\
box-disk1.vmdk'.
VBoxManage.exe: error: VMDK: Compressed image is corrupted 'C:\Users\Ido Ophir\.vagrant.d\boxes\focaccia-devstack\virtua
lbox\box-disk1.vmdk' (VERR_ZIP_CORRUPTED)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage.exe: error: Context: "int __cdecl handleImportAppliance(struct HandlerArg *)" at line 779 of file VBoxManageA
ppliance.cpp

I must admit that I am a newbie to vagrant & VM.

Thanks,
Ophir

HanSu Kim

unread,
Feb 19, 2014, 6:04:25 PM2/19/14
to edx-...@googlegroups.com
I've seen some other issues with Windows and vagrant just not playing nicely together for some reason, is this on a fresh install of VirtualBox and Vagrant?  Also a new release called gugelhupf is out, try now and see if you still get issues.

Yarko Tymciurak

unread,
Feb 20, 2014, 12:22:14 AM2/20/14
to edx-...@googlegroups.com

Ophir

unread,
Mar 23, 2014, 1:21:50 AM3/23/14
to edx-...@googlegroups.com

>
> Thanks, for this link however I still can not make it work.
>
> I had some error messages and I installed the latest versions of nodejs and npm to overcome those errors.
> I then came back to this post to check again and I worked through the steps provided in the link but I am still with the same error.
>
> The current status for the devstack is 
> 1) The VM is up 
> 2) I can connect with ssh.
> 3) I can't connect on other ports (e.g 4567), nor can't I see the studio or the main edx screen as I see in the fullstack

I will assume that you know the fullstack runs the servers as services automatically, and - per workflow section description in wiki - devstack does not: you must use some method to start a development server, such as

rake devstack[lms]

> 4) I tried to do vagrant provision and I get 

I'm not sure what is wrong here, but something does not look correct.

For one thing, for devstack you should not have needed to install anything manually.

I suggest you consider starting over:

vagrant destroy
vagrant up

Good luck, and let us know how it goes.

Best regards,
- Yarko


בתאריך יום חמישי, 20 בפברואר 2014 07:22:14 UTC+2, מאת Yarko Tymciurak:

Ophir

unread,
Mar 23, 2014, 1:25:51 AM3/23/14
to edx-...@googlegroups.com
Thanks  Yarko 
 
Per your advise I did
vagrant destroy
vagrant up
 
the result was
 

 Compiling /edx/app/edxapp/edx-platform/scripts/release.py ...
Compiling /edx/app/edxapp/edx-platform/scripts/run_watch_data.py ...
Compiling /edx/app/edxapp/edx-platform/scripts/runone.py ...
Compiling /edx/app/edxapp/edx-platform/setup.py ...
Listing /edx/app/edxapp/edx-platform/test_root ...
Listing /edx/app/edxapp/edx-platform/test_root/data ...
Listing /edx/app/edxapp/edx-platform/test_root/data/video ...
Listing /edx/app/edxapp/edx-platform/test_root/db ...
Listing /edx/app/edxapp/edx-platform/test_root/log ...
Listing /edx/app/edxapp/edx-platform/test_root/uploads ...
Listing /edx/app/edxapp/edx-platform/ws_migrations ...

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************

           to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=24   changed=14   unreachable=0    failed=1

 

Stderr from the command:

stdin: is not a tty

 
 
 
 
 
 
 

בתאריך יום ראשון, 23 במרץ 2014 07:21:50 UTC+2, מאת Ophir:

Yarko Tymciurak

unread,
Mar 23, 2014, 2:11:09 AM3/23/14
to Ophir, edx-...@googlegroups.com

If there are network delays or timeouts, this can happen.

Simply retry.

If 'vagrant status' shows running, then try 'vagrant provision', otherwise I believe 'vagrant up --provision' should do it.

Ido Ophir

unread,
Mar 23, 2014, 4:48:02 AM3/23/14
to Yarko Tymciurak, edx-...@googlegroups.com
Thanks again, however still it does not work for me

Here is what I tried

1) I switched to another host computer.
2) I run the git command in cygwin64, according to

      https://github.com/edx/configuration/wiki/Vagrant-troubleshooting#dealing-with-line-endings-and-symlinks-under-windows

      To type the commands, go to the root edx-platform folder and enter:

         # You need to run this from cygwin, not the Windows command-line (see above)
         git rm --cached -r . && git reset --hard
         git config --global alias.add-symlink '!__git_add_symlink(){ dst=$(echo "$2")/../$(echo "$1"); if [ -e "$dst" ]; then hash=$(echo "$1" | git hash-object -w --stdin); git update-index --add --cacheinfo 120000 "$hash" "$2"; git checkout -- "$2"; else echo "ERROR: Target $dst does not exist!"; echo "       Not creating invalid symlink."; fi; }; __git_add_symlink "$1" "$2"'
         git config --global alias.rm-symlink '!__git_rm_symlink(){ git checkout -- "$1"; link=$(echo "$1"); POS=$'\''/'\''; DOS=$'\''\\\\'\''; doslink=${link//$POS/$DOS}; dest=$(dirname "$link")/$(cat "$link"); dosdest=${dest//$POS/$DOS}; if [ -f "$dest" ]; then rm -f "$link"; cmd //C mklink //H "$doslink" "$dosdest"; elif [ -d "$dest" ]; then rm -f "$link"; cmd //C mklink //J "$doslink" "$dosdest"; else echo "ERROR: Something went wrong when processing $1 . . ."; echo "       $dest may not actually exist as a valid target."; fi; }; __git_rm_symlink "$1"'
         git config --global alias.rm-symlinks '!__git_rm_symlinks(){ for symlink in `git ls-files -s | grep -E "^120000" | cut -f2`; do git rm-symlink "$symlink"; git update-index --assume-unchanged "$symlink"; done; }; __git_rm_symlinks'
         git config --global alias.checkout-symlinks '!__git_checkout_symlinks(){ POS=$'\''/'\''; DOS=$'\''\\\\'\''; for symlink in `git ls-files -s | grep -E "^120000" | cut -f2`; do git update-index --no-assume-unchanged "$symlink"; if [ -d "$symlink" ]; then dossymlink=${symlink//$POS/$DOS}; cmd //C rmdir //S //Q "$dossymlink"; fi; git  checkout -- "$symlink"; echo "Restored git symlink $symlink <<===>> `cat $symlink`"; done; }; __git_checkout_symlinks'
         git rm-symlinks

  after the last command (git rm-symlinks) the prompt changed to windows prompt. (??)

$ git rm-symlinks
cat: cms/static/coffee/fixtures: Is a directory
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Ophir\Documents\edxnew\devstack\edx-platform>


3) I tried vagrant up  
...
TASK: [edxapp | writing supervisor script] ***********************************
failed: [localhost] => (item=lms) => {"failed": true, "item": "lms"}
msg: Destination directory /edx/app/supervisor/conf.available.d does not exist
failed: [localhost] => (item=cms) => {"failed": true, "item": "cms"}
msg: Destination directory /edx/app/supervisor/conf.available.d does not exist


FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=30   changed=20   unreachable=0    failed=1




Stderr from the command:

stdin: is not a tty

4) ok, I checked status - running so I tried vagrant provision

...
TASK: [edxapp | Install edx-platform npm dependencies] ************************
failed: [localhost] => {"changed": true, "cmd": "npm install ", "delta": "0:00:01.502748", "end": "2014-03-23 07:32:17.0
46578", "item": "", "rc": 1, "start": "2014-03-23 07:32:15.543830"}
stderr: npm http GET http://registry.npmjs.org/coffee-script
npm http 304 http://registry.npmjs.org/coffee-script
npm ERR! error installing coffee...@1.6.1

npm ERR! Error: ENOENT, no such file or directory '/edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/cake'
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /edx/app/edxapp/edx-platform/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /edx/app/edxapp/edx-platform
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! path /edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/cake
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/cake'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /edx/app/edxapp/edx-platform/npm-debug.log
npm not ok


FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=17   changed=6    unreachable=0    failed=1




Stderr from the command:

stdin: is not a tty

5) ohoho, this is the exact error that I had (on a different host computer), before I manually installed in the guest the latest versions of npm nodejs and coffe-script (1.6.3).
You actually advised me not to install manually, so I am back to square zero.  :-(

6) So I tried again the 
dealing-with-line-endings-and-symlinks-under-windows

7) and again vagrant provision

TASK: [edxapp | writing supervisor script] ***********************************
failed: [localhost] => (item=lms) => {"failed": true, "item": "lms"}
msg: Destination directory /edx/app/supervisor/conf.available.d does not exist
failed: [localhost] => (item=cms) => {"failed": true, "item": "cms"}
msg: Destination directory /edx/app/supervisor/conf.available.d does not exist


FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=27   changed=12   unreachable=0    failed=1




Stderr from the command:

stdin: is not a tty

8)  again vagrant provision (without dealing with the symlinks) and got the npm ERR! error installing coffee...@1.6.1, retried and got the same result as 
step 7


Any ideas?

Anyway I took the other advise in the 
dealing-with-line-endings-and-symlinks-under-windows and installed  mitxvm-edx-platform-02sep13a.box
and it is working indeed.

I will start playing with MIT version till I will manage to set the edx version.

Thanks,
Ophir











 



Paul-Olivier Dehaye

unread,
Mar 23, 2014, 6:18:08 PM3/23/14
to edx-...@googlegroups.com
hi Ophir
some of the errors you are seeing with supervisor have nothing to do with windows. i have them on my mac as well, when i try to install the devstack. in fact the devstack has been broken for almost a week now, and I have filed a ticket.
Paul

HanSu Kim

unread,
Mar 24, 2014, 11:35:59 AM3/24/14
to edx-...@googlegroups.com
Hi Paul and Ophir,

the NPM errors were fixed recently as noted in that issues comments.  You can try to do within the VM itself an sudo /edx/bin/update configuration master but you maybe better off doing a complete start from scratch vagrant destroy vagrant up

Paul-Olivier Dehaye

unread,
Mar 24, 2014, 11:49:33 AM3/24/14
to HanSu Kim, edx-...@googlegroups.com
Yes, it works fir me now, from scratch

Ophir

unread,
Mar 25, 2014, 1:27:12 PM3/25/14
to edx-...@googlegroups.com, HanSu Kim
tried from scratch
what I get is
vagrant up
...
TASK: [edxapp | install python post-post requirements] ************************
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/repo.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/github.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx/local.txt)

TASK: [edxapp | install sandbox requirements into regular venv] ***************
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/base.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
changed: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)

TASK: [edxapp | code sandbox | put sandbox apparmor profile in complain mode] ***
skipping: [localhost]

TASK: [edxapp | code sandbox | Install base sandbox requirements and create sandbox virtualenv] ***
skipping: [localhost]

TASK: [edxapp | code sandbox | Install sandbox requirements into sandbox venv] ***
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/local.txt)
skipping: [localhost] => (item=/edx/app/edxapp/edx-platform/requirements/edx-sandbox/post.txt)

TASK: [edxapp | code sandbox | put code sandbox into aa-enforce or aa-complain mode, depending on EDXAPP_SANDBOX_ENFORCE
] ***
skipping: [localhost]

TASK: [edxapp | compiling all py files in the edx-platform repo] **************
failed: [localhost] => {"changed": true, "cmd": "/edx/app/edxapp/venvs/edxapp/bin/python -m compileall /edx/app/edxapp/e
dx-platform ", "delta": "0:00:28.950727", "end": "2014-03-25 17:13:35.961246", "item": "", "rc": 1, "start": "2014-03-25
 17:13:07.010519"}
stdout: Listing /edx/app/edxapp/edx-platform ...
Listing /edx/app/edxapp/edx-platform/.bundle ...
Listing /edx/app/edxapp/edx-platform/.git ...
Listing /edx/app/edxapp/edx-platform/.git/branches ...
Listing /edx/app/edxapp/edx-platform/.git/hooks ...
Listing /edx/app/edxapp/edx-platform/.git/info ...
 ...

...
 
Listing /edx/app/edxapp/edx-platform/scripts ...

Compiling /edx/app/edxapp/edx-platform/scripts/release.py ...
Compiling /edx/app/edxapp/edx-platform/scripts/run_watch_data.py ...
Compiling /edx/app/edxapp/edx-platform/scripts/runone.py ...
Compiling /edx/app/edxapp/edx-platform/setup.py ...
Listing /edx/app/edxapp/edx-platform/test_root ...
Listing /edx/app/edxapp/edx-platform/test_root/data ...
Listing /edx/app/edxapp/edx-platform/test_root/data/video ...
Listing /edx/app/edxapp/edx-platform/test_root/db ...
Listing /edx/app/edxapp/edx-platform/test_root/log ...
Listing /edx/app/edxapp/edx-platform/test_root/uploads ...
Listing /edx/app/edxapp/edx-platform/ws_migrations ...

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=25   changed=14   unreachable=0    failed=1




Stderr from the command:

stdin: is not a tty

HanSu Kim

unread,
Mar 25, 2014, 2:41:36 PM3/25/14
to edx-...@googlegroups.com, HanSu Kim
Although this is not the recommended way to get devstack working on a machine, I'm curious to see if this may work for you.

1)  Do a clone of the edx Configuration repo - git clone https://github.com/edx/configuration.git
2)  Do a vagrant up from the ./vagrant/base/devstack directory

This takes a vanilla Ubuntu Precise 64 Vagrant image, and then installs edX from scratch using ./playbooks/vagrant-devstack.yml as it's guide. 

It can potentially take a long time.  It may even fail from time to time.  If it does, you need to do a vagrant halt, and then do a vagrant up and vagrant provision and let it try to run again. 

We don't use Windows often at edX, but I'm testing this right now to see what the results with the current codebase.

Ido Ophir

unread,
Mar 27, 2014, 6:14:56 AM3/27/14
to HanSu Kim, edx-...@googlegroups.com
HanSu,

1) thanks for your help,
2) it does not work see the error below

C:\Users\Ophir\Documents\GitHub\configuration\vagrant\base\devstack>vagrant up

Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'precise64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading box from URL: http://files.vagrantup.com/precise64.box
Extracting box...ate: 674k/s, Estimated time remaining: --:--:--)
Successfully added box 'precise64' with provider 'virtualbox'!
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 8000 => 8000 (adapter 1)
[default] -- 8001 => 8001 (adapter 1)
[default] -- 4567 => 4567 (adapter 1)
[default] Running 'pre-boot' VM customizations...
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
DL is deprecated, please use Fiddle
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
prevent things such as shared folders from working properly. If you see
shared folder errors, please make sure the guest additions within the
virtual machine match the version of VirtualBox you have installed on
your host and reload your VM.

Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] -- /edx/app/ora/ora
[default] -- /edx/app/edxapp/edx-platform
[default] -- /edx/app/forum/cs_comments_service
[default] Running provisioner: ansible...
The executable 'ansible-playbook' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.


Regards,

Center for Workforce Development

unread,
May 30, 2014, 3:09:01 PM5/30/14
to edx-...@googlegroups.com, yar...@gmail.com
I'm having the same problem.

TASK: [edxapp | Install edx-platform npm dependencies] ************************
failed: [localhost] => {"changed": true, "cmd": "npm install ", "delta": "0:00:01.514627", "end": "2014-05-30 19:01:39.863992", "item": "", "rc": 1, "start": "2014-05-30 19:01:38.349365"}
npm ERR! error installing coffee...@1.6.1

npm ERR! Error: ENOENT, no such file or directory '/edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/coffee'
npm ERR! You may report this log at:
npm ERR! or use
npm ERR!     reportbug --attach /edx/app/edxapp/edx-platform/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /edx/app/edxapp/edx-platform
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! path /edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/coffee
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory '/edx/app/edxapp/edx-platform/node_modules/coffee-script/bin/coffee'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /edx/app/edxapp/edx-platform/npm-debug.log
npm not ok

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=133  changed=25   unreachable=0    failed=1


Can anyone help out with this.  I successfully ran the https://github.com/edx/configuration/wiki/Vagrant-troubleshooting#dealing-with-line-endings-and-symlinks-under-windows and the Junctions and Hardlink were created successfully:

Center for Workforce Development

unread,
May 30, 2014, 4:50:00 PM5/30/14
to edx-...@googlegroups.com, yar...@gmail.com

I got rid of the coffee-script error that I showed you earlier https://www.dropbox.com/s/o1xftmdefgmvxch/2014-05-30_8-57-40%20-%20devstack%20%28Windows%2064%20errror%29.jpg by not executing the https://github.com/edx/configuration/wiki/Vagrant-troubleshooting#dealing-with-line-endings-and-symlinks-under-windows in the cygwin terminal.  I used the git version in SourceTree instead and that actually created the Junctions and Hardlinks for Windows symlinks FYI.

Damon Regan

unread,
Jun 27, 2014, 3:53:07 PM6/27/14
to edx-...@googlegroups.com, yar...@gmail.com
Hi Center for Workforce Development,

I'm trying to get past the errors on windows that seem to be related to the symlinks.  I'm trying to follow your guidance on using SourceTree to deal with Junctions and Hardlinks for Windows symlinks, but am not having luck getting past the error.  Can you elaborate on the steps you took?

I tried removing the edxapp directory from the devstack directory.

I forked the edx-platform repo.  

Cloned my fork using SourceTree.

I ran vagrant up and vagrant ssh in windows command prompt.

sudo su edxapp and then ran paver devstack lms, but am still getting errors like the following:

IOError: [Errno 20] Not a directory: '/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/js/com
mon_static/js/vendor/draggabilly.pkgd.js'

Which I assume are because of the symbolic links not being handled correctly.

I tried cygwin and the Git aliases, but that only resulted in Protocol Errors for these same files instead of Not a directory errors.  Hoping SourceTree can deal with the issue and that my sequence is just not using it correctly.

Best Regards,
Damon

Yarko Tymciurak

unread,
Jun 27, 2014, 5:26:36 PM6/27/14
to Damon Regan, edx-...@googlegroups.com
see the latest note (with this afternoon's johnnycake release, I think) in https://github.com/edx/configuration/wiki/edX-Developer-Stack about VBOXFS - perhaps that will help you.

Damon Regan

unread,
Jun 30, 2014, 6:03:32 PM6/30/14
to edx-...@googlegroups.com, damon...@gmail.com
Thanks Yarko for pointing out the VBOXFS updates on the wiki.  Unfortunately, setting the VAGRANT_USE_VBOXFS = true didn't seem to change much.

I tried destroying the vagrant environment and recreating it with the environment variable set, but the issue remains.

I also tried re-running the git rm-symlinks using Cygwin and then bringing up the vagrant machine.  No luck either.

Finally, I noticed this line about the VBoxService's not matching after running vagrant up:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   4.2.0
VBoxService inside the vm claims: 4.3.10
Going on, assuming VBoxService is correct...
GuestAdditions versions on your host (4.3.12) and guest (4.3.10) do not match.
stdin: is not a tty
...
An error occurred during installation of VirtualBox Guest Additions 4.3.12. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty

Any suggestions for what else to try would be greatly appreciated.

Best Regards,
Damon

Han Su Kim

unread,
Jun 30, 2014, 9:09:46 PM6/30/14
to edx-...@googlegroups.com, damon...@gmail.com
Sounds like a silly question but are you using the new Vagrantfile which introduces the new logic about environment variables?  


Make sure you are setting the environment variable using the set command in Windows for an example see 

signature.asc

Damon Regan

unread,
Jul 1, 2014, 12:34:59 PM7/1/14
to edx-...@googlegroups.com
Thank you for your reply Han.  I greatly appreciate your release of johnnycake with VBOXFS in consideration of windows users like me.

Indeed, I hadn't updated the vagrant file -- I felt foolish.  Thank you for the question.  Unfortunately, after updating the vagrant file to use the johnnycake release, I still encounter errors.  Yes, I can see the environment variable is set in the command prompt.  A full trace is here:


I'm a newb to vagrant, virtualbox, and edx, but am eager to learn more.  I greatly appreciate your consideration in enabling windows folks to work with the devstack.

Best Regards,
Damon

Han Su Kim

unread,
Jul 1, 2014, 2:27:40 PM7/1/14
to edx-...@googlegroups.com
Symlinks and Windows can be difficult, can you try the fix listed here?

signature.asc

Damon Regan

unread,
Jul 10, 2014, 12:00:57 PM7/10/14
to edx-...@googlegroups.com
Thank you for the reference Han.  I tried to follow the guidance in issue 659.  One step that is unclear is the need to run the commands in Cygwin before running vagrant up.  The edx-platform directory doesn't exist until after vagrant up is called, yet this directory is the target of the commands in the Cygwin terminal.

Here are the steps I took and the error I received:

1.  Created and logged in as new local, non-administrator windows user account.

2.  Used secpol.msc to authorize symlinks creation for local, non-administrator user.

3.  Rebooted.

4.  Created devstack directory and downloaded johnnycake-devstack Vagrantfile.

5.  Cloned the https://github.com/edx/edx-platform repository using Atlassian SourceTree into devstack directory.


7.  Ran command prompt in devstack directory.  

8.  Set VAGRANT_USE_VBOXFS = true.  

9.  Ran vagrant up with johnnycake-devstack.

Encountered error below:

TASK: [edxapp | syncdb and migrate] *******************************************

failed: [localhost] => {"changed": true, "cmd": " /edx/app/edxapp/venvs/edxapp/b
in/python manage.py lms syncdb --migrate --noinput --settings=aws_migrate ", "de
lta": "0:00:12.264276", "end": "2014-07-10 15:43:45.055488", "item": "", "rc": 1
, "start": "2014-07-10 15:43:32.791212"}
stderr: 2014-07-10 11:43:39,611 INFO 3108 [dd.dogapi] dog_stats_api.py:66 - Init
ializing dog api to use statsd: localhost, 8125
Traceback (most recent call last):
  File "manage.py", line 95, in <module>
    execute_from_command_line([sys.argv[0]] + django_args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/man
agement/commands/syncdb.py", line 99, in handle_noargs
    management.call_command('migrate', **options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/__init__.py", line 150, in call_command
    return klass.execute(*args, **defaults)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/co
re/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/man
agement/commands/migrate.py", line 108, in handle
    ignore_ghosts = ignore_ghosts,
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/__init__.py", line 166, in migrate_app
    Migrations.calculate_dependencies()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 228, in calculate_dependencies
    migration.calculate_dependencies()
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 362, in calculate_dependencies
    for migration in self._get_dependency_objects("depends_on"):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 342, in _get_dependency_objects
    for app, name in getattr(self.migration_class(), attrname, []):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 314, in migration_class
    return self.migration().Migration
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/uti
ls/__init__.py", line 62, in method
    value = function(self)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 305, in migration
    raise exceptions.BrokenMigration(self, sys.exc_info())
south.exceptions.BrokenMigration: While loading migration 'student:0036_access_r
oles_orgless':
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/south/mig
ration/base.py", line 301, in migration
    migration = __import__(full_name, {}, {}, ['Migration'])
  File "/edx/app/edxapp/edx-platform/common/djangoapps/student/migrations/0036_a
ccess_roles_orgless.py", line 11, in <module>
    from xmodule.modulestore.mixed import MixedModuleStore
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixe
d.py", line 19, in <module>
    from xmodule.modulestore.mongo.base import MongoModuleStore
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mong
o/__init__.py", line 5, in <module>
    from xmodule.modulestore.mongo.base import MongoModuleStore, MongoKeyValueSt
ore
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mong
o/base.py", line 31, in <module>
    from xmodule.html_module import AboutDescriptor
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/html_module.py",
 line 54, in <module>
    class HtmlModule(HtmlFields, XModule):
  File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/html_module.py",
 line 63, in HtmlModule
    resource_string(__name__, 'js/common_static/js/vendor/draggabilly.pkgd.js'),

  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resou
rces.py", line 928, in resource_string
    self, resource_name
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resou
rces.py", line 1226, in get_resource_string
    return self._get(self._fn(self.module_path, resource_name))
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resou
rces.py", line 1353, in _get
    stream = open(path, 'rb')
IOError: [Errno 71] Protocol error: '/edx/app/edxapp/edx-platform/common/lib/xmo
dule/xmodule/js/common_static/js/vendor/draggabilly.pkgd.js'
stdout: Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Migrating...

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************

           to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=46   changed=15   unreachable=0    failed=1



Stderr from the command:

stdin: is not a tty
 [WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.

Best Regards,
Damon

Jorge Alvarado

unread,
Jul 12, 2014, 1:19:56 AM7/12/14
to edx-...@googlegroups.com
Hi, 

I'm testing edx-platform in the Windows 8 platform - 64 bit, at the beginning I had several problems similar to 

  FATAL: all hosts Already have failed - aborting 

RECAP PLAY ************************************************ ******************** 

            to retry, use: - limit @ / root / vagrant-devstack.retry 

localhost: ok changed = 15 = 46 = unreachable 0 failed = 1 

But after several attempts, observe that the problem was generated with Vagrant version 1.5.4, 1.6, etc. That is all it has worked just fine using version 1.5.3 as recommended https://github.com/edx/configuration/wiki/edX-Developer-Stack not > 1.5.3 

Earlier in the command window, run a git init and then the "Dealing with line endings and symlinks under Windows" script. After following the instructions I all went well in the Windows environment. 

best regards, 

Jorge Alvarado

On Sunday, February 9, 2014 9:39:27 AM UTC-5, Ophir wrote:

Riitta Hietaranta

unread,
Jul 14, 2014, 2:47:40 AM7/14/14
to edx-...@googlegroups.com
Hey,

I've tried setting up devstack on windows 8 using Vagrant several times now and I always hit the same error:

TASK: [edxapp | Install edx-platform npm dependencies] ************************
failed: [localhost] => {"changed": true, "cmd": "npm install ", "delta": "0:00:02.909869", "end": "2014-07-14 06:39:55.408855", "item": "", "rc": 1, "start": "2014-07-14 06:39:52.498986"}

stderr: npm http GET http://registry.npmjs.org/coffee-script
npm http 200 http://registry.npmjs.org/coffee-script
npm ERR! error installing coffee...@1.6.1

npm ERR! Error: UNKNOWN, unknown error '../coffee-script/bin/cake'

npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /edx/app/edxapp/edx-platform/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-23-generic
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /edx/app/edxapp/edx-platform
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! path ../coffee-script/bin/cake
npm ERR! code UNKNOWN
npm ERR! message UNKNOWN, unknown error '../coffee-script/bin/cake'

npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /edx/app/edxapp/edx-platform/npm-debug.log
npm not ok

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/vagrant-devstack.retry

localhost                  : ok=20   changed=7    unreachable=0    failed=1


Stderr from the command:

stdin: is not a tty
 [WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.


Has anyone found a fix for this? I'm using Vagrant 1.5.3, I've done the symlink fixes and I got a local non-admin account.

Jorge Alvarado

unread,
Jul 14, 2014, 6:29:56 PM7/14/14
to edx-...@googlegroups.com
Hello, you may need to use an administrator user and also try to install npm & node from the vagrant user. 

See this link: 


regards, 

Jorge.

Marcus Nunn

unread,
Oct 22, 2014, 7:25:02 PM10/22/14
to edx-...@googlegroups.com
I ran into this same problem. My solution was pretty straight forward.  It's Oct. 2014 now, and I'm using the latest Vagrant.  To overcome this error I had to open a CLI (cmd) with "run as administrator".  Thats right click the CMD program/icon and choose "Run as Administrator".  This is necessary to allow Vagrant to create teh symlinks.  BEFORE running Vagrant set:  VAGRANT_USE_VBOXFS=true.  Thats:

  C:>  set VAGRANT_USE_VBOXFS=true

You'll need this since Windows 8+ does not have the NFS client available unless you have the enterprise version available, so you have to instruction Vagrant to not use NFS; hence the environment variable.

Once I got past this coffee-script issue (Node.js) I ran into a Python install problem.  This you can get over using the instructions at: 

  • TEMPORARY FIX: You may get an error in provisioning: The following required packages can not be built: freetype. To fix this:

    vagrant ssh
    sudo apt-get install libfreetype6-dev
    exit
    vagrant reload --provision
This got me to the point of the sandbox install.  I'm still waiting on Vagrant to finish installing edx, so I can't say if this is all you need to do.  Also, I have CygWin installed with it's binaries in my Windows path (maybe this is important).  

I hope this gets anyone seeing this a bit more unstuck.  

BTW, the Vagrant edx install takes FOREVER!!  20 minutes and counting...
Reply all
Reply to author
Forward
0 new messages