No thumbnails or previews on a Synology box (solved)

2,636 views
Skip to first unread message

Noel Rivas

unread,
Jul 22, 2015, 3:23:26 PM7/22/15
to ResourceSpace
This is just a note of a problem and its solution to help any future searchers. No help is actually needed, thank you :)

I installed the latest version of RS on a DS1515+ Synology box. Used ipkg to install all the dependencies, everything went smooth. I found out, however, that no previews or thumbnails were being created. I went to the installation check page, everything was fine, including the path to imagemagick.

I manually checked via SSH, convert was there, under /usr/bin.

I checked the permissions, even 777'd the whole thing just to make sure the problem wasn't there.

Tried debugging, found nothing unusual.

Checked the httpd logs, no errors there. 

Checked PHP for restrictions or problems with open_basedir or something. Nope, everything was fine.

I started diving into the code (the create_previews_using_im is nightmarish code, btw), checking where exactly was the preview generation failing. I noticed that, while it's not verified in the installation check page, the identify command, provided by Imagemagick, is required, but it wasn't present in my system. I believe that Synology DSM has the convert binary but not the identify, so even if the installation check said I had imagemagick, I really didn't.

I ran ipkg install imagemagick, problem gone. 

TL;DR: install (or reinstall) imagemagick with ipkg (or any other method, but make sure that both convert and identify are somewhere in your $PATH).


(You can contact me if you need guidance on setting up RS on a Synology box, been there a couple of times)



Dan Huby

unread,
Jul 23, 2015, 6:56:27 PM7/23/15
to ResourceSpace, noel....@gmail.com, noel....@gmail.com
Hi Noel,

I'm really impressed that you have managed to install ResourceSpace on a Synology drive. Thanks for posting the solution.

How well does it run on that drive? It has a fairly beefy quad core processor - I'd think that memory was the biggest issue. How much do you have fitted?

Dan

Noel Rivas

unread,
Jul 23, 2015, 7:19:20 PM7/23/15
to ResourceSpace, d...@montala.com
Hi Dan, 

Thank you! 

It runs well, actually. I thought we were going to need an external compute (like a NanoPC) to speed image processing up but so far the internal processor has been enough. The preview / thumbnail generation isn't the fastest, but it still works well for a team of ~30 in a publishing business with a very active photo team.

The unit used by the team of 30 has 4GB of memory, and another one we just installed last week has  the standard 2GB, for a much smaller team.

If anyone else is interested in setting up ResourceSpace on a Synology unit (with Atom processor) I can put together a quick guide and offer help if they get stuck.

Noel

Dan Huby

unread,
Jul 24, 2015, 5:35:44 AM7/24/15
to Noel Rivas, ResourceSpace
It's be great to have an article on the wiki - let me know if you'd like
an account.

--
Dan Huby
Montala Limited

http://www.montala.com/
UK: 01367 710245
Intl: +44 136 771 0245

On 24/07/15 00:19, Noel Rivas wrote:
> Hi Dan,
>
> Thank you!
>
> It runs well, actually. I thought we were going to need an external
> compute (like a NanoPC) to speed image processing up but so far the
> internal processor has been enough. The preview / thumbnail generation
> isn't the fastest, but it still works well for a team of ~30 in a
> publishing business with a very active photo team.
>
> The unit used by the team of 30 has 4GB of memory, and another one we
> just installed last week has the standard 2GB, for a much smaller team.
>
> If anyone else is interested in setting up ResourceSpace on a Synology
> unit (with Atom processor) I can put together a quick guide and offer
> help if they get stuck.
>
> Noel
>
> On Thursday, July 23, 2015 at 5:56:27 PM UTC-5, Dan Huby wrote:
>
> Hi Noel,
>
> I'm really impressed that you have managed to install ResourceSpace
> on a Synology drive. Thanks for posting the solution.
>
> How well does it run on that drive? It has a fairly beefy quad core
> processor - I'd think that memory was the biggest issue. How much do
> you have fitted?
>
> Dan
>
>
> On Wednesday, 22 July 2015 20:23:26 UTC+1, Noel Rivas wrote:
>
> /This is just a note of a problem and its solution to help any
> future searchers. No help is actually needed, thank you :)/
>
> I installed the latest version of RS on a DS1515+ Synology box.
> Used ipkg to install all the dependencies, everything went
> smooth. I found out, however, that no previews or thumbnails
> were being created. I went to the /installation check/ page,
> everything was fine, including the path to /imagemagick/.
>
> I manually checked via SSH, /convert/ was there, under /usr/bin.
>
> I checked the permissions, even 777'd the whole thing just
> to make sure the problem wasn't there.
>
>
> Tried debugging, found nothing unusual.
>
>
> Checked the httpd logs, no errors there.
>
>
> Checked PHP for restrictions or problems with open_basedir
> or something. Nope, everything was fine.
>
> I started diving into the code (the
> /create_previews_using_im/ is nightmarish code, btw),
> checking where exactly was the preview generation failing. I
> noticed that, while it's not verified in the /installation
> check /page, the /identify/ command, provided by
> Imagemagick, is required, but it wasn't present in my
> system. I believe that Synology DSM has the /convert/ binary
> but not the /identify, /so even if the installation check
> said I had imagemagick, I really didn't.
>
>
> I ran /ipkg install imagemagick/, problem gone.
>
>
> TL;DR: install (or reinstall) imagemagick with ipkg (or any
> other method, but make sure that both /convert/ and
> /identify/ are somewhere in your $PATH).

Noel Rivas

unread,
Aug 3, 2015, 5:21:23 PM8/3/15
to ResourceSpace, noel....@gmail.com
Sure! I'll be happy to put the Synology guide together. My email is noel at matrushka.com.mx Please let me know if you need additional details to create my account.

Dan Huby

unread,
Aug 4, 2015, 12:38:01 PM8/4/15
to ResourceSpace, noel....@gmail.com
You should have received a password - thanks for your help Noel :)

Noel Rivas

unread,
Aug 5, 2015, 3:07:41 PM8/5/15
to ResourceSpace, noel....@gmail.com
Hi Dan,

I got the account notification, thank you. The Synology guide is ready: http://wiki.resourcespace.org/index.php/Installing_on_Synology_DSM =)

I also added the link to the Installation page, next to the OS X links, I hope this is fine. Feel free to point out any errors or missing bits, I'll be happy to make improvements.

Best,
Noel

Jonny Taylor

unread,
Sep 17, 2015, 4:56:30 AM9/17/15
to ResourceSpace, noel....@gmail.com

Thanks so much for this guide. I've managed to install Resource Space with the exception that when opening Web Station I see this page as opposed to opening the index.php file. What am I doing wrong?? Many thanks
Jonny

Benoit M.

unread,
Oct 6, 2015, 4:29:01 AM10/6/15
to ResourceSpace


(I'm reposting my message here, just saw the link at the end of the wiki how to install on Synology NAS)

I finally managed to install ResourseSpace thanks to your tutorial on my Synology NAS but have one last (big) problem.
When uploading a picture I have this message : 103 Failed to move uploaded file

I think it's a permission or owner issue on the storage folder since my installation is not totally standard, I've had to set the storage on a different volume for disk remaining space reasons.
RS is installed on /volume1/web
But file storage is here :
$storagedir = '/volume2/BEN/
FichiersPhototheque/filestore';
$storageurl = '/volume2/BEN/FichiersPhototheque/filestore';

The filestorage folder ownership is root:users and permissions now set to 777  [root:users is the default owner/group for www root folder on volume1]
During the photo upload a TMP folder is created but remains empty.

What I've tried :
- modify apache conf file system account to guest:users and change ownership of the folder to guest:users => did not work and messed my Synology interface ;)
- change ownership of the folder to http:http (had to create this user and group) then to  admin:users and lots of others I don't remember
- created a local Synology account with same name as my ResourceSpace user and giving it ownership of the folder (I did not believe in that one but tried anyway ^^)

Other informations :
- Synology DSM4
- No log file created (?)
- PHP open_basedir : /etc.defaults:/etc:/usr/syno/synoman:/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/opt/bin:/usr/bin:/usr/syno/bin:/var/log:/volume1/web/phototheque:/volume2/BEN/FichiersPhototheque/filestore:/volume2/BEN/FichiersPhototheque:

ResourseSpace system check page :



Thanks a lot !
Reply all
Reply to author
Forward
0 new messages