Installation error on Solaris 8

campoe
Posts: 3
Joined: Fri Dec 07, 2001 9:59 am

Installation error on Solaris 8

Post by campoe »

Running Solaris 8, webinator 4.0:


Backing up existing /usr/local/apps/php-apache/cgi-bin/texis to /usr/local/apps/php-apache/cgi-bin/texis-old
Stopping monitor processes.....done
Checking dir with a web fetch...Failed
HTTP/1.1 403 Forbidden
Trying again with file...Ok
Verifying version...Ok
Verifying variables...*** Failed ***
$urlroot was instead of /cgi-bin/texis/installtest.
$pathroot was instead of /installtest.
Document root dir does not exist.
$sourcepath was .

One or more variables were not set as expected by the URL:
http://localhost/cgi-bin/texis/installt ... html?-dump
The web server may not be running Texis for that URL, or it may be
incorrectly setting CGI variables. Netscape-Enterprise/3.6 is known
to have such a bug. Your web server appears to be
Apache/1.3.20 (Unix) PHP/4.0.6 mod_ssl/2.8.4 OpenSSL/0.9.6a.

Make sure you are running a web server that sets CGI environment
variables, such as $SCRIPT_NAME, $PATH_TRANSLATED, $PATH_INFO, and
$DOCUMENT_ROOT, correctly. Without them Vortex cannot run correctly
on a web server.

*** Aborting installation due to above error ***


The varibles show in the URL correctly:

Variables
$urlroot='/cgi-bin/texis/installtest'
$pathroot='/installtest'
$sourcepath='/usr/local/apps/php-apache/htdocs/installtest'

Any clues?

Alex

PS - localhost = spock.acomp.usf.edu. I tried both values, same results. Looks like a sed problem.
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

Installation error on Solaris 8

Post by Kai »

Strange; since the version check passed, the variable test should have as well. Make a copy of the install script, and add the following at line 1396 (just above "# Look for some vars..."):

set -x
cp -f $TmpFile saved-output

Then run that install script, and post its output and the content of saved-output.
campoe
Posts: 3
Joined: Fri Dec 07, 2001 9:59 am

Installation error on Solaris 8

Post by campoe »

I got it working, after some hacking. Sorry, before I got your message.

Line 459: removed -e 's@[;"&$'"'"']@ @g'
Lines 746-777 commented out.

That did the trick for me.

Alex
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

Installation error on Solaris 8

Post by Kai »

Yep, we just noticed that problem ourselves; but that's a different part of the install: I assume the errors you quoted at top have not recurred after your fix.
campoe
Posts: 3
Joined: Fri Dec 07, 2001 9:59 am

Installation error on Solaris 8

Post by campoe »

Correct. Looks like the sed erro on line 459 (which I had not noticed before) carried on the the variable stuff at the end. If I install in any other machine I will send you the debugging info you requested.

Great software guys. Really easy to use.
Faiz
Posts: 109
Joined: Wed Jan 10, 2001 1:29 pm

Installation error on Solaris 8

Post by Faiz »

Hi, I am getting the same errors when upgrading to texis 4 from texis 3 what campoe was getting, though it is on sun solaris 2.6. The output of the install script after set -x and cp -f $TmpFile saved-output is
******************************************************
corpt036# ./install
===============================================================================
Texis Version 4.00 Installation
===============================================================================

Checking install script...*** Bad checksum ***
The install script may be corrupted. Make sure you've copied it and
the texis.tar file in binary mode. Press Del/Ctrl-C to quit now and
re-copy the files. Or press ENTER to continue if you feel the files
are correct (the install may fail):

?
If you already have full Texis installed you should read the upgrade notes.
View the upgrade notes? (y/n): n
Examining your system...done

------------------------------ NOTE: ---------------------------------
This installation should preferably be run as the user that will
actually run the software, not as root. The user should be the same
user that your web server runs CGI programs as. For this installation
you should have permission to place and move files in the install
directory and the web server tree.

You appear to be root. What (non-privileged) user will be running the
software? Texis files will be owned and setuid to this user. Either:
o Enter the CGI user below, or
o Enter "none" to skip the chown (YOU will have to do it later), or
o Press Ctrl-C/Del to quit, and re-start install as the CGI user.

Web user [ENTER for nobody]: apache

-----------------------------------------------------------------------
What directory would you like to install Texis in? Texis
executables and other files will be placed under here. It should be
OUTSIDE (inaccessible to) your web server tree. NOTE: This directory
should be /usr/local/morph3 unless you are unable to install there.

Install dir [ENTER for /usr/local/morph3]:
Checking install dir...Ok
Checking tar file...Ok
Unpacking Texis files...Ok
Checking files...Ok
Configuring and installing Texis files:
INFO: 1 patch made
INFO: 1 patch made
INFO: 1 patch made
INFO: 1 patch made
INFO: 1 patch made
chgrp: vortex.log: No such file or directory
chown: vortex.log: No such file or directory
Existing default database /usr/local/morph3/texis/testdb preserved.
Cleaning up temp files...done

------------------------------------------------------------------------
Will you be:
1) Using an existing web server on this machine?
2) Using the Texis web server (vhttpd) exclusively?

(Enter 1 if you will be using both or,
have a running web server and don't know if you will be using vhttpd)

1 or 2 [ENTER for 1]:

---------------------------------------------------------------------
Where is your web server's CGI directory? This is the full path to
the file system (*not* URL) directory on this machine containing your
CGI programs. Usually this is under the top directory for the web
server. For Apache servers, it is probably the second argument to
ScriptAlias in your conf file.

This installation will install some programs (symlinks) in the CGI
directory you specify. Programs there must be executable by the web
server. The install will verify this with a web fetch.

CGI dir [ENTER for /usr/local/apache/cgi-bin]:

-------------------------------------------------------------------------
What is the prefix for CGI URLs (the part of the URL before the program)?
o You may enter a URL, such as http://corpt036.ge.com/cgi-bin
if your site uses virtual hosts or a port other than 80. The site
must reside on this machine (the one running the install).
o Or you can enter just a URL path such as /cgi-bin (assumes host above)
o Or enter /newdir to start over with a new CGI directory instead.

CGI URL prefix [ENTER for http://corpt036.ge.com/cgi-bin]: http://localhost/cgi-bin

---------------------------------------------------------------------------
What is the extension for CGI URLs (the filename extension of the program)?
This may be .cgi if your CGI programs are named like "mysearch.cgi" in URLs.
Or it may be "none" if you have a dedicated CGI dir and URL instead.

CGI extension [ENTER for none]:
Backing up existing /usr/local/apache/cgi-bin/texis to /usr/local/apache/cgi-bin
/texis-old
Stopping monitor processes.....done
Checking dir with a web fetch...Failed
HTTP/1.1 403 Forbidden
Trying again with file...Ok
+ cp -f /tmp/install-4133-1.tmp saved-output
+ echo Verifying version...\c
Verifying version...urlroot=
pathroot=
sourcepath=
+ sed -n -e s@<BR>@;@ -e s@^[$]@@ -e /^urlroot=/p -e /^pathroot=/p -e /^sourcepa
th=/p
+ eval
SERVER_ROOT=
+ sed -n -e s@<BR>@;@ -e /^SERVER_ROOT=/p
+ eval
//g -e /^Server: /s/^Server: //p
server=Apache/1.3.12 (Unix)
+ sed -n -e s/ *<[^>]*>//g -e /Version .* of /s@^.*Version @@p
version=4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64)
+ sed s/^\([0-9.]*\).*/\1/
+ echo 4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64)
versionnum=4.00.1007397071
+ sed -n /^Server: Thunderstone/p
+ [ != ]
+ sed -n /Version/s@^.*Version @@p
+ /usr/local/morph3/bin/texis -dump
installversion=4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64)
+ rm -f /tmp/install-4133-1.tmp
+ [ 4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64) = ]
+ [ 4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64) != 4.00.1007397071
of Dec 3, 2001 (sparc-sun-solaris2.6-64) ]
+ echo Ok
Ok
+ break
TmpLink=
+ [ -f /usr/local/morph3/license.upd -a y = y ]
+ echo Verifying variables...\c
Verifying variables...+ sed s@^http://[^/]*@@
+ echo http://localhost/cgi-bin
cu=/cgi-bin
bad=n
+ [ != /cgi-bin/texis/installtest ]
+ [ n = n ]
+ echo *** Failed ***
*** Failed ***
bad=y
+ echo $urlroot was instead of /cgi-bin/texis/installtest.
$urlroot was instead of /cgi-bin/texis/installtest.
+ [ != /installtest ]
+ [ y = n ]
+ echo $pathroot was instead of /installtest.
$pathroot was instead of /installtest.
+ sed s@/installtest$@@
+ echo
DocDir=
+ [ ! -d ]
+ [ y = n ]
+ echo Document root dir does not exist.
Document root dir does not exist.
+ echo $sourcepath was .
$sourcepath was .
+ [ y = y ]
+ cat

One or more variables were not set as expected by the URL:
http://localhost/cgi-bin/texis/installt ... html?-dump
The web server may not be running Texis for that URL, or it may be
incorrectly setting CGI variables. Netscape-Enterprise/3.6 is known
to have such a bug. Your web server appears to be
Apache/1.3.12 (Unix).

Make sure you are running a web server that sets CGI environment
variables, such as $SCRIPT_NAME, $PATH_TRANSLATED, $PATH_INFO, and
$DOCUMENT_ROOT, correctly. Without them Vortex cannot run correctly
on a web server.

One or more variables were not set as expected by the URL:
http://localhost/cgi-bin/texis/installt ... html?-dump
The web server may not be running Texis for that URL, or it may be
incorrectly setting CGI variables. Netscape-Enterprise/3.6 is known
to have such a bug. Your web server appears to be
Apache/1.3.12 (Unix).

Make sure you are running a web server that sets CGI environment
variables, such as $SCRIPT_NAME, $PATH_TRANSLATED, $PATH_INFO, and
$DOCUMENT_ROOT, correctly. Without them Vortex cannot run correctly
on a web server.
+ bail
+ echo

+ echo *** Aborting installation due to above error ***
*** Aborting installation due to above error ***
+ rm -f /tmp/install-4133-1.tmp /tmp/install-4133-2.tmp
+ exit 1
*******************************************************
and the contents of saved-output is,
*******************************************************
HTTP/1.1 200 OK^M
Date: Mon, 10 Dec 2001 16:39:05 GMT^M
Server: Apache/1.3.12 (Unix)^M
Connection: close^M
Content-Type: text/html^M
^M
^M
^M
<HTML>
<HEAD>
<TITLE>Error</TITLE>
</HEAD>

<BODY>
<H4 ALIGN=left> Texis Web Script (Vortex) Copyright &copy; 1996-2001 <A HREF="ht
tp://www.thunderstone.com/">Thunderstone - EPI, Inc.</A><BR>
Unknown Version 4.00.1007397071 of Dec 3, 2001 (sparc-sun-solaris2.6-64) </H4>

<P>
<H2>Error</H2>

100 Texis Monitor process child returned exit code 10 <BR>
000 Texis Monitor process failed <BR>
000 Cannot get config settings <BR>
******************************************************
Is something wrong with the monitor process?
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

Installation error on Solaris 8

Post by Kai »

Exit code 10 from the monitor process indicates a problem reading or writing the license file. Check that the web server user has permission to read and write to the install dir and everything under it, especially /usr/local/morph3/license*.
Faiz
Posts: 109
Joined: Wed Jan 10, 2001 1:29 pm

Installation error on Solaris 8

Post by Faiz »

Thanx. Now I got it working when I installed as the web server user and not as a root. But previous installations worked well when installed as a root. Anyways, its working fine now.
bblancha
Posts: 3
Joined: Wed Jan 16, 2002 5:02 pm

Installation error on Solaris 8

Post by bblancha »

I'm trying to install Webinator 4.0 on Solaris 8. In order to comply with security procedure at my organization, I was attempting to install the whole thing in a user directory, outside of the main document root of our Apache server. I had the install program put the texis executable in a directory with a .htaccess file containing the directive that lets the server assume content is executable cgi's. I changed the permissions so that all content was readable and executable by the web server user.
I had first tried to install version 2.5 this way and recieved an internal server error when trying to run a search from a browser. The install script from 4.0 seems to have the same problem when it attempts to verify the installation over the web.
I can not do the install as the user the web server runs as because that user does not have the ability to login on the command line (more security).
So: Is there a way a)To install webinator to run entirely in a user's public_html directory without having to put anything in the main document root or the main directory for executables? and/or b) To install webinator as a user other than the user that runs the web server?
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

Installation error on Solaris 8

Post by mark »

You should be able to install it as any user as long as that user can install executable CGI programs. There may be some issues if that user can't make the CGI program setuid or the webserver doesn't allow a setuid CGI program. Check the webserver's error log to see if says why it failed. Also check INSTALLDIR/texis/vortex.log for possible errors.
Post Reply