Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2015-05-18

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

All times shown according to UTC.

Time Nick Message
00:30 mgage joined #webwork
01:37 mgage joined #webwork
02:42 rbeezer joined #webwork
12:44 mgage joined #webwork
14:23 shdw_work joined #webwork
14:29 goehle joined #webwork
16:47 Brando753 joined #webwork
17:25 mgage joined #webwork
17:44 eee-blt joined #webwork
17:55 eee-blt Hi, anybody listening?
17:56 eee-blt I just upgraded our ww server over the weekend from 2.5 to 2.10 (develop).
17:56 eee-blt That largely went without hiccups, but there are a couple things I wanted to ask about
18:03 goehle sure
18:04 goehle eee-bit
18:06 eee-blt Ok, I followed the notes on the wiki (http://webwork.maa.org/wiki/Release_notes_for_WeBWorK_2.10 and http://webwork.maa.org/wiki/Upgrading_WeBWorK_with_Github). When I went to upgrade courses, I ran into a bunch of permission errors on the webserver, which I fixed.
18:06 eee-blt In the end, I was left with a "clean" upgrade *except* a cryptic message that course ids were missing.
18:06 goehle hmm
18:06 goehle where are you getting this message?
18:07 eee-blt From the admin page.
18:07 goehle what is the exact message?
18:09 eee-blt Crap, I know you would ask that. I didn't note it down, but it was along the lines of "non-existent course ids" with the name of a perl file with a similar name.
18:09 eee-blt Are these messages logged on the server?
18:10 goehle if you have debug turned on
18:10 goehle which you most likely do not
18:11 eee-blt That's a good guess.
18:12 goehle did you delete any course folders?
18:12 goehle or chmod them so they are not readable by the web server?
18:14 eee-blt No, what I did was move the entire /opt/webwork directory, and then I copied the courses directory into the new directory. When I did that, I was using dired-mode in emacs which did not preserve ownership. So after a few mis-starts, I chmodded everything back to the correct permissions.
18:15 goehle hmm.
18:15 goehle did anything unusual happen when you upgraded the tables?
18:16 eee-blt Nothing that seemed unusual to me, just some messages about extra tables in the old db.
18:16 goehle ok
18:16 goehle I don't recognize the error as a common one
18:16 goehle and without knowing what it is, i'm having trouble tracking it down
18:17 goehle it sounds like maybe you had extra courses in your db that didn't have associated directories or vice versa
18:17 goehle but that is just a guess
18:17 goehle I could very well be wrong
18:17 eee-blt Yes, that is exactly it. I only moved recent courses, not the entire history.
18:17 goehle ah, ok
18:18 goehle so webwork expects every course in the db to have an associated course folder
18:18 eee-blt I see. Ok, so rather than monkeying with the db, I should cp all the directories in courses/
18:19 goehle I would do that
18:19 goehle then you can use the web interface to archive/delete old ones
18:19 goehle that will create tar files with both the course files and backups of the databases
18:20 goehle you can also just hide them from the front page
18:20 goehle if you want them to be accessible, but not clutter up the student view
18:20 eee-blt Ok. I have hidden some directories already.
18:21 goehle so hidden directories and courses arent the same
18:21 goehle the course directory is the same
18:21 goehle but there is an empty hide_directory file
18:21 goehle in the course folder that controls if the course is shown on the front page
18:22 eee-blt Sorry, yes, I figured out the hide_directory thing. So I have some courses hidden like that and some just don't have a directory although they are in the db.
18:22 goehle right
18:22 goehle they should all have a directory
18:22 eee-blt Yes.
18:23 eee-blt A question: can I run the upgrade with users on the system or do I need to be offline?
18:23 eee-blt upgrade = upgrade courses
18:24 goehle you can upgrade with users on the system because any code which is trying to use an old database will fail
18:25 goehle so your users will be seeing error pages until you do upgrade the courses
18:41 eee-blt ok
18:43 eee-blt I ran into one other problem when upgrading ww: in the library browser, the "Add" button no longer works. When I look at the apache error.log, I see messages like
18:43 eee-blt [Sun May 17 11:01:24 2015] [error] [client *****] File does not exist: /var/www/webwork2, referer: https://webwork.math.****.edu/MdbI3EpBC2XAAL3y/ltb-test/instructor/setmaker/
18:44 goehle did you update your apache conf file to included the latest additions to the distributed apache conf file?
18:45 eee-blt Yes, you mean conf/webwork.apache2-config
18:47 goehle are you able to select subjects and chapters and courses using the library browser?
18:49 eee-blt Yes. And I can add questions by editing, then saving a copy to the course...
18:51 goehle the add button is a different javascript based pathyway
18:51 goehle although since you can select subjects and chapters and what not it must be working to some extent
18:52 eee-blt Yeah, I had figured that out. I don't understand why the request is looking for /var/www/webwork2
18:53 goehle neither do I
18:55 goehle that should be aliased by the apach econfig file

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