[LON-CAPA-admin] Course Editing Followup

Lucas, Mark lucasm at ohio.edu
Wed Jan 28 09:16:21 EST 2015

The /etc/hosts fix of the IP address took care of things.


On Jan 27, 2015, at 6:37 PM, Stuart Raeburn <raeburn at msu.edu> wrote:

> Mark,
> Could you look in /home/httpd/perl/logs/lond.log on capa4?
> The error messages you have posted indicate this problem is occurring  
> during the final transaction in lonnet::finishuserfileupload() when:
> &reply('fetchuserfile:'.$path.$file,$docuhome);
> is called to prompt lond to request the edited and/or new .sequence  
> file from the session-hosting server (the file being requested is at:  
> /home/httpd/html/userfiles/<domain>/<coursenum>/<file>).
> The file is retrieved by lond on the course's homeserver using an LWP  
> request to the session-hosting server, and then saved in  
> /home/httpd/lonUsers/<domain>/<1>/<2>/<3>/<coursenum>/userfiles/<file>  
> on the course's homeserver.
> On the lond side the fetch_user_file_handler() routine is the one  
> which handles fetchuserfile requests.  If it is returning "failed",  
> then you should find either:
> (a) "LWP GET: $message for $fname ($remoteurl)"
> or
> (b) "Unable to move $transname to $destname"
> logged in /home/httpd/perl/logs/lond.log
> I'm guessing (a) and I would be interested to know what is logged for  
> $message and also for $remoteurl.
> If LWP is sending the request then you'll find something in the web  
> server logs relating to this transaction.  It is likely an access  
> control issue -- see:
> /home/httpd/lib/perl/Apache/lontokacc.pm which i the AccessHandler --  
> in which case your suspicion that it's a network identification issue  
> would be correct.
> Look in the Apache error log /etc/httpd/logs/error_log for lines  
> containing "Unable to find a host for ".
> Does /etc/hosts contain:
>       localhost.localdomain   localhost
> In the particular case where you see this error, although the  
> session-hosting server and the course's homeserver are the same  
> machine, LON-CAPA currently still uses an LWP web request.
> Stuart Raeburn
> LON-CAPA Academic Consortium
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin

Mark Lucas 								email: lucasm at ohiou.edu
252D Clippinger Lab						phone: (740)597-2984
Department of Physics and Astronomy		fax: (740)593-0433
Ohio University
Athens, OH 45701

More information about the LON-CAPA-admin mailing list