## Forum archive 2000-2006

### Ben Pollina - showOldAnswers in WW2.1.3

by Arnold Pizer -
Number of replies: 0
 showOldAnswers in WW2.1.3 topic started 8/31/2006; 7:07:47 PMlast post 9/15/2006; 8:47:28 AM
 Ben Pollina - showOldAnswers in WW2.1.3  8/31/2006; 7:07:47 PM (reads: 536, responses: 13) We've recently upgraded to WW2.1.3. If a student types in an answer, moves to another problem and then returns to the previous one, the old answer is gone (answer box is blank). We have $pg{options}{showOldAnswers} = 1; in global.conf and the Show Past Answers page does seem to have all of the students previous work. Any ideas? Ben Pollina University of Hartford <| Post or View Comments |>  Ben Pollina - Re: showOldAnswers in WW2.1.3 9/2/2006; 6:58:30 AM (reads: 580, responses: 0) Here are two additional pieces of information. Any answers entered before the upgrade are being shown when I return to a problem page. I've also noticed that when I get an email from a student, the last_answer is shown in base64 encoding. Ben Pollina <| Post or View Comments |>  Michael Gage - Re: showOldAnswers in WW2.1.3 9/4/2006; 7:29:30 PM (reads: 575, responses: 0) Hi Ben, It seems to me that I remember running in to this phenomenon at some point. (I know that sometime around this time we switched to encoding the last_answer with base64 encoding to prevent occasional data corruption. I think we fixed this bug or a similar bug but I haven't found the exact reference in bugzilla yet. I'd feel a bit more comfortable trouble shooting this is if you could upgrade to rel-2-3-dev which is just coming out -- that we way I know that you have all the lastest fixes. (and if there are bugs I have them too so I can get right on them.) Since you are already upgrading this will only be a moderate hassle. You will have to make changes to global.conf and database.conf so I recommend saving a backup copy of the entire webwork2/conf directory before upgrading to use for reference. You can email me if you'd like me to try to look at your installation from here. (gage at math.rochester.edu) Take care, Mike cvs -dP update -r rel-2-3-dev will do upgrade from the CVS if you your current installation is installed from there. <| Post or View Comments |>  Ben Pollina - Re: showOldAnswers in WW2.1.3 9/5/2006; 4:38:25 PM (reads: 564, responses: 0) Mike, Thanks for your response. Since I wrote my earlier messages, I have found references to this problem elsewhere on the discussion board (msgReader$3717, 9/4/05). Those references suggest that upgrading to the 2-1-3 patches should cure the problem. When we upgraded late this summer, we decided not to go to WW2.2 because we were somewhat timid about changing our existing courses over to sql_single, and now I'm even more reluctant since our semester is underway. I'd like to try to install the 2-1-3 patches, but I've never installed using CVS. What I've read indicates that it is possible to do this even if I didn't do the original installation via CVS, but I can't quite figure out how to go about it. Am I right about this, and if so, can you tell me how to use CVS to install the patches? Ben <| Post or View Comments |>

 Sam Hathaway - Re: showOldAnswers in WW2.1.3  9/5/2006; 6:15:24 PM (reads: 569, responses: 0) Hi Ben, From your base webwork2 directory, run: cvs -q up -dP -r rel-2-1-patches Then switch to your base pg directory, and run the same command. Then restart Apache. If you want to go back to 2.1.3, follow the same process, but run: cvs -q up -dP -r rel-2-1-3 Hope this helps. -sam <| Post or View Comments |>

 Michael Gage - Re: showOldAnswers in WW2.1.3  9/5/2006; 8:07:23 PM (reads: 556, responses: 0) I see your point. I wouldn't make a change that updates the database in the middle of a semester. We have suggestions for making this switch when you are ready. <| Post or View Comments |>

 Ben Pollina - Re: showOldAnswers in WW2.1.3  9/11/2006; 5:13:22 PM (reads: 497, responses: 0) Mike, Sam, I finally got around trying Sam's suggestion above. I ran cvs -q up -dP -r rel-2-1-patches as root in /opt/webwork2. It produced the following: The immediate response was the following warning cvs update: warning: failed to open /root/.cvspass for reading: No such file or directory It continued for awhile and then issued the following cvs update: warning: cannot open /webwork/cvs/system/CVSROOT/val-tags read/write: Permission denied Again, it continued until the following Warning: Permanently added 'cvs.webwork.rochester.edu,128.151.231.10' (DSA) to the list of known hosts. anoncvs@cvs.webwork.rochester.edu's password: Permission denied, please try again. I didn't know the password, so it aborted. Any suggestions? I can send you the entire response to the command, if you think that might help. Ben <| Post or View Comments |>

 Sam Hathaway - Re: showOldAnswers in WW2.1.3  9/12/2006; 9:58:58 AM (reads: 471, responses: 0) Hi Ben, What are the contents of the CVS/Root files under your webwork2 directory? A while ago, we switched from using SSH-based anonymous CVS to the normal pserver method. So if your CVS/Root files look like :ext:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/system then you need to change those files to :pserver:anoncvs@cvs.webwork.rochester.edu:/webwork/cvs/system Easy way to do that: find . -regex '.*/CVS/Root' -print0 | xargs -0 perl -pi -e 's/^:ext:/:pserver:/' Hope this helps. -sam <| Post or View Comments |>

 Ben Pollina - Re: showOldAnswers in WW2.1.3  9/12/2006; 10:23:53 AM (reads: 470, responses: 0) Sam, All the CVS/Root files have the pserver designation. Ben <| Post or View Comments |>

 Sam Hathaway - Re: showOldAnswers in WW2.1.3  9/12/2006; 11:11:25 AM (reads: 473, responses: 0) Hi Ben, That's odd, because it's definitely trying to use SSH: Warning: Permanently added 'cvs.webwork.rochester.edu,128.151.231.10' (DSA) to the list of known hosts. What output do you get if you omit the -q switch? -sam <| Post or View Comments |>