unable to import from local directory (Maximum execution time of 60 seconds) with debian

ticoli

Joined: 2013-02-16
Posts: 4
Posted: Sat, 2013-02-16 13:24

I didn't try the offical version, but i'm using the debian package and
got this bug.

I'm looking for a workaround to re-create my albums (thousands of
photos), after a disk crash.

Thanks.

Debian BTS http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700701

Package: gallery2
Version: 2.3.2.dfsg-1
Severity: important

I did a fresh install of gallery2.
I've lost my mysql database, but have a backup of photos directory
(20G).

I follow the wiki on gallery site, trying to import from a local
directory.

The process starts, create about 130 pictures and several albums but stops.
Apache log:

error.log:[Thu Feb 14 19:38:53 2013] [error] [client
2a01:e35:8a34:d8e0:d63d:7eff:fe32:4267] PHP Fatal error: Maximum
execution time of 60 seconds exceeded in
/usr/share/gallery2/modules/exif/lib/exifer/exif.inc on line 146,
referer:
https://gallery.mydomain.com/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_addPlugin=ItemAddFromServer&g2_form%5BlocalServerPath%5D=/mnt/readynas/famille/PhotosGalleryCrashed/albums&g2_itemId=7&g2_form%5Baction%5D%5BfindFilesFromLocalServer%5D=1&g2_form%5BformName%5D=ItemAddFromServer

-- System Information:
Debian Release: 6.0.6
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-updates'), (500,
'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gallery2 depends on:
ii apache2 2.2.16-6+squeeze10 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.16-6+squeeze10 Apache HTTP Server -
traditional n
ii debconf [debconf-2. 1.5.36.1 Debian configuration
management sy
ii imagemagick 8:6.6.0.4-3+squeeze3 image manipulation programs
ii libapache2-mod-php5 5.3.3-7+squeeze14 server-side, HTML-embedded
scripti
ii libphp-adodb 5.10-1 The ADOdb database
abstraction lay
ii mysql-client 5.1.66-0+squeeze1 MySQL database client
(metapackage
ii mysql-client-5.1 [m 5.1.66-0+squeeze1 MySQL database client binaries
ii netpbm 2:10.0-12.2+b1 Graphics conversion tools
between
ii php5 5.3.3-7+squeeze14 server-side, HTML-embedded
scripti
ii php5-mysql 5.3.3-7+squeeze14 MySQL module for php5
ii smarty 2.6.26-0.2 Template engine for PHP
ii wwwconfig-common 0.2.1 Debian web auto configuration

Versions of packages gallery2 recommends:
ii dcraw 8.99-1+b1 decode raw digital camera
images
ii ffmpeg 5:0.7.13-dmo2 audio/video encoder,
streaming ser
ii jhead 1:2.90-2 manipulate the non-image
part of E
ii libjpeg-progs 8b-1 Programs for manipulating
JPEG fil
ii php5-gd 5.3.3-7+squeeze14 GD module for php5
ii unzip 6.0-4 De-archiver for .zip files
ii zip 3.0-3 Archiver for .zip files

Versions of packages gallery2 suggests:
ii mysql-server 5.1.66-0+squeeze1 MySQL database server
(metapackage
ii mysql-server-5.1 [mysq 5.1.66-0+squeeze1 MySQL database server
binaries and

-- debconf information excluded

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-02-16 13:57

looks like the exif module is the culprit. do you need it?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
ticoli

Joined: 2013-02-16
Posts: 4
Posted: Sat, 2013-02-16 14:59

Yes. Dates are important for me.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-02-16 15:22

try the attached latest version of exif.inc

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
ticoli

Joined: 2013-02-16
Posts: 4
Posted: Sat, 2013-02-16 16:21

It seems to be a dead library. Get last from here http://www.offsky.com/software/exif/index.php and replace.

==> /var/log/apache2/error.log <==
[Sat Feb 16 17:17:56 2013] [error] [client 2a01:e35:8a34:d8e0:225:d3ff:feea:76fe] PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/gallery2/modules/exif/lib/exifer/makers/olympus.php on line 155, referer: https://gallery.breizh-biniou.fr/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_addPlugin=ItemAddFromServer&g2_form%5BlocalServerPath%5D=/mnt/readynas/famille/PhotosGalleryCrashed/albums&g2_itemId=7&g2_form%5Baction%5D%5BfindFilesFromLocalServer%5D=1&g2_form%5BformName%5D=ItemAddFromServer
[Sat Feb 16 17:17:56 2013] [error] [client 2a01:e35:8a34:d8e0:225:d3ff:feea:76fe] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 268959745 bytes) in /usr/share/gallery2/modules/exif/lib/exifer/makers/olympus.php on line 155, referer: https://gallery.breizh-biniou.fr/main.php?g2_view=core.ItemAdmin&g2_subView=core.ItemAdd&g2_addPlugin=ItemAddFromServer&g2_form%5BlocalServerPath%5D=/mnt/readynas/famille/PhotosGalleryCrashed/albums&g2_itemId=7&g2_form%5Baction%5D%5BfindFilesFromLocalServer%5D=1&g2_form%5BformName%5D=ItemAddFromServer

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-02-16 17:06

version 1.7 is the latest from the zenphoto pkg they are maintaining it now.
But I did not look through the library and make sure we are passing the correct parameters as I have no interest in exif.

Here is the whole exif package from zenphoto (files renamed appropriately).

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
ticoli

Joined: 2013-02-16
Posts: 4
Posted: Sat, 2013-02-16 18:20

Great! Seems to work. required filenames in makers directory are wrong, i replaced them and that's it!

13 years of life restored!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2013-02-16 18:30
Quote:
filenames in makers directory are wrong

Oops, fixed in exif.inc ;)

archive
updated

-s
________________________________
All New jQuery Minislideshow for G2/G3