[greenstone-users] Greenstone installing (Remote GLI)

From Anupama of Greenstone Team
DateMon Feb 22 18:59:44 2010
Subject [greenstone-users] Greenstone installing (Remote GLI)
In-Reply-To (000501ca840b$f35808a0$da0819e0$-com)
Hi Artnum,

You sent the following to the mailing list in end December. Do you still
have this problem. If so, how are you with Linux in general?

From what I gather of your description, your Greenstone server is on a
Linux machine (an Ubuntu) and your GLI is running on a Windows machine
(since you tried to view the remote Greenstone in "explorer", which I
assume is internet explorer).

It looks like some issue locating java since the screenshot of the error
dialog you sent mentions "Java failed". But one can't be sure, as
something else could have gone wrong too.

This is just to check, but it is an important step:
Did you follow the instructions at
http://wiki.greenstone.org/wiki/index.php/Remote_Greenstone
to set your Greenstone server up for serving pages remotely? In
particular, did step 6 (visiting
http://<your-machine-name>:<port>/greenstone/cgi-bin/gliserver.pl?cmd=check-installation
and getting a success response)
succeed? Was the value displayed for JAVA_HOME in that step as expected:
is that indeed where your JAVA_HOME is on your Ubuntu machine?


Can you try the following:
Instead of running GLI remotely, copy your Ubuntu Greenstone
installation's *GLI* folder into another location on the same Ubuntu
machine. That is, copy greenstone/gli into say /otherfolder/gli.

Run the Greenstone server, then use another x-term to go to
/otherfolder/gli and run ./client-gli.sh from here.

1. Does it succeed or do the same problems occur?
(What we're looking for now is to see whether it was a Windows to Linux
issue that doesn't occur on a linux to linux machine.)

If the problems still occurs:

2. Since you ran GLI from an x-term, you would have seen all kinds of
MESSAGES appear in the x-term when GLI launches (something like
cmd=<something>&<something>&<something>...). These messages are actually
the information that's sent to the remote greenstone server for each
operation, that is being echoed to your x-term as well.

You can send these messages to the Greenstone server page in the browser
as well, and doing so may provide a clearer error message:

Open your browser and paste the following (adjust it for your host and
port):
http://<your-machine-name>:<port>/greenstone/cgi-bin/gliserver.pl?cmd=

Now at the end (after cmd=) paste the "cmd" portion of the last message
echoed in your x-term when running GLI. I.e. the output message in your
x-term that caused the failure.
It will look like for example
cmd=run-script&<param1=value>&<param2=value>. At the end of this string
that you are typing in your URL, you will probably need to append the
username and password you set up to use with client-GLI, by suffixing
the URL with &un=<your-GLI-username>&pw=<your-GLI-password>

Now that the URL is complete, press Enter in your browser address bar.
Does the page that loads still mention something about Java failed?


3. If the problems are still not clearer or not improving, can you open
the file greenstone/cgi-bin/gsdlsite.cfg

At the end there is a line like:
#javahome /full/path/to/j2sdk1.4-or-higher

Remove the "#" sign up front to make the line active, and set this path
for the javahome property in your case. (Make sure to leave at least one
empty new line after it!)

Now try step 2 and then step 1 above again. Does it make any difference?


If the problems persist, you could send me your
greenstone/cgi-bin/gliserver.pl and greenstone/cgi-bin/gsdlCGI.pm files.
I will then add some debugging statements to one or both and send them
back to you. Running your remote Greenstone server with the updated
files might then help to narrow down the problem some more.

Regards,
Anupama

Artnum wrote:
>
>
> Hi,
>
>
>
> I am installing a Greenstone 2.83 on Ubuntu 8.04.3 system.
>
>
>
> I have installed Java Runtime :
>
>
>
> java version "1.6.0_17"
>
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
>
> Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
>
>
>
> And Greenstone search start remotely in explorer.
>
>
>
> My problem is in starting GLI remote librarian. After ID and PASS well
> passed, I get this message alert box :
>
>
>
>
>
> error.jpg
>
>
>
> And the session is closed.
>
>
>
>
>
> I have no idea on how to solve that problem, since I am beginner in
> Greenstone?and Ubuntu
>
>
>
>
>
> Thank you in advance
>
>
>
> Lo□c
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users