[LON-CAPA-admin] Can't access published resources

Stuart Raeburn raeburn at msu.edu
Thu Dec 12 09:22:02 EST 2013


Hi,

You are seeing 403 (Forbidden) responses when attempting to replicate  
resources from other servers in the LON-CAPA network because of a  
mismatch between the IP address advertised by the LWP request  
originating from your server, and the IP address resolved from the  
hostname for your LON-CAPA server provided in the authoritative list  
of LON-CAPA member servers.

Your server is: lhsalc.lhsa.com which resolves to: 66.51.156.71

However, the requests originating from your server are identified as  
originating from your firewall.

Reverse look-up for 66.51.156.76 reports that this IP is a pointer to:  
firewall.lhsa.com

The Apache error log files on the remote server contain entries such as:

[error] access to /raw/msu/msu-domainconfig/domlogo/msu.gif failed for  
66.51.156.76, reason: Unable to find a host for 66.51.156.76

The handler routine in /home/httpd/lib/perl/Apache/lonracc.pm on the  
MSU side which limits access to URLs beginning /raw/ to only those  
servers known to belong to the LON-CAPA network is returning a  
FORBIDDEN (403 return code) from the following code:

my $reqhost = $r->get_remote_host(REMOTE_NOLOOKUP);
my @hostids= &Apache::lonnet::get_hosts_from_ip($reqhost);

This occurs in cases where $reqhost is not the IP address of a known  
LON-CAPA server.

In this case, $reqhost -- from $r->get_remote_host(REMOTE_NOLOOKUP) --  
is 66.51.156.76, which does not correspond to a known server, since  
66.51.156.71 is the expected IP for (which resolves to:  
lhsalc.lhsa.com), hence the message "Unable to find a host".


Stuart Raeburn
LON-CAPA Academic Consortium


Quoting Ken Hoegeman <ken.hoegeman at gmail.com>:

> When browsing published resources I get file not found messages and my
> lonnet.log is full f these lines:
>
> The folder structure is there on our server, just non of the files
>
> Any suggestions would be appreciated.
>
> Thanks
>
> Ken Hoegeman
>
> Wed Dec 11 14:35:05 2013 (22753): Trying to reconnect lonc for msul1 (
> s10.lite.msu.edu)
>
> Wed Dec 11 14:35:11 2013 (22743): <font color="blue">WARNING: LWP get: 403
> Forbidden: /home/httpd/html/res/msu/msu-domainconfig/domlogo/msu.gif</font>
>
> Wed Dec 11 14:35:13 2013 (22744): <font color="blue">WARNING: LWP get: 403
> Forbidden: /home/httpd/html/res/msu/msu-domainconfig/domlogo/msu.gif</font>
>
> Wed Dec 11 14:35:15 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden: /home/httpd/html/res/msu/msu-domainconfig/domlogo/msu.gif</font>
>
> Wed Dec 11 14:35:16 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden: /home/httpd/html/res/msu/msu-domainconfig/domlogo/msu.gif</font>
>
> Wed Dec 11 14:35:17 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sc/gblanpied/courses/chemistry/thedump_chemistry.sequence.meta</font>
>
> Wed Dec 11 14:35:17 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sc/gblanpied/courses/chemistry/thedump_chemistry.sequence.meta</font>
>
> Wed Dec 11 14:35:17 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/msu/ciskepau/CHEMISTRY/chap6/bondtype2.problem.meta</font>
>
> Wed Dec 11 14:35:18 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/msu/ciskepau/CHEMISTRY/chap6/bondtype2.problem.meta</font>
>
> Wed Dec 11 14:35:18 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/E.N.pairs.problem.meta</font>
>
> Wed Dec 11 14:35:19 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/molecular.geom.I.problem.meta</font>
>
> Wed Dec 11 14:35:19 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/E.N.pairs.problem.meta</font>
>
> Wed Dec 11 14:35:19 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/msu/ciskepau/CHEMISTRY/chap6/ionformula.problem.meta</font>
>
> Wed Dec 11 14:35:19 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/msu/ciskepau/CHEMISTRY/chap6/ionformula.problem.meta</font>
>
> Wed Dec 11 14:35:20 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/bond.classification.problem.meta</font>
>
> Wed Dec 11 14:35:20 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/bond.classification.problem.meta</font>
>
> Wed Dec 11 14:35:20 2013 (22745): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/molecular.geom.II.problem.meta</font>
>
> Wed Dec 11 14:35:20 2013 (22746): <font color="blue">WARNING: LWP get: 403
> Forbidden:
> /home/httpd/html/res/sfu/batchelo/chem111/problems/lecture/set4/molecular.geom.II.problem.meta</font>
>




More information about the LON-CAPA-admin mailing list