edX installtion on Window 10 - Installing Devstack - Getting Error while Starting edX

758 views
Skip to first unread message

Kapil Tyagi

unread,
Jan 30, 2017, 7:05:41 AM1/30/17
to Open edX operations
Installed Virtual box - VirtualBox-5.1.14-112924-Win
Installed vagrant_1.9.1

while running vagrant up command, getting below error on command prompt:

C:\Users\kapil.tyagi\devstack>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
Vagrant cannot forward the specified ports on this VM, since they
would collide with some other application that is already listening
on these ports. The forwarded port to 8000 is already in use
on the host machine.

To fix this, modify your current project's Vagrantfile to use another
port. Example, where '1234' would be replaced by a unique host port:

  config.vm.network :forwarded_port, guest: 8000, host: 1234

Sometimes, Vagrant will attempt to auto-correct this for you. In this
case, Vagrant was unable to. This is usually because the guest machine
is in a state which doesn't allow modifying port forwarding. You could
try 'vagrant reload' (equivalent of running a halt followed by an up)
so vagrant can attempt to auto-correct this upon booting. Be warned
that any unsaved work might be lost.

Starting edX: while starting edX on virtual machine, and clicking on start button on toolbar, virtual machine is started in a command window, a login screen is display while edX loads.


Then in next step:
Load the Learning Management System by entering 192.168.33.10 into a browser in Windows.
Is this IP address will be same for all machine? as i am not getting anything while entering 192.168.33.10 in browser window.


Thanks,
Kapil 

Ned Batchelder

unread,
Jan 30, 2017, 10:00:03 AM1/30/17
to opene...@googlegroups.com
Kapil,

Sounds like something else on your computer is already using port 8000.  That can be ok, you'll just need to use the 192.168.33.10 address, but you still have to use port 8000:  Try visiting http://192.168.33.10:8000.  Also, since you are using devstack, you will need to start the LMS with "paver lms" after switching the user to the edxapp user:

vagrant@precise64:~$ sudo su -l edxapp
[edxapp:~/edx-platform] $ paver lms

--Ned.

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/178d80b4-1658-44f2-ab34-148a31aae014%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kapil Tyagi

unread,
Jan 31, 2017, 12:01:42 AM1/31/17
to Open edX operations
Thanks Ned for quick respone.

Is this IP address (192.168.33.10) is our vitual box IP?
At my local, i am getting below IP for virtual box, So i tried in browser 192.168.196.1, as well http://192.168.196.1:8000/
I also tried http://192.168.33.10:8000But not getting anything on screen.

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::9d64:9b28:dfc5:5e6b%6
   IPv4 Address. . . . . . . . . . . : 192.168.196.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Not Found


HTTP Error 404. The requested resource is not found.


As you saide, As i am using devstack, to start LMS with "paver lms" after switching the user to the edxapp user: What is the process or command for this? and do i need to run any command in "devstack" directory of my local?

Thanks,
Kapil
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.

Kapil Tyagi

unread,
Feb 1, 2017, 1:20:36 AM2/1/17
to Open edX operations
Hi Ned,

Can you please help me in this? i am using window 10, how i can procedd for "paver lms" on window 10?
i have installed virtual box, vagrant, and devstack. But facing issue while loading LMS.

Thanks,
Kapil

Ned Batchelder

unread,
Feb 1, 2017, 3:50:21 PM2/1/17
to opene...@googlegroups.com
Kapil,

The details of ssh'ing into the devstack and starting the LMS are in the docs: http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/open-release-eucalyptus.master/installation/devstack/start_devstack.html  Are there specific steps that are giving you problems?

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/8deb5d48-79b1-49d9-8ef9-053af99e3649%40googlegroups.com.

Kapil Tyagi

unread,
Feb 2, 2017, 12:30:02 AM2/2/17
to Open edX operations
Hi Ned,

I am installing it on window 10, and the shared link by you and other documents on net, is on based Ubuntu operating system. Do i need to install the Ubuntu OS or we can do it on window 10 also?

Thanks,
Kapil

Ned Batchelder

unread,
Feb 3, 2017, 7:37:27 AM2/3/17
to opene...@googlegroups.com
Kapil, the Open edX code will not run on Windows.  You would need to use a virtualization technology like VirtualBox to run Ubuntu on your Windows machine in order to run Open edX.

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/4d0bf46e-3416-4353-9b49-71469fd0d13c%40googlegroups.com.

Kapil Tyagi

unread,
Feb 6, 2017, 10:51:31 PM2/6/17
to Open edX operations
Hi Ned,
Thanks.

On window 10, i have installed Virtual Box (VirtualBox-5.1.14-112924-Win) and Vagrant (vagrant_1.9.1) and after installation i am following below link:


Find the attached screen shot of succefully installtion.I am facing issue, while starting edX or loading edx CMS using http://192.168.33.10/
 
"Load the Learning Management System by entering 192.168.33.10 into a browser in Windows." - Not getting anything on browser screen after entering IP address in url http://192.168.33.10.

Do i need to make any change in "Vagrantfile"? or is there any chnage required to access the CMS?

Thanks,
Kapil
Virtual Box Installed.png
Virtual Box Run screen.png
IPconfig details on window 10.png

Kapil Tyagi

unread,
Feb 9, 2017, 3:24:59 AM2/9/17
to Open edX operations
Hi Ned,

Now I have installed Ubuntu OS inside Window 10 using virtual box (attached screen shot) by following steps in below URL:


and on window 10, i have already installed Virtual Box (VirtualBox-5.1.14-112924-Win) and Vagrant (vagrant_1.9.1).
Do i need to install this Virtual Box and Vagrant on Ubuntu now by using virtual box?

And to load/access the CMS, do i need to run http://192.168.33.10 on in explorer on Ubuntu OS?

Thanks,
Kapil Tyagi





You would need to use a virtualization technology like VirtualBox to run Ubuntu on your Windows machine in order to run Open edX.


On Tuesday, February 7, 2017 at 9:21:31 AM UTC+5:30, Kapil Tyagi wrote:
Hi Ned,
Thanks.

On window 10, i have installed Virtual Box (VirtualBox-5.1.14-112924-Win) and Vagrant (vagrant_1.9.1) and after installation i am following below link:


Find the attached screen shot of succefully installtion.I am facing issue, while starting edX or loading edx CMS using http://192.168.33.10/
 
"Load the Learning Management System by entering 192.168.33.10 into a browser in Windows." - Not getting anything on browser screen after entering IP address in url http://192.168.33.10.

Do i need to make any change in "Vagrantfile"? or is there any change required to access the CMS?
Ubuntu and edX Eucalyptus.png

Ned Batchelder

unread,
Feb 13, 2017, 8:22:07 PM2/13/17
to opene...@googlegroups.com
I'm a bit confused about where you are now.  You should have Vagrant and Virtualbox installed on your Windows machine.  Then you can use those to run Ubuntu.  In that Ubuntu guest machine, you can install Open edX, as you seem to have done.  But I don't know what style of installation you've used (devstack or fullstack), and I don't know what version of Open edX you've installed (Eucalyptus, Ficus, ?)

--Ned.


To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/1c6e5690-2fe6-4fbd-99ab-893d6e2b170f%40googlegroups.com.

Kapil Tyagi

unread,
Feb 15, 2017, 1:11:39 AM2/15/17
to Open edX operations

Hi Ned,
Thanks a lot for reply and sorry for the confusion. Below are the steps and update which i have done, hope it will clarify my query.

Step which I am done and Error, which I am facing:

·         Installation of Virtual Box and Vagrant on window 10 – DONE

o    Yes First on window 10, I have installed Virtual Box (VirtualBox-5.1.14-112924-Win) and Vagrant (vagrant_1.9.1), I used devstack style and Eucalyptus version. After installation I am following below link: http://open-edx-windows-7-installation-instructions.readthedocs.io/en/latest/8_Starting_Stopping_edX.html

·         Installing Open edX Devstack, Eucalyptus on window 10 – DONE

·         A virtual machine is started in command window. - DONE

·         On window 10,

o    I was facing issue while starting edX or loading edx CMS using http://192.168.33.10/ on below step:

"Load the Learning Management System by entering 192.168.33.10 or http://192.168.33.1:8009/ (virtual box IP and port in vagrant file) into a browser in Windows." - Not getting anything on browser screen after entering IP address in url http://192.168.33.10.

·         As Open edX code will not run on Windows, Now I have installed Ubuntu OS (ubuntu-12.10-desktop-amd64) inside Window 10 using virtual box by following steps in below URL: DONE

o    http://www.psychocats.net/ubuntu/virtualbox

·         Now I am able to access Ubuntu OS through virtual machine (it is very slow and very different from windows) - DONE

 

Issues/Queries:

  • As I installed open edX on window 10, Do I need to install this Virtual Box, Vagrant and open edX on Ubuntu OS (guest machine) by using virtual box?
  • Now how I can access open edX, means what would be next step to access/load the edX Learning Management System on window 10? Or I have to use only Ubuntu OS (guest machine) not window 10, to access open edX?
  • To load/access the edX CMS, do I need to run http://192.168.33.10 in explorer on Ubuntu OS (by accessing Ubuntu through virtual box)?
  • Do I need to make any change in "Vagrantfile" at my local? or is there any other change required to access the CMS on window 10 or Ubuntu?

         Thanks,
          Kapil

Kapil Tyagi

unread,
Feb 20, 2017, 2:54:48 AM2/20/17
to Open edX operations

Hi Ned,


I am facing some issue while starting open edX, below is the details of steps which I have done.

Installation for below software is DONE on window 10 as per the instructions available at http://open-edx-windows-7-installation-instructions.readthedocs.io/en/latest/1_Introduction.html

 

1.       VirtualBox-5.1.14-112924-Win

2.     vagrant_1.9.1

3.       cURL for Windows 10

4.     Installed open edX devstack, Eucalyptus on window 10 (used devstack style and Eucalyptus version)

 

After installation of virtual box and vagrant, open edX is not getting loaded as mentioned at STEP 5 of the URL: http://open-edx-windows-7-installation-instructions.readthedocs.io/en/latest/8_Starting_Stopping_edX.html, which says "Load the Learning Management System by entering 192.168.33.10 (virtual box IP and port in vagrant file) into a browser in Windows.

 

Please help/guide me on this or provide any documentation for edX setup on Windows 10.

 

 

Thanks,

Kapil

Accessing open edX.png

Ned Batchelder

unread,
Feb 21, 2017, 10:33:43 AM2/21/17
to opene...@googlegroups.com
I don't have a Windows 10 machine to test with, so I'm not sure how best to debug thus.  Are you sure the services are running in the virtualbox?

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/827d3345-e4f9-425d-b6f2-704b3a0a8ddd%40googlegroups.com.

Kapil Tyagi

unread,
Feb 22, 2017, 2:12:16 AM2/22/17
to Open edX operations
Thanks Ned for reply.

Yes Services are running in the virtual box, find the attached screen shots for details.

I am following below URL, and completed steps till point no 4 of "Starting edX", facing issue in point 5 (attached screen shot - Error_loading LMS) which says "Load the Learning Management System by entering 192.168.33.10 into a browser in Windows."

http://open-edx-windows-7-installation-instructions.readthedocs.io/en/latest/8_Starting_Stopping_edX.html#starting-edx


Also find the attached screen shot (Folder structure_vagrant up) of folder structure also in local drive after successfully run of "vagrant up" command. Kindly check and provide your inputs, it'll be a great help for me.



Thanks,

Kapil

Running Service in Virtual Box1.png
Running Service in Virtual Box2.png
Error_loading LMS.png

Ned Batchelder

unread,
Feb 22, 2017, 5:59:11 AM2/22/17
to opene...@googlegroups.com
By services, I mean the Open edX services like the LMS or Studio.  In a devstack, they don't run automatically. You have to switch to the edxapp user, and run them using paver:

vagrant@vagrant:~$ sudo su edxapp
[edxapp@vagrant:~/edx-platform] $ paver lms
---> pavelib.servers.lms
---> pavelib.prereqs.install_prereqs
... many lines removed ...
Django version 1.8.17, using settings 'lms.envs.devstack'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

Now the LMS is running in the guest machine.

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/f134df2c-c9a4-472d-ae95-c3b1151ce315%40googlegroups.com.

Kapil Tyagi

unread,
Feb 23, 2017, 2:00:51 AM2/23/17
to Open edX operations
Thanks Ned for quick reply.

I am following steps mentioned in below URL and after vagrant up, I am trying to connect devstack by using mentioned steps on page 3.4.2 Connecting to the Devstack Virtual Machine.

https://media.readthedocs.org/pdf/edx-installing-configuring-and-running/named-release-dogwood.rc/edx-installing-configuring-and-running.pdf

 

I have done with below command on command prompt, in the same directory where I have Vagrantfile :

vagrant up

vagrant ssh          (before this, I have downloaded and install openssh from http://openssh.en.softonic.com/download and added the ssh.exe to PATH by: set PATH=%PATH%;C:\Program Files (x86)\OpenSSH\bin)

I have entered default password – “vagrant”

Now below are the update (find the attached screen shot - "Error in paver lms" for details), please guide me for next steps.


Last login: Thu Sep  1 19:21:06 2016 from 10.0.2.2

vagrant@precise64:~$ sudo su edxapp

edxapp@precise64:~/edx-platform$ paver lms

Build failed: Unknown task: lms

edxapp@precise64:~/edx-platform$

edxapp@precise64:~/edx-platform$ paver devstack lms

Build failed: Unknown task: devstack

edxapp@precise64:~/edx-platform$



-- Kapil
Error in paver lms.PNG

Ned Batchelder

unread,
Feb 23, 2017, 11:26:22 AM2/23/17
to opene...@googlegroups.com
Kapil, I wonder what files are in your edx-platform directory.  Windows really is a difficult operating system to support for these tasks...

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/af2986e4-b486-48b3-ae4e-63a60d3edcd7%40googlegroups.com.

Kapil Tyagi

unread,
Feb 24, 2017, 4:49:48 AM2/24/17
to Open edX operations

Hi Ned,

I have downloaded a clone of master edx-platform form https://github.com/edx/edx-platform and kept it in local at C:\edx_eucalyptus\edx-platform.Now I am running below commands in the same directory where I have Vagrantfile, but getting error after paver lms (attached screen shot) :

 

C:\edx_eucalyptus>vagrant up

C:\edx_eucalyptus>vagrant ssh

vagrant@precise64:~$ sudo su edxapp

edxapp@precise64:~/edx-platform$ paver lms

---> pavelib.servers.lms

---> pavelib.prereqs.install_prereqs

---> pavelib.prereqs.install_node_prereqs

Node prereqs unchanged, skipping...

---> pavelib.prereqs.install_python_prereqs

---> pavelib.prereqs.uninstall_python_packages

Python uninstalls unchanged, skipping...

Python prereqs unchanged, skipping...

pip freeze > /edx/app/edxapp/edx-platform/test_root/log/pip_freeze.log

---> pavelib.assets.update_assets

xmodule_assets common/static/xmodule

WARNING:xblock.plugin:Unable to load XModuleDescriptor 'html'

 

Captured Task Output:

---------------------

 

---> pavelib.servers.lms

---> pavelib.prereqs.install_prereqs

---> pavelib.prereqs.install_node_prereqs

---> pavelib.prereqs.install_python_prereqs

---> pavelib.prereqs.uninstall_python_packages

pip freeze > /edx/app/edxapp/edx-platform/test_root/log/pip_freeze.log

---> pavelib.assets.update_assets

xmodule_assets common/static/xmodule

mkdir_p path('common/static/common/js/vendor')

/bin/cp -rf node_modules/backbone/backbone.js common/static/common/js/vendor

/bin/cp -rf node_modules/backbone.paginator/lib/backbone.paginator.js common/static/common/js/vendor

/bin/cp -rf node_modules/moment-timezone/builds/moment-timezone-with-data.js common/static/common/js/vendor

/bin/cp -rf node_modules/moment/min/moment-with-locales.js common/static/common/js/vendor

/bin/cp -rf node_modules/jquery-migrate/dist/jquery-migrate.js common/static/common/js/vendor

/bin/cp -rf node_modules/jquery.scrollto/jquery.scrollTo.js common/static/common/js/vendor

/bin/cp -rf node_modules/jquery/dist/jquery.js common/static/common/js/vendor

/bin/cp -rf node_modules/picturefill/dist/picturefill.js common/static/common/js/vendor

/bin/cp -rf node_modules/requirejs/require.js common/static/common/js/vendor

/bin/cp -rf node_modules/underscore.string/dist/underscore.string.js common/static/common/js/vendor

/bin/cp -rf node_modules/underscore/underscore.js common/static/common/js/vendor

/bin/cp -rf node_modules/sinon/pkg/sinon.js common/static/common/js/vendor

/bin/cp -rf node_modules/squirejs/src/Squire.js common/static/common/js/vendor

---> pavelib.assets.compile_coffeescript

node_modules/.bin/coffee --compile `find /edx/app/edxapp/edx-platform/lms /edx/app/edxapp/edx-platform/cms /edx/app/edxapp/edx-platform/common -type f -name "*.coffee"`

python manage.py lms --settings=devstack compile_sass lms

 

Build failed running pavelib.servers.lms: Subprocess return code: 1

edxapp@precise64:~/edx-platform$

 

I have tried below commands to resolve this error, but still getting the same error:

 

sudo rm /edx/var/mongo/mongodb/mongod.lock

sudo -u mongodb mongod --dbpath /edx/var/mongo/mongodb --repair --repairpath /edx/var/mongo/mongodb

sudo start mongod

 

paver install_prereqs
paver update_assets lms --settings=devstack
paver update_assets studio/cms --settings=devstack
 
Kindly guide me to resolve this error.
 
--Kapil
Error in paver lms.PNG

Ned Batchelder

unread,
Feb 24, 2017, 9:11:52 AM2/24/17
to opene...@googlegroups.com
Kapil, if the devstack install didn't get you the edx-platform directories, then probably the devstack will not work. Windows does not support symlinks fully, and this can cause subtle failures later.  Perhaps this is what you are seeing.  If the installation fails, it is very difficult to patch it up afterwards, especially if we don't know why it failed in the first place.

Someone needs to take on the challenge of getting devstacks to work on Windows, and they need to document it fully, and be ready to help with problems.  I don't usually have a Windows machine that I can use to try this out.

--Ned.

To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/08c7c94b-9ffd-4f98-8ee3-2df4fa5b3074%40googlegroups.com.

Nate Aune

unread,
May 21, 2017, 8:36:31 PM5/21/17
to Open edX operations
Kapil - I don't know if you're still trying to get devstack running on Windows or if you gave up, but we documented this awhile ago because it was such a pain to get working. I don't know if these instructions are still valid since it's from a few versions ago, but you might find some useful tips in this blog post: https://www.appsembler.com/blog/setting-up-openedx-devstack-on-windows-8/

Raj

unread,
Sep 8, 2017, 7:30:12 AM9/8/17
to Open edX operations
Hi! I have followed with the link
1) https://groups.google.com/forum/#!topic/openedx-ops/SmdW6WqbuBM
3) https://github.com/appsembler/configuration/wiki/Setting-up-Open-edX-devstack-on-Windows-8
but, I am unable to install openedx. I found NFS(Network File System) is necessary. But, in these posts it is not mentioned. 
I use Windows 10 Home Edition and NFS is only found in Professional/Enterprise version of Windows 10.

Instead, I tried to install Bitnami OpenEdx and I was successful. The doubt is, can I change the code (is it devstack/analyticstack) in Bitnami?

I request you to help me install analyticstack/devstack on Windows 10 Home edition.
Reply all
Reply to author
Forward
0 new messages