WebLogic message: "Could not find script"

Post Reply
arje
Posts: 5
Joined: Fri May 24, 2002 11:32 am

WebLogic message: "Could not find script"

Post by arje »

Hi,

We are trying to get the Webinator working on
OS: Linux Redhat 7.2
App./webserver: Bea Weblogic 6.0sp2

The installation stops as soon as it tries to retrieve the
page '/texis/installtest/func.html'. Below is a debug dump and
a snippet from the Weblogic logfiles.

Can someone help me with this?

**********************************************************************
- Script output (install)

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.

+ firstcgiask=y
+ true
+ getdir 'CGI dir' ''
+ prompt=CGI dir
+ defdir=
+ create=
+ empty=
+ '[' '!' -z '' ']'
+ true
+ showprompt 'CGI dir: '
+ echo -n 'CGI dir: '
CGI dir: + read dir
/data/wls/mydomain/cgi-bin
+ '[' -z /data/wls/mydomain/cgi-bin ']'
++ echo /data/wls/mydomain/cgi-bin
++ sed -n '/^[/]/p'
+ x=/data/wls/mydomain/cgi-bin
+ '[' /data/wls/mydomain/cgi-bin = '' ']'
+ '[' '' = url -o -d /data/wls/mydomain/cgi-bin ']'
+ break
++ echo /data/wls/mydomain/cgi-bin
++ sed 's@[/\]$@@'
+ CgiDir=/data/wls/mydomain/cgi-bin
+ pfxbar=y
+ true
+ rm -f /tmp/install-10805-1.tmp
+ p=
+ '[' '' '!=' '' ']'
+ '[' /data/wls/mydomain/cgi-bin = '' -a '' '!=' '' ']'
++ basename /data/wls/mydomain/cgi-bin
+ CgiUrl=/cgi-bin
+ '[' y = y ']'
+ cat

-------------------------------------------------------------------------
+ pfxbar=y
+ cat
What is the prefix for CGI URLs (the part of the URL before the program)?
o You may enter a URL, such as http://localhost/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.

+ CgiUrl=http://localhost/cgi-bin
+ getdir 'CGI URL prefix' http://localhost/cgi-bin url
+ prompt=CGI URL prefix
+ defdir=http://localhost/cgi-bin
+ create=url
+ empty=
+ '[' '!' -z http://localhost/cgi-bin ']'
+ prompt=CGI URL prefix [ENTER for http://localhost/cgi-bin]
+ true
+ showprompt 'CGI URL prefix [ENTER for http://localhost/cgi-bin]: '
+ echo -n 'CGI URL prefix [ENTER for http://localhost/cgi-bin]: '
CGI URL prefix [ENTER for http://localhost/cgi-bin]: + read dir
http://localhost:7001/cgi-bin
+ '[' -z http://localhost:7001/cgi-bin ']'
++ echo http://localhost:7001/cgi-bin
++ sed -n '/^[/]/p'
+ x=
+ '[' '' = '' ']'
+ '[' url = url ']'
++ echo http://localhost:7001/cgi-bin
++ sed -n '/^http:[/][/][a-zA-Z_0-9-][.a-zA-Z_0-9-]*:*[0-9]*[/]/p'
+ x=http://localhost:7001/cgi-bin
+ '[' http://localhost:7001/cgi-bin = '' ']'
+ break
++ echo http://localhost:7001/cgi-bin
++ sed 's@[/\]$@@'
+ CgiUrl=http://localhost:7001/cgi-bin
+ '[' http://localhost:7001/cgi-bin = /newdir ']'
+ cat

---------------------------------------------------------------------------
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.

+ p=CGI extension
+ def=
+ '[' '' '!=' '' ']'
+ '[' '' = '' ']'
+ p=CGI extension [ENTER for none]
+ showprompt 'CGI extension [ENTER for none]: '
+ echo -n 'CGI extension [ENTER for none]: '
CGI extension [ENTER for none]: + read CgiExt

+ '[' '' = '' ']'
+ CgiExt=
+ replace=y
+ CgiTmpExt=
+ tmplink=/data/wls/mydomain/cgi-bin/texis
+ cmp /data/wls/mydomain/cgi-bin/texis /opt/morph3/bin/monitor
+ '[' y = y -a -x /data/wls/mydomain/cgi-bin/texis ']'
+ '[' y = y ']'
+ rdsymlink /data/wls/mydomain/cgi-bin/texis
++ ls -ald /data/wls/mydomain/cgi-bin/texis
++ sed -n '/ -> /s@^.* -> \(.*\)$@\1@p'
+ sym=
+ '[' '' = /opt/morph3/bin/monitor -o '' = /opt/morph3/bin/texis ']'
+ '[' -f /data/wls/mydomain/cgi-bin/texis ']'
+ issymlink /data/wls/mydomain/cgi-bin/texis
++ ls -ald /data/wls/mydomain/cgi-bin/texis
++ sed -n '/^l/p'
+ '[' '' '!=' '' ']'
+ return 1
+ ln -s /opt/morph3/bin/monitor /data/wls/mydomain/cgi-bin/texis
+ TmpLink=/data/wls/mydomain/cgi-bin/texis
++ echo http://localhost:7001/cgi-bin
++ sed -n '/^[/]/p'
+ x=
+ '[' '' '!=' '' ']'
+ tryurl=http://localhost:7001/cgi-bin/texis/ins ... html?-dump
+ '[' y = y ']'
+ firstcgiask=n
+ echo -n 'Stopping monitor processes'
Stopping monitor processes+ echo -n .
.+ /opt/morph3/bin/monitor -k
+ sleep 1
+ echo -n .
.+ sleep 1
+ echo -n .
.+ sleep 1
+ echo -n .
.+ sleep 1
+ echo -n .
.+ sleep 1
+ /opt/morph3/bin/rmlocks -f /opt/morph3/texis/testdb
+ echo done
done
+ rm -f /opt/morph3/texis/testdb/SYSLOCKS
+ echo -n 'Checking dir with a web fetch...'
Checking dir with a web fetch...+ /opt/morph3/bin/geturl -t35
'http://localhost:7001/cgi-bin/texis/ins ... html?-dump'
++ sed -n /Can.t.connect/p
+ '[' '' '!=' '' ']'
+ echo 'failed, will try again'
failed, will try again
+ echo -n 'Trying again with file...'
Trying again with file...+ rm -f /data/wls/mydomain/cgi-bin/texis
/tmp/install-10805-1.tmp /tmp/install-10805-2.tmp
+ cp /opt/morph3/bin/monitor /data/wls/mydomain/cgi-bin/texis
+ TmpLink=/data/wls/mydomain/cgi-bin/texis
+ optchown /data/wls/mydomain/cgi-bin/texis
+ '[' bea '!=' '' ']'
+ chgrp bea /data/wls/mydomain/cgi-bin/texis
+ '[' wls60 '!=' '' ']'
+ chown wls60 /data/wls/mydomain/cgi-bin/texis
+ '[' 0 '!=' 0 -o y = y ']'
+ chmod u+s /data/wls/mydomain/cgi-bin/texis
+ PrevErrorSz=
+ '[' '' '!=' '' ']'
+ /opt/morph3/bin/geturl -t35
'http://localhost:7001/cgi-bin/texis/ins ... html?-dump'
+ echo '*** Failed ***'
*** Failed ***
+ cat /tmp/install-10805-2.tmp
++ sed -n '/^HTTP/p'
+ respline=HTTP/1.1 404 Not Found
+ rm -f /data/wls/mydomain/cgi-bin/texis /tmp/install-10805-1.tmp
/tmp/install-10805-2.tmp
+ cat
The URL http://localhost:7001/cgi-bin/texis/ins ... html?-dump
could not be fetched.
Possibly the CGI URL prefix (http://localhost:7001/cgi-bin)
or the CGI extension (none) is wrong.
' '!=' '' ']'.1 404 Not Found
' echo 'The web server response was: HTTP/1.1 404 Not Found
The web server response was: HTTP/1.1 404 Not Found
+ '[' '' '!=' '' ']'
+ true
+ rm -f /tmp/install-10805-1.tmp
+ p=
+ '[' '' '!=' '' ']'
+ '[' /data/wls/mydomain/cgi-bin = '' -a '' '!=' '' ']'
++ basename /data/wls/mydomain/cgi-bin
+ CgiUrl=/cgi-bin
+ '[' y = y ']'
+ cat

-------------------------------------------------------------------------
+ pfxbar=y
+ cat
What is the prefix for CGI URLs (the part of the URL before the program)?
o You may enter a URL, such as http://localhost/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.

+ CgiUrl=http://localhost/cgi-bin
+ getdir 'CGI URL prefix' http://localhost/cgi-bin url
+ prompt=CGI URL prefix
+ defdir=http://localhost/cgi-bin
+ create=url
+ empty=
+ '[' '!' -z http://localhost/cgi-bin ']'
+ prompt=CGI URL prefix [ENTER for http://localhost/cgi-bin]
+ true
+ showprompt 'CGI URL prefix [ENTER for http://localhost/cgi-bin]: '
+ echo -n 'CGI URL prefix [ENTER for http://localhost/cgi-bin]: '
CGI URL prefix [ENTER for http://localhost/cgi-bin]: + read dir


**********************************************************************
- Weblogic server log output
**********************************************************************

Jun 5, 2002 7:04:41 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis/installtest/func.html'
in
'/data/wls/mydomain/cgi-bin:'

Jun 5, 2002 7:04:41 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis/installtest/func.html'
in
'/data/wls/mydomain/cgi-bin:'

Jun 5, 2002 7:07:13 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis.cgi/installtest/func.ht
ml' in
'/data/wls/mydomain/cgi-bin:'

Jun 5, 2002 7:07:13 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis.cgi/installtest/func.ht
ml' in
'/data/wls/mydomain/cgi-bin:'

Jun 5, 2002 7:27:16 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis/installtest/func.html'
in
'/data/wls/mydomain/cgi-bin:'

Jun 5, 2002 7:27:17 PM CEST Info HTTP
[WebAppServletContext(4829590,DefaultWebApp_myserver)] CGISe
rvlet:
Could not find script '/texis/installtest/func.html'
in
'/data/wls/mydomain/cgi-bin:'
**********************************************************************

Regards,

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

WebLogic message: "Could not find script"

Post by Kai »

I see a colon at the end of the cgi-bin directory in your web server's error messages. Is your web server configured to serve CGI scripts out of "/data/wls/mydomain/cgi-bin" or "/data/wls/mydomain/cgi-bin:"? There may be a typo (extra or missing colon) in either your web server's CGI dir config, or the dir you gave to the Webinator install.
arje
Posts: 5
Joined: Fri May 24, 2002 11:32 am

WebLogic message: "Could not find script"

Post by arje »

We have looked at your suggestion. Sadly, running another (non-webinator) script from the CGI-BIN results in the same strange colon in the Weblogic logfile. It's always there. I'm afraid this is just a notation of Weblogic (although I wouldn't know why).

Is there something else you can see from the log?
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

WebLogic message: "Could not find script"

Post by mark »

Try copying texis into the cgi directory by hand and making it setuid to the correct person.
chown THEUSER texis
chmod u+s texis
then try to access it in a web browser
http://localhost:7001/cgi-bin/texis
that should issue a texis copyright. If it still says 404 not found the webserver's broken or you put texis in the wrong place. If that works try
http://localhost:7001/cgi-bin/texis/xx/yy.html
if you get a texis message about script file xx not found, you're set. If you get a 404 not found from the webserver the webserver is not CGI compliant and needs to be replaced.
Post Reply