[greenstone-users] Re: Client-CLI Re: Greenstone 2.83 for Linux, 64-bit or 32-bit?

From Anupama of Greenstone Team
DateTue Oct 26 18:46:45 2010
Subject [greenstone-users] Re: Client-CLI Re: Greenstone 2.83 for Linux, 64-bit or 32-bit?
In-Reply-To (4CC63A20-6050605-cs-waikato-ac-nz)
Hi Xiao,

I am able to reproduce the problem here on a Linux server against a
Linux client.


I set the "verbosity" parameter to 4, in GLI (client) > Create Panel >
Import Options to the left hand side. When I build with this, it gives
me errors of the following nature, when it tries to build thumbnails for
my images:

import.pl> identify
"/myprefixpath/Greenstone283/collect/me-img1/import/Cheetah.jpg" 2>&1
import.pl> identify: UnableToOpenConfigureFile `delegates.xml'.
import.pl> identify: NoDecodeDelegateForThisImageFormat
`/myprefixpath/Greenstone283/collect/me-img1/import/Cheetah.jpg'.
import.pl>
import.pl> file:
/myprefixpath/Greenstone283/collect/me-img1/import/Cheetah.jpg:
unknown, unknown, unknown, unknown
import.pl> THUMB: convert -interlace plane -verbose -geometry 100x100
"/myprefixpath/Greenstone283/collect/me-img1/import/Cheetah.jpg"
"/myprefixpath/Greenstone283/tmp/F615.gif"
import.pl> Converting image Cheetah.jpg to: THUMB gif ...
import.pl> Error: processing command failed. Exit status 256
import.pl> Command was: convert -interlace plane -verbose -geometry
100x100 "/myprefixpath/Greenstone283/collect/me-img1/import/Cheetah.jpg"
"/myprefixpath/Greenstone283/tmp/F615.gif"

Is this similar to what happens when you turn up the verbosity level of
your Import Options?

I am still investigating.

Regards,
Anupama

Anupama of Greenstone Team wrote:
> Hi Xiao,
>
> I don't yet know what's going on. I will make sure to test this with
> 2.84 for the upcoming release, but could you try the same on the server
> machine itself: instead of running it from the command line, can you try
> running normal GLI on the server machine and see if it completes
> properly, or whether it fails with the same error that the client-GLI
> failed with from the remote machine?
>
> I will definitely have a look at it after the release we're working on
> or maybe if I have some free time in the evenings.
>
> Regards,
> Anupama
>
>
> Xiao Hu wrote:
>> Hi Anupama,
>>
>> It might not be related to 64-bit or 32-bit, as I found a strange
>> phenomenon:
>> When I logged on the server and used command line, the thumbnail was
>> converted:
>>
>> perl full-import.pl <http://full-import.pl> -collectdir
>> "/home/xiaohu/Greenstone/collect" -gli -language "en" xiao-photo
>> <Import>
>> Removing current contents of the archives directory...
>> <File n=''>
>> Global file scan checking directory:
>> /home/xiaohu/Greenstone/collect/xiao-photo/import
>> <File n='Boston City Flow.jpg'>
>> <File n='metadata.xml'>
>> <File n=''>
>> <File n='Boston City Flow.jpg'>
>> <File n='metadata.xml'>
>>
>> <Processing n='metadata.xml' p='MetadataXMLPlugin'>
>> MetadataXMLPlugin: processing metadata.xml
>> <File n='Boston City Flow.jpg'>
>> <Processing n='Boston City Flow.jpg' p='ImagePlugin'>
>> ImagePlugin processing Boston City Flow.jpg
>> Converting image Boston City Flow.jpg to: THUMB gif ...
>> ...done
>> Converting image Boston City Flow.jpg to: SCREEN jpeg ...
>> ...done
>>
>>
>> However, when using Client-GLI, I still got the error, and no
>> thumbnail was created. Do you have a clue on what caused the difference?
>>
>> Thank you!
>> Xiao
>>
>> On Thu, Oct 21, 2010 at 12:35 PM, Xiao Hu <xiaohusmile@gmail.com
>> <mailto:xiaohusmile@gmail.com>> wrote:
>>
>> Hi Anupama,
>>
>> This is Xiao again. I was in Univ. of Illinois teaching Greenstone,
>> and now I am in Univ. of Denver teaching Greenstone again.
>>
>> This time, we installed Greenstone 2.83 on a Linux server. our
>> system admin said he initially "started with a 64bit Linux OS, but
>> had to re-install with 32bit, since all the binaries that greenstone
>> comes with are 32bit". It works fine until students found the
>> server-based Greenstone cannot convert images to thumbnails. I tried
>> to build a collection with only 1 image, through the Client-GLI, and
>> I got the following error message:
>> s
>> import.pl <http://import.pl>> perl -S full-import.pl
>> <http://full-import.pl> -collectdir
>> "/home/xiaohu/Greenstone/collect" -gli -language "en" xiao-photo
>> 2>&1 import.pl <http://import.pl>> Removing current contents of the
>> archives directory...
>> import.pl <http://import.pl>> Global file scan checking directory:
>> /home/xiaohu/Greenstone/collect/xiao-photo/import
>> import.pl <http://import.pl>>
>> import.pl <http://import.pl>> MetadataXMLPlugin: processing
>> metadata.xml
>> import.pl <http://import.pl>> ImagePlugin processing Boston City
>> Flow.jpg
>> import.pl <http://import.pl>> Converting image Boston City
>> Flow.jpg to: THUMB gif ...
>> import.pl <http://import.pl>> Error: processing command failed.
>> Exit status 256
>> import.pl <http://import.pl>> ...error encounterd
>> import.pl <http://import.pl>> Couldn't find thumbnail
>> /home/xiaohu/Greenstone/tmp/F240.gif
>> import.pl <http://import.pl>> Converting image Boston City
>> Flow.jpg to: SCREEN jpeg ...
>> import.pl <http://import.pl>> Error: processing command failed.
>> Exit status 256
>> import.pl <http://import.pl>> ...error encounterd
>> import.pl <http://import.pl>> Couldn't find screenview file
>> /home/xiaohu/Greenstone/tmp/F578.jpeg
>> .....
>>
>> I searched (google) the highlighted message "Converting image ? to
>> THUMB gif? Error?. Exit status 256", and a post said that
>> imageMagick can only work with 64 bits machine, and won't work with
>> 32 bits machine. However, when I checked the imageMagick, it's a
>> 32bit:
>>
>> [root@greenstone lib]# pwd
>> /home/xiaohu/Greenstone/bin/linux/imagemagick/lib
>> [root@greenstone lib]# file libMagickCore.so.1
>> libMagickCore.so.1: ELF 32-bit LSB shared object, Intel 80386,
>> version 1 (SYSV), not stripped
>>
>> I read the release note of 2.83, it doesn't specify 64bits or 32bits
>> for Linux. Has Greenstone been tested on both versions of Linux? If
>> it is supposed to work with 32bit Linux, is there anyway to fix the
>> error on converting images to thumbnails? Most of our students are
>> building image collections, and thus it's critical for them to be
>> able to convert images to thumbnails.
>>
>> Thank you very much!!
>>
>> Xiao
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users