Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2014-08-26

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

All times shown according to UTC.

Time Nick Message
00:34 mgage joined #webwork
02:41 rbeezer_ joined #webwork
03:09 mgage joined #webwork
03:17 mgage joined #webwork
12:53 mgage joined #webwork
13:13 mgage joined #webwork
13:22 goehle joined #webwork
14:23 mgage joined #webwork
14:28 shdw_work joined #webwork
15:47 aubreyja joined #webwork
15:47 aubreyja joined #webwork
16:33 goehle hey mgage or aubreyja
16:33 goehle do you know anything about this library browser js stuff
16:33 goehle I"m still having trouble
16:34 aubreyja same problem as me - is that what you're talking about?
16:34 mgage hi — a little
16:34 goehle maybe
16:34 goehle the jitar server switched over to https
16:34 goehle and now the library browser doesnt work
16:34 goehle the xml calls fail with
16:34 goehle 500 Can't connect to webwork-jitar.math.ncsu.edu:443
16:34 goehle which is a wierd error
16:35 goehle since https works fine via the browser
16:36 mgage I’ve updated to develop plus a bunch of patches (rather than installing a new setup with jason’s script) and the library works for me
16:37 aubreyja with https?
16:37 mgage that tends to point to a configuration error rather than a bug in the code
16:37 mgage yes
16:38 mgage your server root in site.conf is correct and uses https I assume? (that’s a common problem)
16:38 goehle it is
16:38 aubreyja mine too
16:38 goehle you can see in the error that its trying to connect trhough the ssl port
16:38 goehle and says it can't
16:38 goehle (even though I can connect to that port via a browser)
16:38 mgage right — just double checking — any possibility of certificate errors?
16:39 mgage your browser might send up a message once about the certificate and then stop alerting you — but the xml call probably won’t do that
16:40 aubreyja I'm getting the error from instructorXMLHandler it sounds like geoff's error is different than mine
16:40 goehle I hadn't noticed anything.  My browser says the certificate is verified by internet2
16:40 goehle aubreyja
16:40 goehle thats sort of where my errors are from
16:40 goehle I get an error from that about "result"
16:40 goehle but to track down the acutal error I looked in the apache logs
16:40 aubreyja yeah, ok, that's mine too I think
16:41 aubreyja Can't call method "result" on an undefined value at /opt/webwork/webwork2/lib/WebworkClient.pm line 164.\n
16:41 goehle right
16:41 goehle try going to
16:41 goehle WebworkClient.pm
16:41 goehle and changing line 159 from
16:41 goehle print STDERR "There were a lot of errors\n" if $@;
16:41 goehle to
16:41 goehle print STDERR "There were a lot of errors: $@\n" if $@;
16:41 goehle and then looking at your apache logs
16:42 mgage Jason,  I think your error might be that your error is that the command isn’t defined.  — put a warning message or print to STDERR near line 318 in instructorXMLHandler.pm
16:43 mgage if the xml_command is not defined trace back from there.
16:43 goehle he has the exact same error I do
16:44 mgage you can check also then — it looks like instructorXMLHandler.pm is being called with no command specified — after that all the error messages are misleading
16:45 aubreyja ok goehle, yes: There were a lot of errors: 500 Can't connect to webwork.math.arizona.edu:443 at /opt/webwork/webwork2/lib/WebworkClient.pm line 158
16:47 goehle right
16:47 goehle so why cant the xml service connect but webservers can
16:47 aubreyja mgage - I"m not getting any response to my warn "xml_parameter: $input" at line 319
16:47 goehle I mean web browsers :/
16:48 mgage around line 309 see if the parameter xml_command is defined
16:49 mgage you can also check the other parameters which are supposed to be defined between 303 and 309
16:53 goehle xml_parameters and the $input variable seem to work for me
16:53 mgage what are their values?
16:53 aubreyja I might have missed that when I was looking in the log originally. I'm now seeing e.g. xml_command searchLib
16:53 goehle I'm getting searchLib for the xml_command
16:53 goehle and a hash for $input
16:54 mgage what is the contents of $input->{path}
16:56 mgage actually there might be other parts of input that could cause troubles   join(“ “, %$input) will print out key value pairs — not easy to read, but usually good enough to figure out what is in input
16:56 goehle I'm getting empty
16:56 goehle for that
16:56 aubreyja i get empty $input->{path} at line 289
16:56 mgage so that is the problem  — now to figure out where the parameter isn’t being defined
16:57 goehle acutally they are all empty
16:57 goehle searchLib and displayMode,,mode,images,new_set_name,new set,maxdepth,0,password,,noprepostambles,,open_date,,hide_work,,sendViaJSON,,problem_randorder,,library_subjects,Algebra,session_key,3UXHefAlcC5sFKoh5xJ5JzM01uCqwZzd,showSolutions,0,library_levels,,new_password,,pgCode,,set_props,,assigned_users,,courseID,TestCourse,assignment_type,,subcommand,,source,,section,,users,,library_textsection,,var,,relax_restrict_ip,,set,set0,command,getAllDBchapters,visibl
16:57 goehle e,0,pw,,path,,library_textbook,,answer_form_submitted,1,version_time_limit,,selfassign,,student_id,,userpassword,,fileName,,recitation,,set_header,,userID,grgoehle,hardcopy_header,,version_creation_time,,envir,HASH(0x7fb724e9cbb8),user,grgoehle,id,,hide_score,,email_address,,library_sections,,value,,library_name,Library,permission,0,problem_state,HASH(0x7fb724e96e30),due_date,,library_keywords,,answer_date,,problemSeed,0,hide_score_by_problem,,showHints,0,r
16:57 goehle estricted_login_proctor,,enable_reduced_scoring,0,library_textchapter,,status,,place,,restrict_ip,,last_name,,overrides,,version_last_attempt_time,,versions_per_interval,,library_chapters,,extra_packages_to_load,ARRAY(0x7fb724ea0ae8),time_interval,,modules_to_evaluate,ARRAY(0x7fb724e65940),set_id,,problems_per_page,,comment,,time_limit_cap,,attempts_per_version,,probList,,first_name, at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/instructorXMLHandler
16:57 goehle .pm line 303.<br /></code></blockquote>
16:57 goehle not all
16:57 goehle but a bunch of them
16:57 aubreyja yeah - looks the same I think here
16:58 mgage any idea where the searchLib call is being issued (probably from within the library browser module
16:58 aubreyja yeah, that's my guess - either in the pm file or the javascript
16:58 mgage most of those fields aren’t needed for library lookup — just problem rendering — so it’s probably ok that they are blank
16:59 goehle ./WebworkWebservice/LibraryActions.pm
16:59 goehle ./WebworkWebservice.pm:
16:59 goehle are the only two places with searchLib in the lib folder
17:00 mgage that’s where the call is processed — there is a place in the SetMaker where the call is issued
17:00 mgage i.e. when you select the menu
17:00 goehle that must be the js then
17:00 mgage (possibly in the javaScript )
17:00 goehle yeah
17:00 goehle legacy/setmaker.js
17:02 goehle I'm getting these same type of errors on my ProblemSetDetail2 page
17:02 goehle which uses completely different js
17:02 goehle and is just trying to render a problem
17:05 goehle path is still undefined there
17:07 goehle are you sure its necessary for searchLib, it looks like a problem path
17:15 mgage true but you want to find where the call was issued — for the ProblemSetDetail2 the command was probably renderProblem — in each case the caller had to assemble and send a problem path
17:16 goehle its happening with all calls
17:16 goehle searchLib, renderProblem, addProblem
17:16 aubreyja I'm somewhat suspecting it has to do with how the redirect to https is handled.  I feel like that's what is messing up the instructorXML calls maybe
17:16 aubreyja e.g. I have this in /etc/apache2/sites-enabled/000-default:
17:16 goehle it would explain why it works on some configurations and not others
17:17 aubreyja Redirect permanent /webwork2 https://webwork.math.arizona.edu/webwork2
17:18 goehle interesting
17:18 goehle I have similar redirects
17:18 goehle on the other server I set up (where https works)
17:18 mgage could be the redirect is causing troubles — it might be worth checking that the call is complete when it is sent.  — apparently it’s not complete when it arrives at instructorXML
17:18 goehle I used mod_rewrite
17:18 goehle http://www.sslshopper.com/apache-redirect-http-to-https.html
17:18 goehle RewriteEngine On
17:19 goehle RewriteCond %{HTTPS} off
17:19 goehle RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
17:19 aubreyja where does that go?
17:19 goehle anywhere,  in the mod_rewrite conf if you have one
17:19 goehle I put it in httpd conf and it worked though
17:19 goehle I havent tried on this server
17:23 aubreyja well I put those lines at the bottom of apache2.conf and enabled mod_rewrite and commented out the other redirect, but no luck it seems
17:23 goehle yeah
17:23 goehle turns otu that was commented out in mine
17:23 goehle how are you setting up ssl
17:23 goehle is it through a vhost?
17:23 aubreyja yeah
17:24 goehle so is mine
17:25 rbeezer joined #webwork
17:25 goehle I have a much different setup on the server where this works
17:25 aubreyja hmm...
17:26 goehle i've got some some sort of generic ssl setup
17:26 goehle not for a specific vhost
17:26 aubreyja I think that's how the maa servers are too actually
17:28 goehle yeah so for the server that works I have virtualhost for _default_:443
17:28 goehle some ssl cert stuff and thats about it
17:38 aubreyja do you have DocumentRoot defined in your 000-default site definition?
17:39 goehle on which server?
17:39 aubreyja the broken one
17:39 goehle I dont have a 000-default-site
17:39 aubreyja and the working one I guess too. I have /var/www for DocumentRoot
17:40 aubreyja this is Debian?
17:40 goehle centos
17:40 goehle but my other working one is red hat
17:40 aubreyja ah, for some reason I thought your server was on Debian
17:40 goehle thats my production server
17:40 goehle or my devel server rather
17:40 goehle the one that works is my production server
17:40 goehle and the one that doesnt is the jitar server
17:41 aubreyja is jitar debian?
17:41 goehle thats the centos one
17:41 goehle the one that works (my production one) is red hat
17:41 aubreyja ah, ok
17:50 goehle I've got to get to class
17:50 goehle good luck
17:51 aubreyja ok later can you put your LogLevel on info and tell me if your're seeing
17:51 aubreyja http://pastebin.com/5T79bbzx
18:59 mgage joined #webwork
21:32 mgage goehle: hi
21:55 mgage goehle: hi
22:09 aubreyja :q
22:50 ilbot3 joined #webwork
22:50 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

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