[greenstone-users] ImageMagick not working when building collections using client-gli or gli applet

From Katherine of Greenstone Team
DateSat Sep 12 08:03:00 2009
Subject [greenstone-users] ImageMagick not working when building collections using client-gli or gli applet
In-Reply-To (d377f00a0909030205p19b012bdi3bc090a3c73316cb-mail-gmail-com)
Hi Elvi

I just want to check a few things:
- can you build a simple image collection remotely? eg a new
collection, add a few images and build. This will test whether the
problem lies with image magick.
- and I think from what you have said, that you can process the pdf
files using other convert_to types (eg html)?

Is the problem just that convert_to pagedimg_jpg doesn't work?
We'll try that here this week.

Regards,
Katherine

SEAFDEC/AQD Library wrote:
> Hello Mon,
>
> I reinstalled greenstone ver. 2.82 outside Program Files and made
> C:Greenstonecollect and C:Greenstone mp directory writeable by the
> webserver user. Still can't build collection using pdfplugin -convert_to
> pagedimg_jpg. I followed Katherine's advice to add imagemagick's
> directory to the path environment variable of the server. Here's my
> message log from GLI:
>
> import.pl> perl -S full-import.pl -gli -language "en" pdfcolle
> -collectdir "C:Greenstonecollect" 2>&1
> import.pl> Removing current contents of the archives directory...
> import.pl> Removing contents of the collection "tmp" directory...
> import.pl> Global file scan checking directory: C:Greenstonecollect
> pdfcolleimport
>
> import.pl> Converting pdf01.pdf to PagedImage format
> import.pl> Error executing pdftoimg.pl
> import.pl> pdfpstoimg error log:
> import.pl> Invalid Parameter -
> "C:Greenstonecollectpdfcolle mppdf01pdf01.jpg"
> import.pl> Convert error for C:Greenstonecollectpdfcolle mppdf01.pdf
> import.pl> Could not convert pdf01.pdf to PagedImage format
> import.pl> Invalid Parameter -
> "C:Greenstonecollectpdfcolle mppdf01pdf01.jpg"
> import.pl> Convert error for C:Greenstonecollectpdfcolle mppdf01.pdf
> import.pl>
> import.pl> WARNING: No plugin could process pdf01.pdf
>
> Here's my apache's error log:
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx]
> java.util.zip.ZipException: ZIP file must have at least one entryr
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.ZipOutputStream.finish(Unknown Source)r
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.DeflaterOutputStream.close(Unknown Source)r
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.ZipOutputStream.close(Unknown Source)r
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] at
> org.greenstone.gatherer.remote.ZipCollectionArchives.main(ZipCollectionArchives.java:34)r
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] ERROR:
> Collection archives zip file
> C:\Greenstone\collect\pdfcolle-archives-1251966875343.zip could not
> be created.
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx]
> (cmd=download-collection-archives&c=pdfcolle&lr=&un=euler&pw=TpiHpRfcflpig&ts=1251966875343r
>
> [Thu Sep 03 16:36:53 2009] [error] [client xxx.xxx.x.xx] )
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx]
> java.util.zip.ZipException: ZIP file must have at least one entryr
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.ZipOutputStream.finish(Unknown Source)r
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.DeflaterOutputStream.close(Unknown Source)r
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] at
> java.util.zip.ZipOutputStream.close(Unknown Source)r
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] at
> org.greenstone.gatherer.remote.ZipCollectionArchives.main(ZipCollectionArchives.java:34)r
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] ERROR:
> Collection archives zip file
> C:\Greenstone\collect\pdfcolle-archives-1251966985328.zip could not
> be created.
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx]
> (cmd=download-collection-archives&c=pdfcolle&lr=&un=euler&pw=TpiHpRfcflpig&ts=1251966985328r
>
> [Thu Sep 03 16:38:36 2009] [error] [client xxx.xxx.x.xx] )
>
>
> Also, while building, a message would pop up saying: Remote Greenstone
> Server Error
>
> An error has occurred on the remote Greenstone server while performing
> this operation: Collection archives zip file
> C:Greenstonecollectpdfcolle-archives-1251967713218.zip could not be
> created.
>
> I have no idea what to do to resolve this issue, please help.
>
> Thanks in advance and I really appreciate your help. More power to you
> and the rest of the Greenstone team.
>
>
> Sincerly,
>
> Elvi
>