<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Stuart,
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>Thanks for the very detailed instructions.  I now have a related problem and some understanding of what might have been the cause of my problem before.</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>There are a set of .problem files that were written 7-8 years ago by a professor who has since retired.  What is strange is that he did not create these under his own author area but
 somehow in an area I would associate with the domain coordinator  “/res/pitt/XXXXXX” where XXXXXX is the username for the domain coordinator.  Now we have just been cloning the course every year, and that works fine from the physics server, but they cannot
 be seen from the math server.  Thus cloning failed when run from the math server.  </div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>Now that the course is set up, I see students who end up on the math server still can’t view those problems.  From the physics server, for students in my course, they click on the problem
 and all is fine.  But if they are on the math access server, they see an error message like “Unable to find MeteoroidsInertial.problem”.</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>In addition, if as course coordinator I try to browse resources (from either server), it shows and Area XXXXXX under /res/pitt, but if I click on it, it says “Directory does not exist”.
  On the other hand, I can log into the library server, do an ls on that area (<span class="" style="font-family: Monaco; font-size: 10px;">/home/httpd/html/res/pitt/XXXXXX</span><font face="Monaco" size="1" class="">”) </font>and see all the files.  So I guess
 I need to copy all the .problem files over to a valid author area (mine probably), republish them, and move the links in my course to new versions of the problems for future terms.  </div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>One thing I found in doing this was that the math IT person, has moved the math server over to a vm on a machine in the universities data center.  This allows them to use the university
 single login rather than the local login that is used by the physics servers.  Probably not a good idea to have the math access server run differently from the physics access and library servers, so that is something we should probably standardize in the near
 future.</div>
<div class=""><br class="">
</div>
<div class="">-Jim</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Aug 28, 2016, at 11:54 AM, Stuart Raeburn <<a href="mailto:raeburn@msu.edu" class="">raeburn@msu.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">Jim,<br class="">
<br class="">
Yes, I see the problem in the course you originally created -- course initialization as Course Coordinator fails because the default.sequence file (i.e., top level map) is missing, hence you can't use:<br class="">
<br class="">
(a) Settings > Course Settings > Display (General course settings checked) to change the course title<br class="">
<br class="">
and/or<br class="">
<br class="">
(b) People > Users > Automated Enrollment to disable automated enrollment.<br class="">
<br class="">
That said (as you reported), your use of Main Menu > "View or modify a course or community" as Domain Coordinator to remove the institutional course code will have effectively disabled automated enrollment in the course.<br class="">
<br class="">
Similarly (as Domain Coordinator) expiring all roles in the course effectively means no one will be aware of this "broken" course.<br class="">
<br class="">
However to the "fix" the course and, to use (a) and (b) above, you'd need to use command line access to the course's home server to add a default.sequence file.<br class="">
<br class="">
You would use a text editor as user www to save the following:<br class="">
<br class="">
<map><br class="">
<resource id="1" src="" type="start"></resource><br class="">
<link from="1" to="2" index="1"></link><br class="">
<resource id="2" src="" type="finish"></resource><br class="">
</map><br class="">
<br class="">
to the file:<br class="">
<br class="">
/home/httpd/lonUsers/pitt/6/E/1/6E101732148bb57dcpittmath1/userfiles/default.sequence<br class="">
<br class="">
on the Physics-Astronomy LON-CAPA library server.<br class="">
<br class="">
Once that had been done I would expect you'd be able to successfully initialize the course from your roles screen, albeit with a top-level map containing no resources.<br class="">
<br class="">
As an aside, I expect the default.sequence file created when cloning, as well as other .sequence files created in the new course would have been found in<br class="">
<br class="">
/home/httpd/html/userfiles/pitt/6E101732148bb57dcpittmath1<br class="">
<br class="">
on <a href="http://homework.math.pitt.edu" class="">homework.math.pitt.edu</a><br class="">
<br class="">
at least until cleaned up by cleanup_file_caches.pl (run nightly) which removes files in /home/httpd/html/userfiles not accessed in the past 24 hours (i.e., the value in seconds of lonExpire in /etc/httpd/conf/loncapa.conf on that server).<br class="">
<br class="">
<br class="">
Stuart Raeburn<br class="">
LON-CAPA Academic Consortium<br class="">
<br class="">
<br class="">
Quoting "Mueller, James A." <<a href="mailto:mueller@pitt.edu" class="">mueller@pitt.edu</a>>:<br class="">
<br class="">
<blockquote type="cite" class="">Stuart,<br class="">
Cloning worked the second time.  Thanks. The only problem is  renaming the failed course<br class="">
On Aug 25, 2016, at 7:14 AM, Stuart Raeburn wrote:<br class="">
<br class="">
You could then rename the current ?2171_24834 PHYS 0081 Space &  Time, Light & Matter" course, disable auto-enrollment, and expire  all roles.<br class="">
Within loncapa, I don?t see a way to rename the course.  As Domain  Coordinator, I can change the course code, so I did that, but I am  not sure how to change the course title or disable auto enrollment  without entering that course.  I can list all users who
 have roles,  and it looks like it is only me as course coordinator, so I revoked  that.  I think with the course code changed to an invalid value,  there will be will be no way for auto-enrollment to add any  students.  I was never able to enter the course,
 so there is no work  there to lose.<br class="">
<br class="">
-Jim<br class="">
<br class="">
On Aug 25, 2016, at 7:14 AM, Stuart Raeburn  <<a href="mailto:raeburn@msu.edu" class="">raeburn@msu.edu</a><<a href="mailto:raeburn@msu.edu" class="">mailto:raeburn@msu.edu</a>>> wrote:<br class="">
<br class="">
Jim,<br class="">
<br class="">
<br class="">
What might have gone wrong here, and is there any way to fix it?<br class="">
<br class="">
<br class="">
It sounds as though copying from the course being cloned to the new  course failed for the top-level map (i.e., the default.sequence  file) in the old course.<br class="">
<br class="">
The courseID of the new course tells me that your session was hosted  on pittmath1, i.e., the Pitt Mathematics department's access server  when you created the new course, and not Physics-Astronomy's library  server (pittphyast1).<br class="">
<br class="">
That means that there would have been a number of calls to retrieve  sequence files (including default.sequence) from the library server,  followed by copying, then modification (to replace instances of the  old courseID with the new in any src attributes in
 the  default.sequence file), and lastly notification to the homeserver  for the new course (i.e., the library server) to copy the modified  sequence files from the access server to the library server for  permanent storage.<br class="">
<br class="">
The routines in lonclonecourse.pm which are used for cloning do not  currently return any information about success or failure of the  various operations which occur when cloning a course, so you'd need  to look in /home/httpd/perl/logs/lonnet.log on the access
 server,  and/or /home/httpd/perl/logs/lond.log on the library server for  information about failed replication.  However, since lonnet.log is  rotated, the information in the lonnet.log file may no longer be  around, if you created the new course more than
 a few days ago.<br class="">
<br class="">
What to do?<br class="">
<br class="">
Depending on how much work you have done in the new course, since  cloning, you could just create another course, (again with cloning),  but this time with a web session hosted on the library server.  You  could then rename the current "2171_24834 PHYS 0081
 Space & Time,  Light & Matter" course, disable auto-enrollment, and expire all roles.<br class="">
<br class="">
Or you could attempt to repair the 6E101732148bb57dcpittmath1 course  by using  command line access (as user www) to copy the  default.sequence file from  /home/httpd/lonUsers/pitt/$1/$2/$3/$clonedcourse/userfiles/default.sequence  to  /home/httpd/lonUsers/pitt/6/E/1/6E101732148bb57dcpittmath1/userfiles/default.sequence,
 and then use a text editor to replace any instances of $clonedcourse with 6E101732148bb57dcpittmath1 (where $clonedcourse is the courseID of the course that was cloned, and $1, $2, $3 are the first three characters in that  courseID).<br class="">
<br class="">
Of course it may be that other sequence files, besides  default.sequence, were also not copied/modified from the old course  to the new course, so you might need to do the same for them.<br class="">
<br class="">
Stuart Raeburn<br class="">
LON-CAPA Academic Consortium<br class="">
<br class="">
<br class="">
The other day, I cloned a course from last fall for use in the   coming term.  I thought it worked, but now when I try to access that   course as course coordinator, I get the following error message:<br class="">
<br class="">
The following problems occurred:<br class="">
<br class="">
Map not loaded: The file   /home/httpd/html/userfiles/pitt/6E101732148bb57dcpittmath1/default.sequence   does not exist.<br class="">
<br class="">
What might have gone wrong here, and is there any way to fix it?<br class="">
<br class="">
<br class="">
-Jim Mueller<br class="">
</blockquote>
<br class="">
_______________________________________________<br class="">
LON-CAPA-users mailing list<br class="">
<a href="mailto:LON-CAPA-users@mail.lon-capa.org" class="">LON-CAPA-users@mail.lon-capa.org</a><br class="">
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmail.lon-capa.org%2fmailman%2flistinfo%2flon-capa-users&data=01%7c01%7cmueller%40pitt.edu%7c21f3f0292340434c478808d3cf5bff5b%7c9ef9f489e0a04eeb87cc3a526112fd0d%7c1&sdata=P02iINDyIlIVaLWBWhNgx6%2fVzKTMVhXo%2fprvquB8wo4%3d<br class="">
</div>
</blockquote>
</div>
<br class="">
</body>
</html>