sudo su edexappedxapp@precise64:~/edx-platform$paver devstack lmsBuild failed: Unknown task: devstack
On Jul 22, 2014 9:00 AM, "Damion Young" <damion...@googlemail.com> wrote:
>
> I'm now wondering whether there's something more fundamentally wrong with my system as, having failed to get a vagrant connection to my virtual machine working (see https://groups.google.com/forum/#!topic/edx-code/-PeyPS_nejQ), I've just tried seeing if I can get the lms started in the VirtualBox GUI.
>
> I ran
>
> sudo su edexapp
>
> to switch users and the prompt now reads
>
> edxapp@precise64:~/edx-platform$
>
> as I think it should(?)
After you do this, if you list the directory ("ls") you should see essentially a listing which looks like
https://github.com/edx/edx-platform
Including the pavelib directory.
That's a good next check.
vagrant upvagrant ssh00:00:01.537342 NAT: set redirect TCP host port 9200 => guest port 9200 @ 10.0.2.15
00:00:01.537542 NAT: failed to redirect TCP 9200 => 9200
00:00:01.537547 NAT: set redirect TCP host port 8765 => guest port 8765 @ 10.0.2.15
00:00:01.537624 NAT: failed to redirect TCP 8765 => 8765
00:00:01.537629 NAT: set redirect TCP host port 8001 => guest port 8001 @ 10.0.2.15
00:00:01.537700 NAT: failed to redirect TCP 8001 => 8001
00:00:01.537704 NAT: set redirect TCP host port 8000 => guest port 8000 @ 10.0.2.15
00:00:01.537774 NAT: failed to redirect TCP 8000 => 8000
00:00:01.537778 NAT: set redirect TCP host port 18080 => guest port 18080 @ 10.0.2.15
00:00:01.537846 NAT: failed to redirect TCP 18080 => 18080
00:00:01.537850 NAT: set redirect TCP host port 2222 => guest port 22 @ 10.0.2.15
00:00:01.537918 NAT: failed to redirect TCP 2222 => 22vagrant plugin install vagrant-vbguestcurl -L https://raw.github.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile > Vagrantfilevagrant up default: Warning: Connection refused. Retrying...
default: Warning: Connection refused. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.Thanks very much @Yarko Tymciurak - should have thought of that! It's empty (ie 'ls' returns nothing) which explains a lot. I'm a bit confused though as I did follow the instructions here: http://edx.readthedocs.org/projects/edx-installing-configuring-and-running/en/latest/devstack/install_devstack.html very carefully and didn't see any problems until I tried:vagrant up
And while the virtual machine does appear to be running, some parts of it obviously haven't completed properly.
Any ideas at which stage this directory is supposed to be filled and what might be causing it not to be? I'm wondering whether this is related to my inability to run:vagrant ssh
Interestingly, the log for the virtual machine as it booted does log a number of port forwarding errors:
00:00:01.537342 NAT: set redirect TCP host port 9200 => guest port 9200 @ 10.0.2.15
00:00:01.537542 NAT: failed to redirect TCP 9200 => 9200
00:00:01.537547 NAT: set redirect TCP host port 8765 => guest port 8765 @ 10.0.2.15
00:00:01.537624 NAT: failed to redirect TCP 8765 => 8765
00:00:01.537629 NAT: set redirect TCP host port 8001 => guest port 8001 @ 10.0.2.15
00:00:01.537700 NAT: failed to redirect TCP 8001 => 8001
00:00:01.537704 NAT: set redirect TCP host port 8000 => guest port 8000 @ 10.0.2.15
00:00:01.537774 NAT: failed to redirect TCP 8000 => 8000
00:00:01.537778 NAT: set redirect TCP host port 18080 => guest port 18080 @ 10.0.2.15
00:00:01.537846 NAT: failed to redirect TCP 18080 => 18080
00:00:01.537850 NAT: set redirect TCP host port 2222 => guest port 22 @ 10.0.2.15
00:00:01.537918 NAT: failed to redirect TCP 2222 => 22I wonder if this is the problem?
==> default: Attempting graceful shutdown of VM...
default: Guest communication could not be established! This is usually because
default: SSH is not running, the authentication information was changed,
default: or some other networking issue. Vagrant will force halt, if default: capable.
==> default: Forcing shutdown of VM...config.vm.provider :virtualbox do |vb|
...
vb.gui = trueenddefault: Warning: Connection refused. Retrying...mountOn Tue, Jul 22, 2014 at 10:03 AM, Damion Young <damion...@googlemail.com> wrote:
Thanks very much @Yarko Tymciurak - should have thought of that! It's empty (ie 'ls' returns nothing) which explains a lot. I'm a bit confused though as I did follow the instructions here: http://edx.readthedocs.org/projects/edx-installing-configuring-and-running/en/latest/devstack/install_devstack.html very carefully and didn't see any problems until I tried:vagrant upIf you had problems during vagrant up then you need to sort that out first, obviously.During the first "up" on a base machine (where the starting image is downloaded from edx's aws store - its rather large) timeouts and incompletions are not too uncommon - just persist (run vagrant halt; vagrant up until all completes).If you have other errors than timeouts, then you need to route those out as appropriate (e.g. the windows hint someone provided to you in this thread).Also at this point if you want useful help, you need to be specific enough that someone can _try_ to reproduce your problem in order to help - so what you're running on, which version of virtualbox, which version of vagrant, etc. "I followed the steps exactly" is not as useful as "after this command, I got this error msg."And while the virtual machine does appear to be running, some parts of it obviously haven't completed properly.How do you determine it "appears to be running"?What makes you say "it didn't complete properly" - the virtual machine most likely wouldn't run if _it_ didn't complete properly. And if you mean "the
installation didn't complete properly" then specifics about that should be pointed out.
Just tried removing everything, installing cygwin and running everything through the cygwin terminal but the problems are the same. Is there any way to set this up without vagrant, virtual machines, etc?
Sorry to hear you had so much trouble. Another option is to simply try a standalone installation, but from within a VM.