Installation

Ubuntu 20.04 Amazon AWS image: connection timeout, apache does not serve pages

Re: Ubuntu 20.04 Amazon AWS image: connection timeout, apache does not serve pages

by pb math -
Number of replies: 2

"Not that it should matter, but can you confirm that you are on the "master" branch of webwork2 and pg, which is presently version 2.15?" - sorry not 100% sure what you mean ? or how to check

So, today I terminated the AWS image, deleted everything and started fresh, following https://webwork.maa.org/wiki/Installing_from_WW2.15_Ubuntu20.04_Server_Virtual_Machine_Image

Same issue persists, the server is, http://ec2-3-133-102-106.us-east-2.compute.amazonaws.com

I'm happy to give anyone ssh access, as it is just a test case with nothing sensitive, let me know, since I am well out of my dept in terms of server stuff. Given that I have followed the instructions and taken the official image I cannot see how I have done anything wrong. I am based in Ireland, so I had to change my AWS default from here to Ohio, if that makes any difference, my security settings are SSH and HTTP added, with 0.0.0.0/0 as the IP, I have tried this with 'anywhere' too and it makes no difference. As you can see the apache page works fine, but webwork nope, all the settings are default so I am happy to let anyone play and see if they can shed some light.

In reply to pb math

Re: Ubuntu 20.04 Amazon AWS image: connection timeout, apache does not serve pages

by Danny Glin -
A couple of observations:
  1. The serving of the WeBWorK pages themselves is not the problem. If you fetch a page like http://ec2-3-133-102-106.us-east-2.compute.amazonaws.com/webwork2/myTestCourse/ using a tool such as wget or curl it is almost instant, so the problem isn't with WeBWorK processing pages.
  2. Looking at the Browser Console in Firefox (under "Web Developer"), it shows the following:
    Loading failed for the <script> with source “http://aws.apizer.org:8080/webwork2_files/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full”.
    It looks like your server is configured to get its javascript from aws.apizer.org, which appears to not be responding.  My guess is that the page tries to load this javascript, and then times out.  Once that dependency times out then it loads the rest of the page.

Most likely in your configuration you need to find the mention of aws.apizer.org, and change it to the name of your server.  Since it is coded for port 8080 it is likely expecting lighttpd to be set up to serve static content, so if you set it to port 8080 then you will need to make sure that you have lighttpd running and configured properly.

In reply to Danny Glin

Re: Ubuntu 20.04 Amazon AWS image: connection timeout, apache does not serve pages

by pb math -
Hi Danny et al,
Solved!!!
And egg on my face! I read the instructions for installation and got to editing the config files, and it talks about emailing the admin etc none of which I wanted and on previous (iso) installs by the time I got this far all was done, of course as you pointed out replacing aws.aspizer.org is mentioned and the 'solution'
Total egg on my face sorry for wasting the communities time and thank you for everyone help!