To outline what I did, I backed up the DB on the original server as well as gathered up the important bits of information and files that I needed. I then took the easy way out and used the Vanilla Live DVD since everything was setup and I knew it should work...
I installed the server and software using the Live DVD, I then backed up the DB that shipped with the disk and then restored the DB from the old server, I then copied the files from the old server onto the locations on the new server, made the configuration changes that needed to be made and then looked at the server, upgraded the courses that were now on the server and it seemed to be OK to me. I could create a new course, archive it, unarchive it and do what limited things I knew to try. I then handed it over to the faculty who will be using it to teach and of course they quickly found an issue...
When trying to unarchive an old course, they get the following errors (I have cleaned up the course name, instructor's name as well as the server information from the errors):
Initial error when unarchiving the course. It created the class on the course list. From what I have found, this doesn't appear to be a major issue...
WeBWorK error
An error occured while processing your request. For help, please send mail to this site's webmaster (), including all of the following information as well as what what you were doing when the error occured.
Wed Dec 24 18:15:59 2014
Warning messages
Failed to restore table 'Course-Name_achievement_user' with command '2>&1 /usr/bin/mysql --defaults-file=/tmp/1JwkNTxLpI webwork < /opt/webwork/courses/Course-Name/DATA/mysqldump/achievement_user.sql' (exit=2 signal=0 core=0): sh: 1: cannot open /opt/webwork/courses/Course-Name/DATA/mysqldump/achievement_user.sql: No such file<br /><br />Failed to restore table 'Course-Name_achievement' with command '2>&1 /usr/bin/mysql --defaults-file=/tmp/HFvb7DuVKa webwork < /opt/webwork/courses/Course-Name/DATA/mysqldump/achievement.sql' (exit=2 signal=0 core=0): sh: 1: cannot open /opt/webwork/courses/Course-Name/DATA/mysqldump/achievement.sql: No such file<br /><br />Failed to restore table 'Course-Name_global_user_achievement' with command '2>&1 /usr/bin/mysql --defaults-file=/tmp/hnRtRSC_Fq webwork < /opt/webwork/courses/Course-Name/DATA/mysqldump/global_user_achievement.sql' (exit=2 signal=0 core=0): sh: 1: cannot open /opt/webwork/courses/Course-Name/DATA/mysqldump/global_user_achievement.sql: No such file<br /><br />Failed to restore table 'Course-Name_past_answer' with command '2>&1 /usr/bin/mysql --defaults-file=/tmp/HY7dB4AyhV webwork < /opt/webwork/courses/Course-Name/DATA/mysqldump/past_answer.sql' (exit=2 signal=0 core=0): sh: 1: cannot open /opt/webwork/courses/Course-Name/DATA/mysqldump/past_answer.sql: No such file<br /><br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />Use of uninitialized value in join or string at /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm line 822.<br />
Error messages
DBD::mysql::db do failed: Can't find file: './webwork/Instructor@002dMath@002d251@002dSpring@002d2012_global_user_achievement.frm' (errno: 2)
WeBWorK::DB
/opt/webwork/webwork2/lib/WeBWorK/DB.pm
399
WeBWorK::DB::Schema::NewSQL::Std::rename_table
1
1762
UUUUUUUUUUUUUUUU?
WeBWorK::Utils::CourseManagement
/opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm
469
WeBWorK::DB::rename_tables
1
1762
UUUUUUUUUUUUUUUU?
WeBWorK::Utils::CourseManagement
/opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm
815
WeBWorK::Utils::CourseManagement::renameCourse
1
2018
UUUUUUUUUUUUUUUU?
Call stack
The information below can help locate the source of the problem.
in WeBWorK::DB::Schema::NewSQL::Std::handle_error called at line 176 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::rename_table called at line 399 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::rename_tables called at line 469 of /opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm
in WeBWorK::Utils::CourseManagement::renameCourse called at line 815 of /opt/webwork/webwork2/lib/WeBWorK/Utils/CourseManagement.pm
in WeBWorK::Utils::CourseManagement::unarchiveCourse called at line 2085 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::do_unarchive_course called at line 451 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::body called at line 155 of /opt/webwork/webwork2/lib/WeBWorK/Template.pm
in WeBWorK::Template::template called at line 530 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::content called at line 376 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/CourseAdmin.pm
in WeBWorK::ContentGenerator::CourseAdmin::content called at line 202 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm
in WeBWorK::ContentGenerator::go called at line 370 of /opt/webwork/webwork2/lib/WeBWorK.pm
Request information
Method |
POST |
||||||||||||||||||||||||
URI |
/webwork2/admin/ |
||||||||||||||||||||||||
HTTP Headers |
|
This is the error the instructor received when attempting to access the course:
WeBWorK error
An error occured while processing your request. For help, please send mail to this site's webmaster (), including all of the following information as well as what what you were doing when the error occured.
Wed Dec 24 18:17:27 2014
Warning messages
Error messages
Call stack
The information below can help locate the source of the problem.
in Exception::Class::Base::throw called at line 819 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::handle_error called at line 413 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::_get_fields_where_prepex called at line 381 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::get_fields_where called at line 441 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::get_records_where called at line 741 of /opt/webwork/webwork2/lib/WeBWorK/DB/Schema/NewSQL/Std.pm
in WeBWorK::DB::Schema::NewSQL::Std::gets called at line 500 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::getUsers called at line 495 of /opt/webwork/webwork2/lib/WeBWorK/DB.pm
in WeBWorK::DB::getUser called at line 441 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm
in WeBWorK::Authen::check_user called at line 300 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm
in WeBWorK::Authen::do_verify called at line 217 of /opt/webwork/webwork2/lib/WeBWorK/Authen.pm
in WeBWorK::Authen::verify called at line 307 of /opt/webwork/webwork2/lib/WeBWorK.pm
Request information
Method |
POST |
||||||||||||||||||||||||
URI |
/webwork2/Course-Name/ |
||||||||||||||||||||||||
HTTP Headers |
|
I don't know if part of the problem is that the restored DB's are from an earlier version or if it is because the course itself was probably archived when we were back on WebWork 2.4/2.5?
Any advice or assistance would be greatly appreciated. If it is an issue that was caused by the way that I "updated" the server, I still have a bit of time that I could take to do an installation the proper way... I could also drop and restore the database and work with the courses from the old server if that is a possibility, it would be even better.
If more information is needed, please let me know and I will get it posted as soon as possible.
Thanks in advance!
Chuck