Comments (6)
Hi Regis, I also got 400 bad request error, when accessing using IP address.
I am using your latest release, I built the platform easily with "tutor local quickstart". I do not have a domain name, so did not provide one. I can access lms using "localhost" and cms using "studio.localhost" or "127.0.0.1".
I got 400 bad request error when I try to access it from another computer in the intranet, using the server's IP address.
Problem solved by looking at your commit linked above: Add IP address to ALLOWED_HOSTS.
Thanks for providing such a nice tool to deploy open edx so conveniently!!!
from tutor.
What is the domain name you provided? And did you configure your DNS to point to your server?
from tutor.
Although I did the same steps when I got bad request, today I re tried doing it from shell lms and it worked. Now I am able to see openedx on my localhost. However, if I dont start it from shell and try to do it from my local repository, ( by writing 'make up' command) I see bunch of workers making some configurations however it never finishes.
STARTS LİKE THAT :
Attaching to openedx-docker_mongodb_1, openedx-docker_rabbitmq_1, openedx-docker_nginx_1, openedx-docker_smtp_1, openedx-docker_memcached_1, openedx-docker_elasticsearch_1, openedx-docker_mysql_1, openedx-docker_forum_1, openedx-docker_cms_1, openedx-docker_lms_1, openedx-docker_cms_worker_1, openedx-docker_lms_worker_1
mongodb_1 | 2018-06-03T15:58:27.424+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=19ed66d11313
mongodb_1 | 2018-06-03T15:58:27.425+0000 I CONTROL [initandlisten] db version v3.0.14
.
.
.
.
.
.
forum_1 | I, [2018-06-03T17:38:47.480201 #24] INFO -- : worker=1 ready
forum_1 | I, [2018-06-03T17:38:47.483707 #30] INFO -- : worker=3 ready
STUCK, NEVER FINISHES WAITED FOR HOURS BUT NO CHANGE.
I can not understand what is wrong. Any help is appreciated.
from tutor.
A couple important points
- If you set "www.mydemo.com" as the url of your LMS with the production settings, it will only be reachable at this address. Not "localhost" and not "127.0.0.1": if you try a different url, you will get a 400 error. This is for security reasons.
- When you run
make lms
and then./manage.py lms runserver 0.0.0.0:8000
, the production settings are used, as indicated in the console:using settings 'lms.envs.universal.production'
. Thus, again, the LMS is only reachable through the url you configured earlier. If you want to run a server for local testing, you have two choices:
a. Configure "localhost" as the url of the LMS duringmake configure
.
b. Or run a development server with development settings:make lms
and then./manage.py lms --settings=universal.development runserver 0.0.0.0:8000
. - When you run
make up
, the services are working, but in the foreground. You can use them normally. If you really want them to run in the background (asmake all
does it), runmake daemon
.
from tutor.
Thank you for your help. I need to make some development on openedx. I configured the lms with the value 127.0.0.1 now when I enter the url as 127.0.0.1 it works. If I type it as localhost or localhost:8000 or 127.0.0.1:8000 it doesnt but anyway I managed to do it. My second and hopefully last question is how do I change some elements in lms. Currently I have the openedx-docker file in my Desktop, I see all the relevant files under openedx-docker/data/lms/staticfiles but of course if i simply open a .css file under staticfiles and change some style or color, the changes do not reflect on lms when I refresh 127.0.0.1. In the documentation it seems that I have to have valid development settings files in order to do this kind of changes but I couldnt understand it very well. Again thank you for your interest and it is my first project in this kind of development environment so sorry if I ask some basic stuff. Thanks.
from tutor.
Ok, I'm glad you managed to make it work. I suggest you carefully read the "Custom devstack" section from the README: https://github.com/regisb/openedx-docker#custom-devstack
You are going to clone the edx-platform repository in a separate folder, and then point to it with the EDX_PLATFORM_PATH environment variable. Then, copy the development settings from config/openedx/universal/lms.py
to edx-platform/lms/envs/mysettings.py
. You should be able to run standard open edx commands with these settings. For instance:
paver update_assets lms --settings mysettings
./manage.py lms runserver --settings=mysettings 0.0.0.0:8000
If you are not familiar with Open edX commands, I suggest you take a look at the Open edX documentation: https://openedx.atlassian.net/wiki/spaces/OpenOPS/pages/60227787/Running+Vagrant-based+Devstack#RunningVagrant-basedDevstack-LMSWorkflow
Sometimes, Open edX can be a little... terse. When there's something you don't understand, your best bet is to just read the source code. (a piece of advice which is also relevant for running this project)
from tutor.
Related Issues (20)
- Add ability to patch proxy config in Caddy
- On Windows `tutor dev start` fails because of "Permission denied"
- edx-enterprise migration missing HOT 1
- Autocomplete failed after installing plugin HOT 1
- Do not apply git patches when using a brach based on but different than master while using Tutor Nightly
- K8S: Unable to view logs when we have running more than 5 pods of service
- Supply MySQL 8.2 or 8.3 by default HOT 2
- I just want to install this with Docker-compose I don't need a special magical configurator. HOT 2
- Redwood sandbox preparation HOT 14
- Installing tutor latest (17.04) HOT 2
- Compose `version` property is obsolete HOT 2
- Security patching for Quince HOT 6
- tutor build image openedx fails HOT 3
- Possible memory leak in watchtheme HOT 6
- Upgrading from tutor 15 to tutor 18 breaks the MySQL connection due to the mysql_native_password authentication plugin not being found HOT 1
- Migrate to Python images instead of ubuntu in Tutor dockerfiles HOT 2
- Add instructions/do command to switch mysql user auth to caching_sha2_password
- Tutor branches rename
- settheme command just creates site objects
- Installing fresh XBlock with mentioned approach failes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutor.