Forum archive 2000-2006

uoy@m... - import_classlist-database.pl error

uoy@m... - import_classlist-database.pl error

by Arnold Pizer -
Number of replies: 0
inactiveTopicimport_classlist-database.pl error topic started 6/17/2004; 10:47:46 AM
last post 6/22/2004; 9:46:37 AM
userluoy@m... - import_classlist-database.pl error  blueArrow
6/17/2004; 10:47:46 AM (reads: 1156, responses: 7)
It was the first time of setting up webwork.

When using "import_classlist-database.pl" to create a classlist db, following error,

Do you wish to continue with the command line script ? (y or n) y content-type: text/html

<HTML><HEAD><TITLE>Error: Classlist Database is unlocked</TITLE></HEAD> <BODY BGCOLOR = 'CCCCCC'>

 

Error: Classlist Database is unlocked

You must lock the classlist database (or move it)
before you can import a new claslist database.



</BODY></HTML>

Anybody can advise how to fix this? Thanks

<| Post or View Comments |>


userArnold K. Pizer - Re: import_classlist-database.pl error  blueArrow
6/17/2004; 1:33:30 PM (reads: 1305, responses: 0)
If you get this error then a classlist database already exists. In that case it is best not to use the command line scrript. Rather go to Prof page/Edit class roster. Then first lock the database (so that no one can alter it while you are working on it) and then use item 6 on that page to import your classlist. This gives you much more control than you have when you use the command line script.

Arnie

PS. I assume that you have professor access to the course. The reason the command line script exists is to give at least one person such access.

<| Post or View Comments |>


userluoy@m... - Re: import_classlist-database.pl error  blueArrow
6/17/2004; 3:34:47 PM (reads: 1289, responses: 0)
But the problem is that I have not been able to use the web interface yet.

There were some other error (I don't recall what it was) when I first ran command, So I re-ran it and got this error.

Is there a way to fix this without using web interface?

Thanks

BTW, I am the administrator of the server.

<| Post or View Comments |>


userArnold K. Pizer - Re: import_classlist-database.pl error  blueArrow
6/17/2004; 3:56:03 PM (reads: 1307, responses: 0)
OK,

I'll talk about the error you saw below, but if you are following the instructions:

Now, we're going to run some scripts to finish setting up the course. As a normal user:

> cd /usr/local/webwork/courses/demoCourse/templates > import_classlist-database.pl demoCourse defaultClasslist.lst > setProfPermissions.pl demoCourse professor

then click the Login button and enter the following information:

login: professor password: 111-11-1111

and things should work.

If they don't, you can start over by removing or renaming the classlist database, e.g. .../demoCourse/DATA/demoCourse_classlist_DB

The error you saw is discussed in http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$1842

To fix it (if you want --- it doesn't prevent the script from working but it does prevent backups being made) do the following:

edit the file .../webwork/system/cgi/cgi-scripts/profImportClasslistDatabase.pl

making the follwing simple changes:

On line 129 change

&backup($path_to_CL_DB); to &back_up($path_to_CL_DB);

and on line 512 change

sub backup { to sub back_up {

 

That is just rename backup to back_up.

Arnie

<| Post or View Comments |>


userluoy@m... - Re: import_classlist-database.pl error  blueArrow
6/18/2004; 9:23:43 AM (reads: 1310, responses: 0)
Thanks for so quick turnaround.

I had this working!

When I logged as professor, I receive this information

Error: /usr/local/webwork/system/cgi/cgi-scripts/welcome.pl No problem sets have been built yet

Is this normal? If yes, I can claim a success! :-)

Thanks again

Frank

<| Post or View Comments |>


userluoy@m... - Re: import_classlist-database.pl error  blueArrow
6/18/2004; 9:48:21 AM (reads: 1305, responses: 0)
I see that is normal.

Next question, when trying to "get_hard_copy" with "PDF form", it failed.

Can't open log file. /usr/local/webwork/system/courses/demo/html/tmp/Temp_downloadAllSets_professor.log

Also at the bottom of the error page, it says "ps generation failed. at /usr/local/webwork/system/cgi/cgi-scripts/welcomeAction.pl line 814"

BTW, I don't think I have installed Ghostscript. Do this matter?

Thanks

<| Post or View Comments |>


userArnold K. Pizer - Re: import_classlist-database.pl error  blueArrow
6/18/2004; 1:35:01 PM (reads: 1296, responses: 0)
Hi Frank,

BTW, I don't think I have installed Ghostscript. Do this matter?

Yes. The installation instructions say:

Next, you will need to install several support programs used by WeBWorK. Most 
distributions include packaged versions of these programs, but they are not
always installed by default. Consult the documentation for your distribution to
find out if you can use a prepackaged version. If you wish, you can also install
from source:



Apache: http://httpd.apache.org/
Ghostscript: http://www.cs.wisc.edu/~ghost/
LaTeX2HTML: http://www.latex2html.org/
Netpbm: http://netpbm.sourceforge.net/
teTeX: http://www.tug.org/teTeX/
dvipng: http://hobbes.la.asu.edu/webwork-stuff

Once you get this stuff installed if you still have problems (you shouldn't), look at .../webwork/system/lib/Global.pm and read there about

##################### # Debugging screen and hard copy output problems #####################

Arnie

<| Post or View Comments |>


userluoy@m... - Re: import_classlist-database.pl error  blueArrow
6/22/2004; 9:46:37 AM (reads: 1277, responses: 0)
Thanks. I got this working. THe system had several installation of teTexa and messed up. After cleaning it up, now it works just fine.

Thanks

<| Post or View Comments |>