Comments (5)
Thanks for pointing this out. The code_server.py
now also needs Tornado to be able to run successfully.
Please save this as your Dockerfile and follow the steps again
FROM debian:8.2
MAINTAINER FOSSEE <[email protected]>
# Update Packages and Install Python & net-tools
RUN apt-get update && apt-get install -y python net-tools python-pip && pip install tornado
# Copy the project folder from host into container
COPY ./yaksh /src/yaksh
WORKDIR /src
# Run Yaksh code server
CMD ["python", "-m", "yaksh.code_server"]
from online_test.
Thanks! That fixed the docker container coming up, however accessing http://localhost:8001 throws this server stack trace with 501
172.17.0.1 - - [31/Dec/2016 00:59:21] code 501, message Unsupported method ('GET')
172.17.0.1 - - [31/Dec/2016 00:59:21] "GET / HTTP/1.1" 501 -
172.17.0.1 - - [31/Dec/2016 00:59:21] code 501, message Unsupported method ('GET')
172.17.0.1 - - [31/Dec/2016 00:59:21] "GET /favicon.ico HTTP/1.1" 501 -
from online_test.
Good to know that your docker instance is up and running.
Are you running the Django test server on your local machine using python manage.py runserver
? If yes, please access the link http://localhost:8000/exam, If not, we will need to know a bit about your server setup to help you further.
from online_test.
Now when I try to build the server with the above Dockerfile, it results in this (tried at least 5 times over the day). Looks like not an app issue, but still wanted to confirm if you face the same ?
Err http://httpredir.debian.org/debian/ jessie/main python-ndg-httpsclient all 0.3.2-1
Error reading from server. Remote end closed connection [IP: 5.153.231.35 80]
Get:103 http://httpredir.debian.org/debian/ jessie/main python-openssl all 0.14-1 [81.1 kB]
Get:104 http://httpredir.debian.org/debian/ jessie/main python-urllib3 all 1.9.1-3 [55.4 kB]
Get:105 http://httpredir.debian.org/debian/ jessie/main python-requests all 2.4.3-6 [204 kB]
Get:106 http://httpredir.debian.org/debian/ jessie/main python-setuptools all 5.5.1-1 [242 kB]
Get:107 http://httpredir.debian.org/debian/ jessie/main python-pip all 1.5.6-5 [114 kB]
Get:108 http://httpredir.debian.org/debian/ jessie/main python-pyasn1 all 0.1.7-1 [49.3 kB]
Get:109 http://httpredir.debian.org/debian/ jessie/main python-wheel all 0.24.0-1 [47.5 kB]
Get:110 http://httpredir.debian.org/debian/ jessie/main rename all 0.20-3 [12.4 kB]
Fetched 71.7 MB in 17s (4202 kB/s)
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/n/ndg-httpsclient/python-ndg-httpsclient_0.3.2-1_all.deb Error reading from server. Remote end closed connection [IP: 5.153.231.35 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get update && apt-get install -y python net-tools python-pip && pip install tornado' returned a non-zero code: 100
from online_test.
Is fixed with PR #379.
from online_test.
Related Issues (20)
- Not Receiving Password Reset Mail
- Proper statistics for the quiz questions or exercises
- Addons with lessons
- Comments/Q&A for lessons HOT 1
- Allow to manually increase time or repetitions for a single or set of users
- Upload users csv fix
- Allow teachers and moderators to upload marks for assignment submissions HOT 1
- Incorrect stats for correctly answered questions in Monitor
- Few addons for the in video table of contents
- Error on first server run HOT 2
- Integration with existing project
- No module named online_test HOT 1
- There is some problem. Try later. HOT 1
- After Makemigrations and migrate table is missing. HOT 3
- Exception when select question in "Design Question Paper" page HOT 1
- Error when creating new question "An invalid form control with name='description' is not focusable." HOT 1
- ModuleNotFoundError: No module named 'celery' HOT 1
- Error when Check Answer of code test
- Add option to have images as MCQ options
- Trying to get in touch regarding a security issue
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 online_test.