Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:01
    GuillaumeDerval synchronize #474
  • 10:01

    GuillaumeDerval on jinja

    Add a tool to check that the ol… Fix some mistakes in the templa… (compare)

  • 09:15
    mpiraux commented #474
  • 09:15
    GuillaumeDerval commented #474
  • 09:13
    anthonygego opened #474
  • 08:59

    anthonygego on jinja

    Add support for jinja templates First attempt at converting a t… (compare)

  • Nov 20 09:40

    anthonygego on remove_fix_webpy_cookies

    (compare)

  • Nov 20 09:40

    anthonygego on master

    removing unecessary code update setup.py - Using right v… Merge pull request #473 from UC… (compare)

  • Nov 20 09:40
    anthonygego closed #473
  • Nov 20 09:40
    anthonygego commented #473
  • Nov 20 09:20
    Drumor synchronize #473
  • Nov 20 09:20

    Drumor on remove_fix_webpy_cookies

    update setup.py - Using right v… (compare)

  • Nov 20 08:42
    Drumor opened #473
  • Nov 20 08:41

    Drumor on remove_fix_webpy_cookies

    removing unecessary code (compare)

  • Nov 19 15:13

    anthonygego on jinja

    Add support for jinja templates First attempt at converting a t… (compare)

  • Nov 19 14:48

    anthonygego on jinja

    Add support for jinja templates First attempt at converting a t… (compare)

  • Nov 14 10:09

    anthonygego on master

    Update translation files Updat… Translated using Weblate (Spani… Merge pull request #465 from IN… (compare)

  • Nov 14 10:09
    anthonygego closed #465
  • Nov 14 10:09

    anthonygego on pyloader_warning

    (compare)

  • Nov 14 10:09

    anthonygego on master

    remove warning on yaml loader remove warning on yaml loader Merge pull request #472 from UC… (compare)

Tom Bell
@tstrokes
Switch to apache so no need to answer about nginx and uwsgi. Is the lti launch URL still the same in version 0.5.
Switched*
I can seem to get it to work.
can't*
Anthony Gégo
@anthonygego
@tstrokes the docs are not yet updated for this version. I recommend you to read this : UCL-INGI/INGInious#272
James Robb
@jamesrobb
When will the next official release of INGinious come out?
Can someone expect what is in the master branch to work if they install it today?
Anthony Gégo
@anthonygego

@jamesrobb PR #275 will probably be merged before the release. There are no other big change planned for this. Documentation update will then be necessary as well as an update script. Actually, you can use what is in the master branch, but you'll face the following difficulties : docs are not updated and migration from v0.4 may be tricky.

First of all, to solve the potentiel username clash of two authentication methods and better integrate other methods, every user now has an INGInious account in database for which he can choose his/her username, and link this account to its authentication method login. If you did not use the database authentication method, want to keep current data and be sure v0.5 usernames will still match the v0.4 ones, you will have to create the user accounts in database with the appropriate binding. I will see If I can rewrite and publish the script I wrote for UCLouvain in order to make this process automatic.

Secondly, LTI has been integrated into the webapp. The launch URL is now : http[s]://your_hostname/lti/courseid/taskid and you have to put the key and secrets into the course settings. Users using INGInious trough LTI will have to bind their webapp account the first time. This binding is definitive for the student and there is still no way to delete this binding from the webapp interface. This should not be a common issue.

Thirdly, in case you're using it, SAML authentication method ACS link has changed, so you'll need to update the metadata at the IdP side...

Fourthly, tasks subproblem types has been renamed from 'multiple-choice' to 'multiple_choice', 'code-single-line' to 'code_single_line' and 'code-file' to 'file'. This can be changed easily using sed -i 's/old/new/g' **/**/task.yaml.

Eventually, submissions input are now stored in binary instead of base64, the update is currently made at the inginious-webapp startup, but can be stopped by some servers like uwsgi on heavy databases, which detect the update process as a non-responding script and do a timeout...

Anthony Gégo
@anthonygego
As long as the next version is not released, you will also need to build the base container manually
James Robb
@jamesrobb

@anthonygego when do you expect to next released to come out?

what is the new ACS link for SAML?

where do I find the necessary stuff to build the base container?

On an unrelated note too, it seems that the gitter link is no longer on the front page of the inginious site, nor on the github page. I think those looking for support might have a hard time finding this page.
Anthony Gégo
@anthonygego

@jamesrobb Probably by the end of the month. The new link to the ACS is /auth/callback/<auth_method_id>. Each auth plugin now require an id field in the configuration.yaml file. The base container files are available on Github in the base-containers folder. You can build them by using docker build -t ingi/inginious-c-base . in the base folder and so one for other containers.

The new inginious.org site is still under work. I'm putting back some additional info as soon as I can.

Tom Bell
@tstrokes
Can problems of type: code and type: multiple_choice be used in the same task?
James Robb
@jamesrobb

@anthonygego cool, I might just wait to install (again) when you actually release. We had an iffy debut at my university with inginious when I tried to do postgres containers (so each student would have an isolated instance of postgres to code against). Not sure if it was my setup or what, but the file system on my VM would fill up entirely with the docker storage layer files until there was no space left, and often the inginious messaging system for running containers would stop working.

I'm optimistic with a fresh VM and a new version I can do some proper testing and hopefully figure out what went wrong. We really like the inginious and are eager to have our students using it.

Anthony Gégo
@anthonygego
@tstrokes Yes, but you'll have to parse the multiple choice input inside the run script. It can be accessed as any other code problem.
Anthony Gégo
@anthonygego
@jamesrobb Was it the INGInious run containers that filled the docker storage ?
James Robb
@jamesrobb
@anthonygego This is a few months ago, so my memory is a bit hazy, but that sounds right Any idea why that would have happened?
James Robb
@jamesrobb
@anthonygego sorry to pester you again about the same thing, but it sounded like you might have some insight as to what went wrong with my installation. The /var/lib/docker/devicemapper/ directory would continue to swell in size until all disk space was consumed. Not sure why, but it seems like the disk space that was occupied by a container while it was running wasn't freed up after it was shut down.
Anthony Gégo
@anthonygego
It is possible that a crashed container would not delete for some reasons. Maybe the docker logs would help to identify the cause. By the way, you might have important performance issues using devicemapper that more often lead to such unexpected beahviours on a mounted partition (default loopback-lvm configuration), which is not a recommended setup by Docker. I'd recommend direct-lvm or overlay.
James Robb
@jamesrobb
Hmm, I can't honestly say I know what that means, but I know someone that does. I'll consult with them and see what I can figure out.
Hows the next release coming along? I've been delaying working on my schools installation until it come sout
Anthony Gégo
@anthonygego
@jamesrobb By the end of the month. Actually you can already clone and use the master code if you plan to do a clean install. It's currently receiving bugfixes and updated documentation is coming in the next days.
Benoît Legat
@blegat
The assignement of this year has the same id as last year so students submissions of last year are mixed with those of this year
What's the recommended method to deal with this ?
Anthony Gégo
@anthonygego
@blegat If you did not archive the course before there is unfortunately no other way to deal with this than removing all submissions done last year from the database
Benoît Legat
@blegat
Ok thanks :)
nlarranagac
@larranaga

Hi,

We are currently working on the deployment of a fork from INGInious at our University. At first we had the idea to use docker to deploy the webapp along with a bunch other microservices (a linter, and a visualizer for the code), however we have had a few issues in the process, namely how to put INGInious-webapp inside a container, has anyone tried something similar? Now we decided to have INGInious-webapp inside a lighttpd server, so we would like to know if you have some sort of a deployment script or some kind of automation in the process of deployment.

Ohad Perry
@ohadperry9_twitter
Hi, We are currently working on the deployment of a fork from INGInious . In our production environment, we noticed errors in apache server that caused the app to restart.
Error in `/usr/sbin/httpd': double free or corruption (!prev): 0x00007f28dc67a6e0
======= Backtrace: =========
/lib64/libc.so.6(+0x7c503)[0x7f28d9746503]
/usr/lib64/libpython3.5m.so.1.0(PyThreadState_DeleteCurrent+0x40)[0x7f28cd50e420]
/usr/lib64/libpython3.5m.so.1.0(+0x165075)[0x7f28cd529075]
/lib64/libpthread.so.0(+0x7dc5)[0x7f28d9c96dc5]
/lib64/libc.so.6(clone+0x6d)[0x7f28d97c173d]
i've searched this group and didn't find the exact error here.
it started last friday we upgraded the task tests (not the inginious code). We also had a disk space error at that day. We solved by increasing the disk space. We don't know if this is related.
The architecture is composed of 2 servers. one is with the frontend and backend and the other with the agents
@anthonygego how do you recommend debugging this
?
Ohad Perry
@ohadperry9_twitter
Is there a way to log inginious logs to rotating files ?
Ohad Perry
@ohadperry9_twitter
@anthonygego any open source plugin to do that? currently the logs are wrting to stdout if i'm not mistaken
Anthony Gégo
@anthonygego
@larranaga I'll probably push some kind of a image or deploy script on AWS some day once it will be 100% automatic but this will be for the version we're maintaining, but currently we do not maintain such scripts in public repos.
Anthony Gégo
@anthonygego
@ohadperry9_twitter well it seems it comes from Apache and its wsgi plugin (as the error comes from httpd process). I'd first try to update them, as well as Python devel packages.
Ohad Perry
@ohadperry9_twitter
update apache?
I already updated the mod_wsgi pip by doing pip uninstall and install again
also, what do you mean by "Python devel packages"?
Matthias Möller
@mmoelle1
Hi there! I am new to INGInious (and also gitter). I am working on setting up my own INGInious server now having problems with the SMTP configuration. Sendmail is configured so that, as a regular user 'myuser', I can send mails from the terminal, e.g., 'mail someone@gmail.com'. I tried to configure INGInious to use my local sendmail daemon but I receive the following sendmail error: 'Mar 15 09:44:26 inginious sendmail[7125]: w2F8iQZq007125: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA'. Any help is appreciated.
Andres Mauricio Rondon Patiño
@amrondonp
Hello, Have you guys added the support for extending the problem types via plugins?
nlarranagac
@larranaga
Hi i just deployed INGInious using lighttpd, however i am getting a connection refused message over and over again, I don't know how to check what I'm doing wrong, I'd really appreciate some help
Matthias Möller
@mmoelle1
@larranaga Not sure if that solves your problem but I had to change server.use-ipv6 = "enable"to server.use-ipv6="disable" in the file /etc/lighttpd/lighttpd.conf under CentOS7.
nlarranagac
@larranaga

@mmoelle1 Thanks a lot, it worked. However now I'm facing another issue, apparently inginious-webapp isn't running, at first it was because it didn't have permission to mongo, I found out it was because of selinux and worked around it like [so]{https://stackoverflow.com/questions/44537205/apache-httpd-not-able-to-access-local-mongodb-permission-denied}. Unfortunately I face now another error (which I think it's the one the post refers to), the webapp doesn't have permissions to connect to the docker daemon. I don't know how to solve it, maybe it's better to use an apache server instead? this is the log from the service.

Mar 16 16:44:18 vultr.guest lighttpd[1536]: return self.get(url, **self._set_request_timeout(kwargs))
Mar 16 16:44:18 vultr.guest lighttpd[1536]: File "/usr/lib/python3.5/site-packages/requests/sessions.py", line 521, in get
Mar 16 16:44:18 vultr.guest lighttpd[1536]: return self.request('GET', url, **kwargs)
Mar 16 16:44:18 vultr.guest lighttpd[1536]: File "/usr/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
Mar 16 16:44:18 vultr.guest lighttpd[1536]: resp = self.send(prep, **send_kwargs)
Mar 16 16:44:18 vultr.guest lighttpd[1536]: File "/usr/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
Mar 16 16:44:18 vultr.guest lighttpd[1536]: r = adapter.send(request, **kwargs)
Mar 16 16:44:18 vultr.guest lighttpd[1536]: File "/usr/lib/python3.5/site-packages/requests/adapters.py", line 490, in send
Mar 16 16:44:18 vultr.guest lighttpd[1536]: raise ConnectionError(err, request=request)
Mar 16 16:44:18 vultr.guest lighttpd[1536]: requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))

I deeply appreciate any help anyone can provide.

Anthony Gégo
@anthonygego
@ohadperry9_twitter the mod_wsgi is compiled during the pip install and rely on the devel packages (python and apache I'd say). As the error triggered comes from C code, I'd rather ensure that everything is updated and that mod_wsgi is reinstalled using the latest devel packages.
@amrondonp Yes, but some refactor is still in progress to improve the problems type interface. You can already use it but expect that it might be significantly modified in the coming days.
Anthony Gégo
@anthonygego
@larranaga you need to add the lighttpd user to the docker group
Matthias Möller
@mmoelle1
Hi, I still have problems with configuring the smtp server in configuration.yaml. The locally running sendmail gives the error message Mar 15 09:44:26 inginious sendmail[7125]: w2F8iQZq007125: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA. Does someone have a working smtp configuration, e.g., by sending emails via Google smtp?