Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2013-05-31

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:23 mgage_ joined #webwork
03:48 mgage_ joined #webwork
07:46 _ilbot joined #webwork
07:46 Topic for #webwork is now WeBWorK (http://webwork.maa.org) is an open-source online homework system for math and sciences courses. WeBWorK is supported by the MAA and the NSF. | Release notes: http://goo.gl/Ry5HN | Channel logged at http://goo.gl/jELTn
11:05 mgage_ joined #webwork
12:55 aubreyja joined #webwork
14:06 hij joined #webwork
14:07 hij Hello, I am interested in trying to add a statistics graphics class. For example, we would like to be able to print boxplots and histograms dynamically.
14:07 hij As a first step I clones a copy of the webworks repository on github and tried to set up a local machine based on the master branch.
14:08 hij We have been having a devil of a time getting it running. The permissions routines for the admin account appear to be missing in the DB class.
14:08 hij What should we be doing to get this up and running?
14:47 aubreyja joined #webwork
15:48 aubreyja mgage: around?
17:42 _ilbot joined #webwork
17:42 Topic for #webwork is now WeBWorK (http://webwork.maa.org) is an open-source online homework system for math and sciences courses. WeBWorK is supported by the MAA and the NSF. | Release notes: http://goo.gl/Ry5HN | Channel logged at http://goo.gl/jELTn
17:52 adarobin joined #webwork
17:53 adarobin Anyone willing to help me with an issue setting up OPL?
17:59 aubreyja sure, what's up?
18:00 adarobin I cloned everything from git and then I am attempting to run OPL-update but I receive this message:
18:00 adarobin [root@webwork ~]# OPL-update
18:00 adarobin Library version is 2.5; using OPLtables!
18:00 adarobin Mysql database reinitialized.
18:00 adarobin Reading in textbook data from Textbooks in the library /opt/webwork/libraries/webwork-open-problem-library/OpenProblemLibrary.
18:00 adarobin DBD::mysql::db do failed: Incorrect integer value: '' for column 'textbook_id' at row 1 at /opt/webwork/webwork2/bin/OPL-update line 352, <IN> line 8.
18:06 adarobin Also having an issue with the Blackboard building block (which I think our Blackboard admin got from you).
18:07 adarobin Had to hack /etc/hosts so that Missouri's webwork server resolved to the IP of our webwork server because the BuildingBlock seems to be ignoring the config we put in for the host.
18:20 ionparticle hi hij, are you having problems with accessing the admin course?
18:24 hij Hello! @ionparticle - yes. I have set up the admin course, but I cannot create a new course.
18:25 hij I made a rather inelegant hack and did manage to make a course, but now I am having another problem with the database. I cannot create a new problem set to start playing with the pg modules for the graphics.
18:26 hij I should say - when I go into the new course that was created everything looks fine. I go into the instructor tools and try to create a new course it throws an error.
18:29 ionparticle ok, that's weird
18:29 * hij agrees
18:29 ionparticle when you were trying to create a course using the admin course, did it give an error?
18:30 hij Yes. It appeared to be a problem with permissions.
18:30 hij I basically hacked around it and set it up to ignore permissions, and I was able to create the class.
18:30 hij the *admin* course
18:30 ionparticle did you use the addcourse script to create the admin course?
18:31 hij Yes. I followed the directions on the wiki.
18:31 hij It did not create the admin user that is in the adminCourse.lst file.
18:31 hij I had to use the wbsh file to create the admin account for that course.
18:34 ionparticle maybe the admin user got set up with student permissions
18:35 * hij nods
18:36 hij I tried to follow the directions in the bin/addadmin file: $db->addPermissionLevel($db->newPermissionLevel(user_id=>"admin", permission=>"10"));
18:36 ionparticle so there's no Instructor Tools section in the menu for the admin course?
18:36 hij Right now it just throws an error when I try to log in as admin.
18:37 hij I reverted it once I set up the trial course.
18:37 * hij is grateful for "git reset" when it comes to ugly hacks.
18:38 ionparticle ok, let's try deleting the admin course and recreating it
18:39 hij sure?
18:39 ionparticle use the delcourse script
18:39 ionparticle ./delcourse admin
18:39 hij okay, hold on. I was in the middle of playing with something else.
18:39 hij What about the trial course? Shoudl I leave it?
18:39 aubreyja sorry - brb
18:39 ionparticle yeah, leave it
18:39 * hij nods
18:39 hij okay - one second
18:40 hij ugh.... it threw an error - missing DESTROY. I can fix that though - one second
18:42 ionparticle hmm, is there some missing perl modules?
18:42 hij I ran the check modules script and all looked good?
18:43 hij okay - deleted.
18:43 ionparticle ok, let's check the contents of adminClasslist.lst
18:43 hij I did this: ./delcourse admin
18:43 ionparticle before recreating it
18:43 hij # $Id: adminClasslist.lst,v 1.2 2009-06-26 00:58:52 gage Exp $
18:43 hij # Field order: student_id,last_name,first_name,status,comment,section,recitation,email_address,user_id,password,permission
18:43 hij admin,Administrator,,C,,,,,admin,.bxpcera4I/bg,10
18:44 ionparticle that looks fine
18:44 * hij nods
18:44 aubreyja Hi adarobin - back - are you still around?
18:44 adarobin yup
18:44 ionparticle so are you running addcourse in the courses directory?
18:45 hij I cd'ed to the bin directory to run it
18:45 aubreyja ok, so you're having a problem with OPL-update and the building block?
18:45 adarobin yes
18:45 aubreyja what's the problem with the building block
18:46 adarobin well we put in our server in the config for the building block, but it keeps trying to connect to your server
18:46 ionparticle ok, maybe it didn't find the adminClasslist.lst file
18:46 adarobin had to edit /etc/hosts so that it thinks your server is our server :-)
18:46 hij I used the explicit path from /
18:46 aubreyja how do you know it is trying to access our server?
18:46 adarobin tcpdump
18:47 aubreyja ok, interesting...
18:47 aubreyja do you have access to the blackboard admin functions? (e.g. for installing building blocks)
18:47 adarobin yes
18:47 adarobin at least on our test instance
18:47 ionparticle haha, you seem to have done everything right
18:47 ionparticle could you run addcourse again
18:47 hij :-(
18:47 hij yes
18:48 hij I left the wiki page - one second. I will try to find it again.
18:48 hij Should I run it from the courses directory?
18:48 ionparticle might as well
18:48 aubreyja ok, just a sec - I want to grep through the building block code to see if we're hardwired in anywhere we shouldn't be
18:48 ionparticle could be that the script isn't handling paths correctly
18:49 adarobin i saw some code that looked weird to me in the part where it parses the config file, but I'm not much of a java programmer
18:49 aubreyja could be - i'll check
18:50 hij This is what I get from the wiki:
18:50 hij ../../webwork2/bin/addcourse admin --db-layout=sql_single --users=/usr/local/src/webwork2/git/courses/adminClasslist.lst --professors=admin
18:50 hij Is that rightish?
18:50 ionparticle --users=adminClasslist.lst
18:50 ionparticle should be fine in the courses directory
18:50 hij No directory?
18:50 hij err path
18:51 ionparticle there should be a copy of adminClasslist.list in the courses directory
18:51 hij yes
18:51 hij I will try it....
18:51 ionparticle so if you run it from there, it shouldn't need a pth
18:51 ionparticle path*
18:51 ionparticle I'm wondering if it didn't like the path for some reason
18:52 hij I just did it.
18:52 ionparticle no errors?
18:52 hij authentication error.
18:52 ionparticle for the database?
18:53 hij I got ownership issues on the directories it created as well. I need to fix that.
18:53 aubreyja adarobin - can you give me an example of a  url + web service method that is trying to hit our server?
18:53 hij I did get this message at the end of the addcourse command:
18:53 hij DBD::mysql::db do failed: Specified key was too long; max key length is 1000 bytes
18:55 hij I changed the ownership of the files to the same process that owns http.
18:55 hij I do not get that error, but I cannot log in as admin w/ password admin.
18:56 adarobin sorry, trying to get logged in
18:56 ionparticle ok, let's try 2 things
18:57 * hij nods
18:58 hij I need to leave in about two minutes. I need to go pick up my daughter.
18:58 ionparticle ah, ok
18:58 ionparticle first, the database error
18:58 hij which one?
18:59 ionparticle <hij> DBD::mysql::db do failed: Specified key was too long; max key length is 1000 bytes
18:59 adarobin when i attempt to create a new assignment in blackboard I see it trying to make rpc connections to the wrong server
18:59 * hij nods
18:59 adarobin root@bb1-test:~# tcpdump port 80
18:59 adarobin tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
18:59 adarobin listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
18:59 adarobin 14:57:48.946048 IP bb1-test.oel.umflint.edu.42742 > webwork.math.missouri.edu.http: S 1438511660:1438511660(0) win 5840 <mss 1460,sackOK,timestamp 76073330 0,nop,wscale 7>
18:59 adarobin 14:57:48.947115 IP webwork.math.missouri.edu.http > bb1-test.oel.umflint.edu.42742: S 413766352:413766352(0) ack 1438511661 win 14480 <mss 1350,sackOK,timestamp 2669014879 76073330,nop,wscale 6>
18:59 adarobin 14:57:48.947130 IP bb1-test.oel.umflint.edu.42742 > webwork.math.missouri.edu.http: . ack 1 win 46 <nop,nop,timestamp 76073330 2669014879>
18:59 adarobin 14:57:48.947441 IP bb1-test.oel.umflint.edu.42742 > webwork.math.missouri.edu.http: P 1:766(765) ack 1 win 46 <nop,nop,timestamp 76073330 2669014879>
18:59 adarobin 14:57:48.947970 IP webwork.math.missouri.edu.http > bb1-test.oel.umflint.edu.42742: . ack 766 win 251 <nop,nop,timestamp 2669014880 76073330>
18:59 ionparticle do you default your database to utf-8 encoding?
18:59 hij I do not know. I am not sure where that is configured.
18:59 adarobin it works though because i pointed webwork.math.missouri.edu to our server with /etc/hosts
18:59 adarobin my boss just told me I have to go to a meeting though :-(
19:00 aubreyja ok - I'll try to track this down -catch me later and I might have some answers :)
19:00 ionparticle it's in mysql config somewhere
19:00 adarobin cool
19:00 ionparticle that could be causing the error
19:00 * hij nods
19:00 hij that is something like mysql.cnf or some such thing???
19:01 ionparticle also, we should try to make it so that addcourse runs without directory permission errors
19:01 hij my.cnf in /etc/mysql
19:01 hij character-set-server            = utf8
19:01 ionparticle maybe you can run it with sudo first and then chown it all back to the apache user
19:01 hij that is in my.cnf
19:01 ionparticle yeah, that could be it
19:01 ionparticle set it to latin1 when you have a chance and retry it
19:02 hij I see default-character-set=utf8 in a number of places.
19:02 hij Should they all be changed?
19:03 ionparticle sorry, never done it before
19:03 ionparticle I'm actually trying to remember how Webwork creates its databases
19:04 hij I replaced them all and just restarted mysql.
19:04 aubreyja him - did you post the text of the error you get when  you try to create a new course? I don't see it in the history
19:04 aubreyja hij
19:04 hij I apologize, but I really need to head out.
19:04 hij Yes, it was up there somewhere. That was for the admin course.
19:05 ionparticle no worries, feel free to come back when you have time
19:05 aubreyja kk, one of us will be on later  - I'll look
19:05 hij DBD::mysql::db do failed: Specified key was too long; max key length is 1000 bytes
19:05 hij Thank you!
19:05 hij bye bye for now, and I need to go. Have a great evening/morning!
19:05 ionparticle you too :)
19:23 adarobin aubreyja, i'm back now
19:24 aubreyja I think I may have found the problem.
19:25 aubreyja I compared the 2.1 version to the 2.2 version and it seems that the 2.2 version has our url hardcoded in WebworkSOAPSoapBindingStup.java, but the 2.1 version takes it from the config file. I'm double checking that this is indeed the issue
19:26 adarobin cool
19:28 aubreyja yeah, check out e.g. line 110 of
19:28 aubreyja https://github.com/aubreyja/webworkBuildingBlock/blob/master/BuildingBlock_Missouri/EclipseProject_2.1/src/edu/missouri/math/webwork/WebworkSOAP/WebworkSOAPSoapBindingStub.java
19:28 aubreyja vs
19:28 aubreyja https://github.com/aubreyja/webworkBuildingBlock/blob/master/BuildingBlock_Missouri/WebWrks2_2/src/edu/missouri/math/webwork/WebworkSOAP/WebworkSOAPSoapBindingStub.java
19:29 adarobin Heh, that will do it.
19:30 aubreyja yep.  I'll double check that this is the only difference between the two files and rebuild the war with fixes - give me about 15 minutes
19:30 adarobin Awesome, thank you.
20:10 aubreyja okey-dokey - you can try the new (and hopefully improved) webworkBuildingBlock.war...
20:10 aubreyja adarobin
20:11 aubreyja oh, and it's at https://github.com/aubreyja/webworkBuildingBlock
20:22 adarobin about to install it
20:29 adarobin Still doesn't seem to be working right, so I'm restarting Blackboard.
20:31 aubreyja can you try the tcpdump again and lemme know where it's pointing now - hopefully we at least solved that problem
20:34 aubreyja joined #webwork
20:34 aubreyja I've got to run, but feel free to email me aubreyja@gmail.com
20:34 adarobin still is wrong root@bb1-test:~# tcpdump port 80
20:34 adarobin tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
20:34 adarobin listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
20:34 adarobin 16:34:13.830444 IP bb1-test.oel.umflint.edu.45056 > webwork.math.missouri.edu.http: S 632677892:632677892(0) win 5840 <mss 1460,sackOK,timestamp 81858180 0,nop,wscale 7>
20:35 adarobin I'll shoot you a message sometime next week
20:35 adarobin have a good weekend
22:52 aubreyja joined #webwork
23:17 aubreyja joined #webwork
23:21 aubreyja joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary