Thumbnail creation fails

129 views
Skip to first unread message

Enemy

unread,
Nov 27, 2011, 11:26:32 AM11/27/11
to ResourceSpace
Hello,

I'm currently in the process of finishing my project for my exam where
I chose 'The integration of a DAM into an existing IT infrastructure'.

So far my experience in MySQL, PHP and web-development helped me to
get things running on a local dedicated BSD-based machine. I've
installed the latest MySQL (v5.5.18), PHP (v5.3.4) and also the most
recent version of Resourcespace (v4.3.2912, 11th of September 2011).
All went well and I started to build the first collection and uploaded
some test-files (JPGs, WAV, PDF) and that's where I ran into the
problem: no thumbnails are created.

I did an installation-check which brought me this:

PHP version 5.3.4 OK
MySQL version 5.5.18 (client-encoding: latin1) OK
GD version bundled (2.0.34 compatible) OK
PHP.INI value for 'memory_limit' 999M OK
PHP.INI value for 'post_max_size' 999M OK
PHP.INI value for 'upload_max_filesize' 999M OK
Write access to /Library/WebServer/Documents/resourcespace/pages/
filestore OK
Blocked browsing of 'filestore' directory OK
ImageMagick Version: ImageMagick 6.7.3-1 2011-11-27 Q16 http://www.imagemagick.org
OK
FFmpeg ffmpeg version 0.7.8, Copyright (c) 2000-2011 the FFmpeg
developers OK
Ghostscript OK
EXIF extension OK
Exiftool OK

I'm really stuck since I had no luck with all my efforts to find a
solution for this problem. Reading the posted topics in this group
also did not give me a method to fix things. What else could I check
for?

Greets,
Enemy

Paul Manno

unread,
Nov 27, 2011, 12:07:21 PM11/27/11
to resour...@googlegroups.com
Any errors in your http logs?

> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
>
>

Enemy

unread,
Nov 27, 2011, 12:25:07 PM11/27/11
to ResourceSpace
On Nov 27, 6:07 pm, Paul Manno <pgma...@gmail.com> wrote:
> Any errors in your http logs?

Here is an outtake of the error_log. I uploaded a videofile and it has
been processed as it's supposed to be. Checking the filestore folder
shows that thumbnails and smallsized versions are created. Somehow
Resourcespace doesn't find the folder.

ffmpeg version 0.7.8, Copyright (c) 2000-2011 the FFmpeg developers

built on Nov 24 2011 14:31:00 with gcc 4.2.1 (Apple Inc. build 5666)
(dot 3)
configuration: --prefix=/opt/local --enable-gpl --enable-postproc --
enable-swscale --enable-avfilter --enable-libmp3lame --enable-
libvorbis --enable-libtheora --enable-libdirac --enable-
libschroedinger --enable-libopenjpeg --enable-libxvid --enable-libx264
--enable-libvpx --enable-libspeex --mandir=/opt/local/share/man --
enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --arch=x86_64 --
enable-yasm
libavutil 50. 43. 0 / 50. 43. 0
libavcodec 52.123. 0 / 52.123. 0
libavformat 52.111. 0 / 52.111. 0
libavdevice 52. 5. 0 / 52. 5. 0
libavfilter 1. 80. 0 / 1. 80. 0
libswscale 0. 14. 1 / 0. 14. 1
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Library/WebServer/Documents/
filestore/4_d77c33661d96eaf/4_d972bbe4bd78435.mp4':
...
...
...
frame= 3000 fps=212 q=6.5 Lsize= 10291kB time=00:02:00.00 bitrate=
702.5kbits/s

video:9703kB audio:469kB global headers:0kB muxing overhead 1.170958%
[Sun Nov 27 17:54:40 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf, referer:
http://127.0.0.1/resourcespace/pages/upload_swf.php?resource_type=3&collection_add=2&entercolname=Videos&replace=&no_exif=&autorotate=
[Sun Nov 27 17:54:41 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf, referer:
http://127.0.0.1/resourcespace/pages/collections.php?nc=1322412851
[Sun Nov 27 17:54:41 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf, referer:
http://127.0.0.1/resourcespace/pages/collections.php?nc=1322412851
[Sun Nov 27 17:57:58 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf, referer:
http://127.0.0.1/resourcespace/pages/search.php?search=%21collection2
[Sun Nov 27 17:57:58 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf, referer:
http://127.0.0.1/resourcespace/pages/search.php?search=%21collection2
[Sun Nov 27 17:58:03 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf
[Sun Nov 27 17:58:03 2011] [error] [client 127.0.0.1] File does not
exist: /Library/WebServer/Documents/4_d77c33661d96eaf

When I check the filestore folder I can see this:

4_d972bbe4bd78435.jpg
4col_c0000f1425934eb.jpg
4pre_10a8c5e5f8cd5f8.jpg
4_d972bbe4bd78435.mp4
4pre_10a8c5e5f8cd5f8.flv
4thm_98dec74e73712a4.jpg
metadump.xml

So, the files are there but RS can't access them for some reason.

Greets,
Enemy

Paul Manno

unread,
Nov 27, 2011, 3:11:40 PM11/27/11
to resour...@googlegroups.com
So in the installation check you posted you have filestore as :
/Library/WebServer/Documents/resourcespace/pages/filestore
You'll notice from the script, it's looking somewhere else:

File does not exist: /Library/WebServer/Documents/4_d77c33661d96eaf

If you browse to /Library/WebServer/Documents, do you see this folder?
I'm guessing you'll find the folder in
/Library/WebServer/Documents/resourcespace/pages/filestore, since
that's where your installation check reports the filestore to be.

In this case, you have to open up config.php and add a new entry:

$storagedir='/Library/WebServer/Documents/resourcespace/pages/filestore';

Also make sure that the user who is running the web process (apache,
or www-data, or whomever) owns and has full permissions to the
filestore and every sub directory (chown -R <filestoredir> will take
care of this).

Enemy

unread,
Nov 27, 2011, 7:11:37 PM11/27/11
to ResourceSpace
Hello Paul,

to clear out some things: after reading a possible troubleshooting to
this problem I followed the "instructions" by a member of this group
to delete the database, remove the original installation folder,
replace it with an untouched version of RS and just put in the config
file. I re-installed and this time I set the folders like this:

Root: /Library/WebServer/Documents
Filestore: /Library/WebServer/Documents/filestore
Resourcespace: /Library/WebServer/Documents/resourcespace

I did some changes to the Apache config, restarted and played around -
no luck at all.

Now, hours later, after fiddling around with the local Apache
installation and the one that has brought by MacPorts to my machine I
found out there were two concurrent installations, not really running
at the same time, but somehow config-files were twisted up, etc.

What did I do? I deactivated the 2nd apache server install that has
been brought to the system by MacPorts, edited the system-owned Apache
configuration, deleted the database, killed the RS folder, re-
installed and triple-checked paths - it works!

Thanks for taking the time. Even that I could not figure out the
source of the error your help was a great moral support so I continued
to get things running. Your help was very appreciated!

Greets,
Enemy

P. S. This time I did not tweak the filestore-path and left every
variable as it was provided by the installer script.

Reply all
Reply to author
Forward
0 new messages