Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with Ubuntu 19.04 #938

Closed
heiderich opened this issue May 16, 2019 · 4 comments
Closed

Problems with Ubuntu 19.04 #938

heiderich opened this issue May 16, 2019 · 4 comments

Comments

@heiderich
Copy link
Member

I experience problems running the current master branch (db7eb3b) of webwork2 on Ubuntu 19.04 using docker.

The error message is after starting the webwork container is:

app_1  | end fixing ownership and permissions
app_1  | 	(in cleanup) Not a GLOB reference at /opt/webwork/webwork2/lib/WeBWorK/CourseEnvironment.pm line 200.
app_1  | AH00526: Syntax error on line 54 of /etc/apache2/conf-enabled/webwork.conf:
app_1  | failed to read file /opt/webwork/courses/___/simple.conf: No such file or directory at /opt/webwork/webwork2/lib/WeBWorK/CourseEnvironment.pm line 186.\n

To reproduce this, change the first line in the Dockerfile from

FROM ubuntu:16.04
to
FROM ubuntu:19.04

Then execute

docker-compose build
docker-compose up

This is not really a bug, as the Dockerfile specifies ubuntu 16.04, but I guess it would nevertheless be desirable to be able to run webwork on newer versions of Ubuntu.

The problem does not occur with

FROM ubuntu:18.04.

I remember having encountered this problem also using Debian buster on a bare metal server without using docker, but I did not confirm it.

@heiderich heiderich changed the title Problems with recent Ubuntu 19.04 Problems with Ubuntu 19.04 May 16, 2019
@taniwallach
Copy link
Member

The same error message about

Not a GLOB reference at /opt/webwork/webwork2/lib/WeBWorK/CourseEnvironment.pm line 200.

was reported in the forums by Jeremy Sylvestre.

A workaround given there is to modify lib/WeBWorK/CourseEnvironment.pm in a particular way to bypass the specific "name" ("include") which triggered the problem. It seems that this is just some sort of reference to a local "include" function which does not need to be part of the final CourseEnvironment hash, so bypassing it is not likely to cause trouble.

@mgage commented there about the proposed change and that he did not foresee any adverse side-effect of the change, but did remark that the proposed change will need testing.

I'm starting to test the proposed change in my personal Docker setup, but not yet in production.

@taniwallach
Copy link
Member

@heiderich - If you have a chance - maybe see if the proposed change solves the problem with using Ubuntu 19.04 as the base image for Docker. (Sorry, I don't want to mess with my Docker image at present.)

@heiderich
Copy link
Member Author

heiderich commented Jun 11, 2019

@taniwallach Thank you for calling my attention to this post. I did some tests:

Making the change proposed in this forum post change, i.e. changing

next if $name =~ /^(INC|_.*|__ANON__|main::)$/;

to

next if $name =~ /^(INC|_.*|__ANON__|main::|include)$/;

makes the error disappear. I tested this (using the develop branch) both with

FROM ubuntu:16.04
and

FROM ubuntu:19.04

In both cases I did not experience the error anymore. I did not do further tests. But probably I will use this change in my docker test containers from now on.

It might indeed be related to the Perl version. Ubuntu 16.04 comes with 5.22.1, while 19.04 comes with 5.28.1.

heiderich added a commit to heiderich/webwork2 that referenced this issue Jun 11, 2019
This was suggested by Jeremy Sylvestre:
http://webwork.maa.org/moodle/mod/forum/discuss.php?d=4607#p13521

This addresses an incompatibility of WeBWorK with newer versions of Perl (in particular 5.28.1).
(see also openwebwork#938 )
heiderich added a commit to heiderich/webwork2 that referenced this issue Jun 11, 2019
This was suggested by Jeremy Sylvestre:
http://webwork.maa.org/moodle/mod/forum/discuss.php?d=4607#p13521

This addresses an incompatibility of WeBWorK with newer versions of Perl (in particular 5.28.1).
(see also openwebwork#938 )
heiderich added a commit to heiderich/webwork2 that referenced this issue Jun 11, 2019
This was suggested by Jeremy Sylvestre:
http://webwork.maa.org/moodle/mod/forum/discuss.php?d=4607#p13521

This addresses an incompatibility of WeBWorK with newer versions of Perl (in particular 5.28.1).
(see also openwebwork#938 )
@drgrice1
Copy link
Sponsor Member

I don't think this issue is valid anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants