Forum archive 2000-2006

Jun Wang - Still having trouble with Library Browser

Jun Wang - Still having trouble with Library Browser

by Arnold Pizer -
Number of replies: 0
inactiveTopicStill having trouble with Library Browser topic started 9/15/2004; 11:30:40 AM
last post 9/20/2004; 5:34:06 PM
userJun Wang - Still having trouble with Library Browser  blueArrow
9/15/2004; 11:30:40 AM (reads: 1891, responses: 10)
We are still have trouble to load up the library browser. We are using MySQL and now there is just a title "Set Maker" when library browser is selected.

The rochesterLibrary is in the webwork2 directory. I created a link in the templates directory of the course. I tried modifying global.conf and I tried to edit course.conf. But there is just no buttons show up in the Library Browser.

I also tried to load the library database in MySQL. When using ./redodb I got the following error message:

Converts data from tagged pgfiles into mysql. Can't connect to data source , no database driver specified and DBI_DSN env var not set at ./loadDB.pl line 52

Any idea how I could get these buttons show up? Thanks.

Jun

<| Post or View Comments |>


userMichael Gage - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 1:17:34 PM (reads: 2144, responses: 0)
type Problem Library into the search field (in left margin) and you will find a number of posts addressing this issue. Among them:

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

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

and

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

as well as some comments on the wiki at

http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/ProblemLibraries

The library database in mySQL ("Problem Library") is not quite ready for prime time yet, so you may not be able to get it to work. You should be able to get the "Rochester" library to show up however. If you've read the above, then post details of (1) what is in your global.conf relevant to the problem library, (2) where the problem library directory is located, (3) where and how you are creating the link.

With that info we may be able to spot where the trouble lies.

<| Post or View Comments |>


userJun Wang - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 3:30:26 PM (reads: 2114, responses: 0)
Mike,

I followed these discussions and tried all of them, it was that just nothing happened to the browser.

(1) In the global.conf, I tried

$courseFiles{problibs} = {rochester => "rochesterLibrary"}; and I also tried

$courseFiles{problibs} = true;

(2) The problem libraries are in /usr0/opt/webwork2 directory. I have Rochester library named rochesterLibrary and the one from Arizona State named Library;

(3) I created a course named MAT256, in the templates directory of this course, I created a link by typing:

ln -s /usr0/opt/webwork2/rochesterLibrary rochesterLibrary;

I also created a link to the WeBWorK1.9 libary by

ln -s /usr/local/webwork/templates rochester.

These links actually work and I can get to these directories.

(4) In the course.conf, I also tried

$coursefile{problibs}={Library => 'rochester'}

but it did not help.

Jun

<| Post or View Comments |>


userMichael Gage - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 3:50:50 PM (reads: 2108, responses: 0)
ln -s /usr0/opt/webwork2/rochesterLibrary rochesterLibrary;

so there is a link named rochesterLibrary in MAT256/templates.

In course.conf define:

 

$courseFiles{problibs} = {rochesterLibrary => "Rochester"};

Now a button called Rochester should appear. The key in the hash is the name of the link in the templates directory. The value is the word that will appear on the button.

Once you get this working you can remove the entry in course.conf and place it in global.conf instead. Then a "Rochester" button will appear for every course that has a subdirectory of the templates directoy named rochesterLibrary (or has a link named rochesterLibrary)

Let us know if this works.

-- Mike

<| Post or View Comments |>


userJun Wang - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 4:16:46 PM (reads: 2112, responses: 0)
Mike,

I tried, in course.conf,

$coursefiles{problibs}={rochesterLibrary => 'Rochester'}; and #$courseFiles{problibs}={rochesterLibrary=>"Rochester"};

Nothing happened to the Browser. All other tools seem to be fine but this browser.

In this course MAT256, the files are:

total 36
drwxr-sr-x 7 jwang wwserver 4096 Sep 15 15:03 .
drwxrwsr-x 6 root wwserver 4096 Sep 8 10:36 ..
-rw-r--r-- 1 jwang wwserver 3905 Sep 15 15:03 course.conf
-rw-r--r-- 1 jwang wwserver 3905 Sep 15 15:03 course.conf~
drwxr-sr-x 3 jwang wwserver 4096 Sep 8 10:36 DATA
drwxr-sr-x 4 jwang wwserver 4096 Sep 8 10:36 html
drwxr-sr-x 2 jwang wwserver 4096 Sep 8 10:36 logs
drwxr-sr-x 2 jwang wwserver 4096 Sep 8 10:36 scoring
drwxr-sr-x 4 jwang wwserver 4096 Sep 15 14:44 templates

In the templates directory, files are:

drwxr-sr-x 4 jwang wwserver 4096 Sep 15 14:44 .
drwxr-sr-x 7 jwang wwserver 4096 Sep 15 15:03 ..
drwxr-sr-x 2 jwang wwserver 4096 Sep 8 10:36 email
drwxr-sr-x 2 jwang wwserver 4096 Sep 8 10:36 macros
lrwxrwxrwx 1 jwang wwserver 28 Sep 15 14:11 rochester -> /usr/local/webwork/templates
lrwxrwxrwx 1 jwang wwserver 35 Sep 13 15:15 rochesterLibrary -> /usr0/opt/webwork2/rochesterLibrary

In /usr0/opt/webwork2, files are:

total 80 drwxr-xr-x 14 root wwserver 4096 Sep 13 15:12 .
drwxr-xr-x 4 root wwserver 4096 Aug 17 14:51 ..
drwxr-xr-x 3 root root 4096 Aug 12 11:42 bin
drwxrwsr-x 5 root root 4096 Sep 15 14:59 conf
drwxrwsr-x 6 root wwserver 4096 Sep 8 10:36 courses
drwxr-xr-x 2 root root 4096 Aug 11 14:22 CVS
drwxrwsr-x 4 root wwserver 4096 Aug 23 11:50 DATA
drwxr-xr-x 5 root root 4096 Aug 11 14:22 doc
drwxrwsr-x 8 root root 4096 Aug 11 14:22 htdocs
-rw-r--r-- 1 root wwserver 0 Aug 12 13:39 index,hrml
-rw-r--r-- 1 root wwserver 0 Aug 12 13:39 index.html
drwxr-xr-x 5 root root 4096 Aug 11 14:22 lib
drwxr-xr-x 7 jwang wwserver 4096 Sep 10 10:54 Library
-rw-r--r-- 1 root root 1529 Jul 23 12:48 LICENSE
drwxrwsr-x 3 root wwserver 4096 Aug 11 14:22 logs
-rw-r--r-- 1 root wwserver 0 Aug 16 15:36 nohup.out
-rw-r--r-- 1 root root 2924 Jul 23 12:48 README
drwxr-xr-x 240 jwang wwserver 20480 Jul 27 14:37 rochesterLibrary
drwxrwsr-x 3 root wwserver 4096 Aug 11 14:22 tmp

Are we missing anything? Jun

<| Post or View Comments |>


userMichael Gage - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 5:09:16 PM (reads: 2120, responses: 0)
In course.conf try:

 

#$coursefiles{problibs}={rochesterLibrary => 'Rochester'}
and
$courseFiles{problibs}={rochesterLibrary=>"Rochester"}



The variable has a capital F in it.

The directory structure looks fine.

-- Mike

<| Post or View Comments |>


userJun Wang - Re: Still having trouble with Library Browser  blueArrow
9/15/2004; 5:42:10 PM (reads: 2095, responses: 0)
Mike, I tried the capital F first. I also tried the double quotation and the single quotation. There are just no buttons in the Browser. Also, it is the same no matter we create a GDBM course or a MySQL course. I hope it has nothing to do with the WeBWorK2 installation (everything now seems fine except for this Browser). Could it be something with the Admin course setup? I remember that somewhere it says one can not use the Browser in the Admin course. Jun

<| Post or View Comments |>


userLars Jensen - Re: Still having trouble with Library Browser  blueArrow
9/16/2004; 10:27:17 PM (reads: 2102, responses: 0)
Hi,

This is what we did:

1) create a wwlib directory under the courses/ in the webwork2 directory - Make the rochester_problib a subdirectory of the wwlib directory, and similarly with the asu_problib, and any other libraries.

2) then create a course (named say, testcourse) and make symbolic links in its templates directory to courses/rochester_problib and similarly to all the other libraries. That is, from the testcourse/templates directory:

ln -s ../../wwlib/rochester_problib .

ln -s ../../wwlib/asu_problib .

3) when creating a new courses, I simply duplicate the testcourse I created - this automatically included all symboic links.

We didn't touch the course.conf or global.conf files.

Above procedure has worked for us in both gdbm and mysql courses.

Lars.

<| Post or View Comments |>


userJun Wang - Re: Still having trouble with Library Browser  blueArrow
9/17/2004; 1:46:14 PM (reads: 2083, responses: 1)
Thanks, Lars,

Tropical Storm Ivan came through here yesterday and knocked the power off at our school. The school is closed and probably our server won't be up until Monday. I will try that when I get a chance.

Jun

<| Post or View Comments |>


userJun Wang - Re: Still having trouble with Library Browser  blueArrow
9/20/2004; 4:27:07 PM (reads: 2350, responses: 0)
After 2-week's frustration, I called it quit. Then the Hurrican Ivan came and knocked the power off. Today our adminstrator restarted the webserver server and his MySQL server, I was stunned to see that all buttons showed up. Now it seems everything is ok but I do not know why. I know MySQL only by its name so I hope that these buttons will stay. Thanks everybody. Jun.

<| Post or View Comments |>


userMichael Gage - Re: Still having trouble with Library Browser  blueArrow
9/20/2004; 5:34:06 PM (reads: 2039, responses: 0)
It's possible that a webwork server reboot is needed after changing the contents of global.conf, although, since global.conf is read with every page served, I would have predicted that a reboot was not necessary.

-- Mike

<| Post or View Comments |>