[LON-CAPA-admin] Install error

Lucas, Richard clucas at purdue.edu
Tue May 6 17:49:13 EDT 2014


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.


-----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 Lucas, Richard
Sent: Friday, May 02, 2014 3:42 PM
To: list about administration and system updating
Subject: Re: [LON-CAPA-admin] Install error

Actually I figured it out. When the install.pl script downloads and untars it, it preserves ownership of when it was created. Hence it was owned by 500:admin (admin is the 500 group on my system). After I chowned everything to an actual user I got past this. You may want to edit the install.pl to either chown everything to www:www after it untars it.

Now it's failed further along trying to run "install -d ""/home/httpd/html/lon-status" because /home/httpd doesn't exist. I assumed that since there was nothing in the docs about creating these directories it would do it automatically. However it now appears as though they need to be there beforehand. Can you tell me what that directory structure should look like so I don't hit this again after creating /home/httpd/html?

Thanks,
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: Friday, May 02, 2014 2:42 PM
To: lon-capa-admin at mail.lon-capa.org
Subject: Re: [LON-CAPA-admin] Install error

Richard,

>> install: destination owner 500 doesn't exist

> [root at ldvstulon01 installation]# id www
> uid=38269(www) gid=1759(www) groups=1759(www)

On my CentOS 6.5 system I have:

id www
uid=500(www) gid=500(www) groups=500(www)

One thing to try would be to change both the uid and gid for the www user and www group to 500, and then do make clean and run ./UPDATE again.

> I reran it but it did not suggest creating the www user as it did   
> before. (BTW, why doesn't it just use the default user of apache?)

That decision was made fifteen years ago, at the very beginning of the
  LON-CAPA project, and is something which predates my involvement.


Stuart Raeburn
LON-CAPA Academic Consortium

Quoting "Lucas, Richard" <clucas at purdue.edu>:

> Yes the install.pl script was ran successfully and the user exists:
>
> [root at ldvstulon01 installation]# id www
> uid=38269(www) gid=1759(www) groups=1759(www)
>
> I reran it but it did not suggest creating the www user as it did   
> before. (BTW, why doesn't it just use the default user of apache?)
>
> I did the make clean and tried the update again, same thing. This is 
> Redhat 6.
>
> Thanks,
> 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: Thursday, May 01, 2014 6:09 PM
> To: lon-capa-admin at mail.lon-capa.org
> Subject: Re: [LON-CAPA-admin] Install error
>
> Hi,
>
>> install: destination owner 500 doesn't exist
>
> Was the install.pl script run successfully (including creation of   
> the www user) before running ./UPDATE?
>
> Can you run install.pl again to check whether the www user is found.
>
> (You will find install.pl in the installation directory extracted   
> which you will extract from install.tar, available from
> http://install.loncapa.org/linux/install.tar)
>
> In a case of a failed build, you may need to do:
>
> cd loncom/build
>
> from the directory where UPDATE is located, and then run
>
> make clean
>
> before doing
>
> cd ../../
>
> and running ./UPDATE again.
>
> What is the Linux distro/version here?
>
>
> Stuart Raeburn


>
> Quoting "Lucas, Richard" <clucas at purdue.edu>:
>
>> I am trying to do an install and when running UPDATE I am getting the 
>> following error:
>>
>> cat ../../doc/loncapafiles/loncapafiles.lpml | \
>>         perl lpml_parse.pl build "development" `perl ./distprobe` 
>> "../.." """" \
>>         "/bin/bash" > Makefile.build
>> install -d ../../doc/man
>> install: destination owner 500 doesn't exist
>> make: *** [build] Error 67
>> **** ERROR **** command "make build" failed
>> --->  0 WARNINGS ENCOUNTERED!
>> --->  1 ERRORS ENCOUNTERED!
>> --->  0 NOTES ENCOUNTERED!
>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>> !!!!  Please read the WARNINGS file !!!!
>> !!!!   to make sure everything is   !!!!
>> !!!!    correct and taken care of   !!!!
>> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>>
>>
>> Any ideas?
>>
>> Thanks,
>> Richard
>>
>
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin


_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
_______________________________________________
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