[LON-CAPA-admin] Path mismatch on /home/httpd/perl/checkforupdates.pl

Stuart Raeburn raeburn at msu.edu
Thu Jul 3 14:38:26 EDT 2014


Hi,

> I guess it's just a path issue with the check script as we have our
> local apache2 configuration installed in /etc/apache2 and not in
> /etc/httpd - but the daily mail is just nagging a bit as we gate it
> through an OTRS ticket system. Any suggestions what to do :)?

You have three options:

1. Log-in to your domain, select the Domain Coordinator role and use:

Main Menu -> Set domain configuration -> Settings to display/modify  
(check: Contact Information) and click the "Display" button.

Then uncheck the "Admin E-mail address" checkbox for the row:
E-mail from nightly check of LON-CAPA module integrity/updates

and click the "Save Changes" button

OR

2. Log-in into your server from the command line and comment out the  
entry in /etc/cron.d/loncapa which causes checkforupdates.pl to run  
daily:

10 4 * * *    www    /home/httpd/perl/checkforupdates.pl

OR

3, Download an updated version of lonnet.pm which I just committed to  
the version_2_11_X "branch" in CVS, which will modify the expected  
paths for loncapa_apache.conf and startup.pl when performing nightly  
checks on Ubuntu/Debian/SuSE.

 From the command line, do:

wget -O /home/httpd/lib/perl/Apache/lonnet.pm  
'http://source.loncapa.org/cgi-bin/cvsweb.cgi/~checkout~/loncom/lonnet/perl/lonnet.pm?rev=1.1172.2.53;content-type=text/plain'

then:

/etc/init.d/apache2 reload

Of course, by doing that, when checkforupdates.pl runs it will detect  
a version change in lonnet.pm (as compared with the version included  
in 2.11.0), and send a daily e-mail because of that discrepancy.

To avoid that issue, at least on a development/testing server, not  
connected to the production cluster, you could use a text editor to  
modify:

/home/httpd/lonTabs/dns_checksums/2.11.0.tab

The change to make there would be to replace the line containing:

/home/httpd/lib/perl/Apache/lonnet.pm,1.1172.2.52,3f65b0f8ca00f6680c10231cedd59da4abb70806

with

/home/httpd/lib/perl/Apache/lonnet.pm,1.1172.2.53,eb06136da1a81023956aff9ce864e17f5f598c4d

For the longer term, and for servers in the production cluster, the  
answer will be for the lonnet.pm change in rev. 1.1172.2.53 to be  
included in changes for a 2.11.1 release.


Stuart Raeburn
LON-CAPA Academic Consortium


Quoting <>:

> Hi,
>
> I updated LON-CAPA on tuesday on a test machine running Ubuntu 10.04
> LTS. The update to 2.11.0 ran without noteworthy problems and I will
> try upgrading the OS to 12.04 LTS too by these days.
>
> The script /home/httpd/perl/checkforupdates.pl is being started as
> described in the help file at 4:10 am and sends me an email noticing
> the following (system running in german):
>
> === snip ===
> The following 2 local files appear to be missing:
> /etc/httpd/conf/loncapa_apache.conf (erwartete Vers.: 1.215.2.13)
> /etc/httpd/conf/startup.pl (erwartete Vers.: 1.41.2.2)
> Die 3 folgenden Dateien werden für das installierte Release nicht
> benötigt:
> /etc/apache2/loncapa_apache.conf (lokale Vers.: 1.215.2.13)
> /etc/apache2/startup.pl (lokale Vers.: 1.41.2.2)
> === snap ===
>
> I guess it's just a path issue with the check script as we have our
> local apache2 configuration installed in /etc/apache2 and not in
> /etc/httpd - but the daily mail is just nagging a bit as we gate it
> through an OTRS ticket system. Any suggestions what to do :)?
>
> Thanks for your reply and a nice day to you all
> Martin Diedrich
> -- 
> | Dipl.-Wirt.-Inf. Martin Diedrich | Mail: diedrich at rz.tu-clausthal.de |
> | Rechenzentrum TU Clausthal     | Telefon: +49 5323 72 2522           |
> | Erzstrasse 51                | Jabber: ifmdi at jabber.tu-clausthal.de  |
> | 38678 Clausthal-Zellerfeld | WWW: http://www.rz.tu-clausthal.de/     |
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin



More information about the LON-CAPA-admin mailing list