GithubHelp home page GithubHelp logo

Comments (5)

adityacp avatar adityacp commented on July 24, 2024

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.

machzqcq avatar machzqcq commented on July 24, 2024

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.

adityacp avatar adityacp commented on July 24, 2024

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.

machzqcq avatar machzqcq commented on July 24, 2024

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.

maheshgudi avatar maheshgudi commented on July 24, 2024

Is fixed with PR #379.

from online_test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.