[LON-CAPA-admin] Install error
Lucas, Richard
clucas at purdue.edu
Wed May 7 18:49:46 EDT 2014
Stuart,
Thanks for letting me know you didn't expect the files be moved. This helped me trace down the issue since they were being moved on my system. I found that there was a different install command that was running out of /usr/local/bin instead of the default one in /usr/bin and that one was first in my path. The one in /usr/local/bin was apparently provided by the install_base package. I will reinstall tomorrow using the correct install command. Unfortunately we do not do the Linux installs, there is a separate team that does that and they use a prebuilt image to do the builds.
It also includes certain groups and such. The admin group is the group for the unix admins. However that should not be a problem since the install.pl script just uses useradd to add the www user and it would never get gid 500 except by chance.
Richard
-----Original Message-----
From: lon-capa-admin-bounces at mail.lon-capa.org [mailto:lon-capa-admin-bounces at mail.lon-capa.org] On Behalf Of Stuart Raeburn
Sent: Wednesday, May 07, 2014 9:24 AM
To: lon-capa-admin at mail.lon-capa.org
Subject: Re: [LON-CAPA-admin] Install error
Richard,
> cd ../../loncom/html/adm/jsMath ; sh commands /home/httpd/html/adm\
> chmod -R 0700 /home/httpd/html/adm/jsMath/fonts/ \
> chown -R www:www /home/httpd/html/adm/jsMath/fonts/
>
> unzip: cannot find or open jsMath-fonts-1.3.zip,
> jsMath-fonts-1.3.zip.zip or jsMath-fonts-1.3.zip.ZIP.
>
> The step right before this in Makefile.install moves all of the
> files including the zip file out of the directory. Also the \ make
> the chmod and chown commands parameters to the commands script. I'm
> not sure how this could have ever worked. Am I missing something
> here?
The line immediately before the step to run the "commands" script to unzip the fonts file is:
install -p -o www -g www -m 0644 ../../loncom/html/adm/jsMath/*.* /home/httpd/html/adm/jsMath/.
which should copy all files matching *.* from loncom/html/adm/jsMath/ to /home/httpd/html/adm/jsMath/
The files are not moved (i.e., they should all still be there in loncom/html/adm/jsMath/), so the command "cannot find or open jsMath-fonts-1.3.zip" suggests that the change directory command immediately prior to attempting to run the commands script failed, such that unzip is running in the wrong directory context.
You are running ./UPDATE as root, correct?
> My plan to work around this is to edit the commands script to copy
> it in before the unzip.
I would note that LON-CAPA installation process will create all required directories and sub-directories for you, so there should be never be a need to create them manually.
It is possible that all the issues you have encountered originate from the initial error you reported on 5/1:
> "/bin/bash" > Makefile.build
> install -d ../../doc/man
> install: destination owner 500 doesn't exist
> make: *** [build] Error 67
> **** ERROR **** command "make build" failed
such that ownership/permissions were preventing make build from creating the directories and sub-directories needed later in the installation process.
Apparently, you already had a group (admin) with a GID of 500, whereas the UID and GID of 500 are usually assigned to the www user/group which are created by install.pl (which is run to prepare a Linux server/VM for installation of LON-CAPA).
The LON-CAPA installation instructions (e.g., http://install.loncapa.org/RHEL6_install.html for Red Hat 6) suggest a minimal Red Hat Enterprise Linux 6 Install as the starting point, which in my experience, does not create an "admin" group.
Could you send an e-mail to helpdesk at loncapa.org and, as attachments, include the Makefile.build and Mekfile.install files created when you ran ./UPDATE
If you downloaded the LON-CAPA tarball to <some directory path> you will find those files in: <some directory
path>/loncapa-2.10.1/loncom/build
-- where <some directory path> is the place where you downloaded (and
extracted) the loncapa-2.10.1.tar.gz tarball.
One other suggestion I have would be to run:
make reallyclean
from within "<some directory path>/loncapa-2.10.1/loncom/build" to remove all files generated during earlier build attempts, and then to start over again by running ./UPDATE (as root).
Stuart Raeburn
LON-CAPA Academic Consortium
helpdesk at loncapa.org
Quoting "Lucas, Richard" <clucas at purdue.edu>:
> Ok I took a look at our current server and went ahead and created
> /home/httpd/html and /home/httpd/cgi-bin, ran a make clean in
> loncom/build, and restarted the UPDATE. It then failed again with
> this error:
>
> install -o www -g www -m 0700 -d /home/httpd/html/adm/help/lib/perl
> install: stat: /home/httpd/html/adm/help/lib: No such file or
> directory
>
> This is due to there being no install of the
> /home/httpd/html/adm/help/lib directory before creating stuff under
> it. I fixed that by running the following:
>
> install -o www -g www -m 0700 -d /home/httpd/html/adm/help/lib
>
> I then had the same problem with /home/httpd/html/res/lib,
> /home/httpd/html/res/adm, /usr/lib/perl5/site_perl,
> /usr/local/loncapa, and /usr/man/man1. I created all of these
> directories the same or similar way and have now ran in to this error:
>
> cd ../../loncom/html/adm/jsMath ; sh commands /home/httpd/html/adm\
> chmod -R 0700 /home/httpd/html/adm/jsMath/fonts/ \
> chown -R www:www /home/httpd/html/adm/jsMath/fonts/
> unzip: cannot find or open jsMath-fonts-1.3.zip,
> jsMath-fonts-1.3.zip.zip or jsMath-fonts-1.3.zip.ZIP.
>
> The step right before this in Makefile.install moves all of the
> files including the zip file out of the directory. Also the \ make
> the chmod and chown commands parameters to the commands script. I'm
> not sure how this could have ever worked. Am I missing something
> here?
>
> My plan to work around this is to edit the commands script to copy
> it in before the unzip. I will then fix the ownership and
> permissions after.
_______________________________________________
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