Forum archive 2000-2006

James - Issue with images WW2.3

James - Issue with images WW2.3

by Arnold Pizer -
Number of replies: 0
inactiveTopicIssue with images WW2.3 topic started 11/17/2006; 9:13:18 PM
last post 11/19/2006; 5:42:27 PM
userJames - Issue with images WW2.3  blueArrow
11/17/2006; 9:13:18 PM (reads: 159, responses: 4)
Hello,

I am new to webwork. I am working with Brian Camp to setup a WW server at our university.

I have webwork 2.3 installed, and we are testing the software.

I have been working with the tutorial course, and most parts seem to work fine. The 1st problem I am having is graphs are not displaying.

Here is a link to an example:

http://img141.imagevenue.com/img.php?image=14508_no_graphs_122_432lo.jpg

If I click the area where the graph should be, I do get a popup window with this error message:

The requested URL /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif was not found on this server.

The apache error log gives:

The macro alias cannot find an HTML file at: |/opt/webwork/courses/latech-sample-course-01/templates/set0/prob4/testing.html| at (eval 155) line 978.

[Fri Nov 17 19:44:02 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:44:02 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:44:02 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:44:02 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:48:53 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:49:18 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

[Fri Nov 17 19:49:32 2006] [error] [client 67.33.99.58] File does not exist: /opt/webwork/courses//html/

the access log:

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2/latech-sample-course-01/homework_set_intro/8/?effectiveUser=jje011&displayMode=images&showOldAnswers=1&user=jje011&key=I9cY9eK9q2e30nMei8nvXcjZHdpKmLqU HTTP/1.1" 200 14602

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2/latech-sample-course-01/homework_set_intro/8/?effectiveUser=jje011&displayMode=images&showOldAnswers=1&user=jje011&key=I9cY9eK9q2e30nMei8nvXcjZHdpKmLqU HTTP/1.1" 200 14602 "http://webwork.latech.edu/webwork2/latech-sample-course-01/homework_set_intro/8/?effectiveUser=jje011&displayMode=images&showOldAnswers=1&user=jje011&key=I9cY9eK9q2e30nMei8nvXcjZHdpKmLqU" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-55459.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-55459.gif HTTP/1.1" 404 371 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-18387.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-18387.gif HTTP/1.1" 404 371 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-44144.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:44:02 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-44144.gif HTTP/1.1" 404 371 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:48:53 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:48:53 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371 "http://webwork.latech.edu/webwork2/latech-sample-course-01/homework_set_intro/8/?effectiveUser=jje011&displayMode=images&showOldAnswers=1&user=jje011&key=I9cY9eK9q2e30nMei8nvXcjZHdpKmLqU" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:49:18 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:49:18 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

67.33.99.58 - - [17/Nov/2006:19:49:32 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371

67.33.99.58 - - [17/Nov/2006:19:49:32 -0600] "GET /webwork2_course_files/latech-sample-course-01/tmp/gif/homework_set_intro-prob8-3-69221.gif HTTP/1.1" 404 371 "http://webwork.latech.edu/webwork2/latech-sample-course-01/homework_set_intro/8/?effectiveUser=jje011&displayMode=images&showOldAnswers=1&user=jje011&key=I9cY9eK9q2e30nMei8nvXcjZHdpKmLqU" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0"

------------------


The 2nd problem is with the Hardcopy feature. If I choose to download a hardcopy. It gives these errors: Hardcopy Generator

2 errors occured while generating hardcopy:

* Failed to convert TeX to PDF with command 'cd /opt/webwork/courses/latech-sample-course-01/html/tmp/hardcopy/work.22Lcb9wU && /usr/bin/pdflatex --shell-escape >pdflatex.stdout 2>pdflatex.stderr hardcopy'.

* First error in TeX log is:

! Missing $ inserted.

<inserted text>

$

l.137 noindent{large bf Homework Set homework_

set_intro due 11/30/2006 a...

I've inserted a begin-math/end-math symbol since I think

you left one out. Proceed, with fingers crossed.

A hardcopy file was generated, but it may not be complete or correct: Download Hardcopy

You can also examine the following temporary files: hardcopy.log, hardcopy.aux, pdflatex.stderr, hardcopy.tex, pdflatex.stdout

------------


Now if I try to follow the links to those temporary files I receive:

Not Found The requested URL /webwork2_course_files/latech-sample-course-01/tmp/hardcopy/work.22Lcb9wU/hardcopy.tex was not found on this server.

I can manually goto the hardcopy directory and the files are present:

I have followed the WeBWorK2 FAQ, and enabled storing temporary files

$WeBWorK::PG::ImageGenerator::PreserveTempFiles = 0;

[root@WeBWorK hardcopy]# pwd

/opt/webwork/courses/latech-sample-course-01/html/tmp/hardcopy

[root@WeBWorK hardcopy]# ls -ltr

total 276

drwx-wS--- 2 apache apache 4096 Nov 16 23:31 work.5QvOwu6V

drwx-wS--- 2 apache apache 4096 Nov 16 23:33 work.0nURhleo

drwx-wS--- 2 apache apache 4096 Nov 17 11:21 work.rNxfenG1

drwx-wS--- 2 apache apache 4096 Nov 17 11:22 work.Sgod8QHu

-rw-rw-r-- 1 apache apache 81756 Nov 17 11:22 latech-sample-course-01.gandalf.homework_set_intro.pdf

drwx--S--- 2 apache apache 4096 Nov 17 13:35 work.1n2kH9pz

drwx--S--- 2 apache apache 4096 Nov 17 14:07 work.VLKzEi9h

drwx--S--- 2 apache apache 4096 Nov 17 14:28 work.cGhUj8XO

drwx--S--- 2 apache apache 4096 Nov 17 14:33 work.I5I9XFDb

drwx--S--- 2 apache apache 4096 Nov 17 15:22 work.CKtlv98W

drwx--S--- 2 apache apache 4096 Nov 17 16:11 work.RpIFArGa

drwx--S--- 2 apache apache 4096 Nov 17 18:45 work.4oDX46Jv

drwx--S--- 2 apache apache 4096 Nov 17 19:58 work.22Lcb9wU

-rw-r--r-- 1 apache apache 82273 Nov 17 19:58 latech-sample-course-01.jje011.homework_set_intro.pdf

What seems strange is the graphs are present in the PDF, but not on the web. The directory listing for the courses tmp:

[root@WeBWorK tmp]# pwd

/opt/webwork/courses/latech-sample-course-01/html/tmp

[root@WeBWorK tmp]# ls -ltr

total 32

drwxrwsr-x 2 apache apache 4096 Nov 16 16:14 html

drwxrwsr-x 2 apache apache 4096 Nov 17 11:21 png

drwxrwsr-x 2 apache apache 4096 Nov 17 19:44 gif

drwxrwsr-x 14 apache apache 4096 Nov 17 19:58 hardcopy

no images at all.

And the main webwork tmp:

[root@WeBWorK tmp]# pwd

/opt/webwork/webwork2/tmp

[root@WeBWorK tmp]# ls -ltr

total 16

-rw-rw-r-- 1 root apache 148 Jun 29 2004 README

drwxrwxr-x 2 root apache 4096 Nov 4 00:39 CVS

------------------


I followed the installation instructions: http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/InstallationManualV2pt3

I used defaults for everything, I did not make a ww-data group. The database is sql_single

apache:

[root@WeBWorK html]# httpd -V

Server version: Apache/1.3.37 (Unix)

Server built: Nov 11 2006 00:42:56

Server's Module Magic Number: 19990320:18

Server compiled with....

-D HAVE_MMAP

-D HAVE_SHMGET

-D USE_SHMGET_SCOREBOARD

-D USE_MMAP_FILES

-D HAVE_FCNTL_SERIALIZED_ACCEPT

-D HAVE_SYSVSEM_SERIALIZED_ACCEPT

-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT

-D DYNAMIC_MODULE_LIMIT=64

-D HARD_SERVER_LIMIT=256

-D HTTPD_ROOT="/usr/local/apache"

-D SUEXEC_BIN="/usr/local/apache/bin/suexec"

-D DEFAULT_PIDLOG="logs/httpd.pid"

-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"

-D DEFAULT_LOCKFILE="logs/httpd.lock"

-D DEFAULT_ERRORLOG="logs/error_log"

-D TYPES_CONFIG_FILE="conf/mime.types"

-D SERVER_CONFIG_FILE="conf/httpd.conf"

-D ACCESS_CONFIG_FILE="conf/access.conf"

-D RESOURCE_CONFIG_FILE="conf/srm.conf"

[root@WeBWorK ~]# httpd -l

Compiled-in modules:

http_core.c

mod_env.c

mod_log_config.c

mod_mime.c

mod_negotiation.c

mod_status.c

mod_include.c

mod_autoindex.c

mod_dir.c

mod_cgi.c

mod_asis.c

mod_imap.c

mod_actions.c

mod_userdir.c

mod_alias.c

mod_access.c

mod_auth.c

mod_setenvif.c

mod_perl.c

suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

The server OS is:

[root@WeBWorK ~]# uname -a

Linux WeBWorK.latech.edu 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux

I have included as much information as I can think of that may be needed. This is my first time working with webwork, so I completely expect I have made a simple mistake.

Thanks for your time, James

<| Post or View Comments |>


userJames - Re: Issue with images WW2.3  blueArrow
11/17/2006; 10:49:57 PM (reads: 171, responses: 0)
I resolved the graphs not showing by:

Following: http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$2592

 

Alias /webwork2_course_files/Course_Name_1 /opt/webwork2/courses/Course_Name_1/html
Alias /webwork2_course_files/Course_Name_2 /opt/webwork2/courses/Course_Name_2/html
<Directory /opt/webwork2/courses/*/html>
Options FollowSymLinks
AllowOverride None
</Directory>
I still get an error when I try to view the page with the graphs ( an error in the apache error log ) The macro alias cannot find an HTML file at: |/opt/webwork/courses/latech-sample-course-01/templates/set0/prob4/testing.html| at (eval 194) line 978.

And now I can download hardcopys, but I still get the Tex error.

As well when I generate hardcopys, in the apache error log I get:

pnmtopng: 3 colors found

pnmtopng: 2 colors found

pnmtopng: 4 colors found

pnmtopng: 4 colors found

The macro alias cannot find an HTML file at:

|/opt/webwork/courses/latech-sample-course-01/templates/set0/prob4/testing.html| at (eval 338) line 978.

<| Post or View Comments |>


userDavide P. Cervone - Re: Issue with images WW2.3  blueArrow
11/18/2006; 8:57:27 AM (reads: 170, responses: 0)
From the error message
! Missing $ inserted.
<inserted text>
$
l.137 \noindent{\large \bf Homework Set homework_
set_intro due 11/30/2006 a...
it looks like you have underscores (or perhaps spaces that WeBWorK has replaced with underscores) in your homework set name. Those underscores are what is causing TeX to complain. Try making a homework set without spaces or underscores in its name.

Davide

<| Post or View Comments |>


userArnold K. Pizer - Re: Issue with images WW2.3  blueArrow
11/18/2006; 8:32:14 PM (reads: 159, responses: 0)
If you want to use underscores in set names, you can use the protect_underbar macro.

For example in a set header file you can use the following:

$dateTime = $formatedDueDate; $sectionNumber = protect_underbar($sectionNumber); $setNumber = protect_underbar($setNumber);

BEGIN_TEXT $BEGIN_ONE_COLUMN noindent {$sectionNumber } par noindent $setNumber due $dateTime.

$END_ONE_COLUMN END_TEXT

Arnie

<| Post or View Comments |>


userMichael Gage - Re: Issue with images WW2.3  blueArrow
11/19/2006; 5:42:27 PM (reads: 145, responses: 0)
The errors:

pnmtopng: 3 colors found

pnmtopng: 2 colors found

are normal and harmless. The process converting the graphics is just reporting what it is up to.

As for not finding the course directories -- you probably ran into the AliasMatch problem described in

http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$2592#2595

Using Alias is a good temporary fix, and helps pinpoint the problem, but you will have to add a separate Alias for each new course you add. As best I can tell you may need to recompile apache to repair the AliasMatch failure. See the link above for details. You can also search for AliasMatch in the search box on our website for more discussion.

-- Mike

<| Post or View Comments |>