cannot set album cover

Questions about the Synology Photo Station can be placed here.
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
calexe
I'm New!
I'm New!
Posts: 3
Joined: Wed Oct 12, 2011 10:53 pm

cannot set album cover

Unread post by calexe » Wed Jun 19, 2013 7:59 am

DS211j, DSM 4.2-3211, Photostation 5

Hi,

I have a problem with setting album cover for my albums. This happens only for some albums, e.g. the ones I created recently. Photostation automatically selects an album cover = the first picture in the folder. If I try to change this - well then with some pictures I succeed with others not. On some albums I cannot change the default album cover (= first picture in folder) at all, with others I may succeed but only with some pictures, not any picture.
I also have some password protected albums. At these ones I cannot change album cover at all.

Reindexing executed - problem persists.

Albums deleted and placed under different folders - problem persists.

Has anybody faced this problem and maybe has a solution to it?
Thanks!

klen
Versed
Versed
Posts: 200
Joined: Wed Oct 21, 2009 3:05 pm

Re: cannot set album cover

Unread post by klen » Fri Jun 21, 2013 12:09 pm

I think it has to do with the permission settings on the folders in the photo volume.
Try to log in and see if you find any differences in user-id or directory mode for folders that work or do not work.
DS-412+
DSM latest
DS-107+
DSM 2.3-1157
DS-112j
DSM latest

Pierre
I'm New!
I'm New!
Posts: 6
Joined: Thu Sep 08, 2011 8:27 pm

Re: cannot set album cover

Unread post by Pierre » Sun Oct 20, 2013 12:08 am

I got the exact same problem here.
ls -l is telling me that all the folders (those that works and those that doesn't) have the same user and all have drwxrwxrwx.
Did you manage to fix your problem?

ibach
I'm New!
I'm New!
Posts: 2
Joined: Tue Oct 22, 2013 4:36 am

Re: cannot set album cover

Unread post by ibach » Tue Oct 22, 2013 4:37 am

I have the same problem and don't know how to fix it..

harrazh
Beginner
Beginner
Posts: 24
Joined: Sun Oct 07, 2012 5:27 pm

Re: cannot set album cover

Unread post by harrazh » Thu Jan 01, 2015 9:27 am

Hi Everyone,
Have you been able to solve the problem?!!! I didnt have this problem before and now I cant set the album cover for some of the folders, I also checked the permissions and I dont think that its the problem

Bill721
I'm New!
I'm New!
Posts: 3
Joined: Mon Apr 07, 2014 2:34 pm

Re: cannot set album cover

Unread post by Bill721 » Thu May 21, 2015 4:11 pm

Has anyone figured how to select which picture is shown as the Icon picture in Photo Station. Setting the Icon picture in the SHARED ALBUMS.

Earendil
I'm New!
I'm New!
Posts: 7
Joined: Sat Jan 06, 2018 3:56 pm

Re: cannot set album cover

Unread post by Earendil » Sat Jan 06, 2018 4:13 pm

Sorry for replying late. I run into this from time to time and found basically the following solution in a German Synology forum.

All the photos that are organized in the photo station can be found in the NAS' filesystem, in my case at /volume1/photo.
Now in every subdirectory of that folder there should be folder called "@eaDir" belonging to PhotoStation:PhotoStation with access rights 777.

Example:

Code: Select all

<an_admin>@<NAS hostname>:/volume1/photo/common/2016/07$ ls -l
total 8
drwxrwxrwx 19 <username>  users            4096 Oct  1 10:10 2016-07-16
drwxrwxrwx 14 PhotoStation PhotoStation 4096 Jul 30  2016 @eaDir
Usually if I cannot set an album cover of one album then the directory is missing or access rights are wrong in the parent directory. (suppose the cover of 2018/01/06 cannot be set, then the affected directory is /volume1/photo/2018/01/@eaDir)

To fix this you need to ssh into your NAS, browse to the respective directory and check what needs to be fixed.
To create the directory use

Code: Select all

$ mkdir @eaDir
To fix the owner use

Code: Select all

$ sudo chown PhotoStation:PhotoStation @eaDir
To fix the permissions use

Code: Select all

$ sudo chmod 777 @eaDir

Earendil
I'm New!
I'm New!
Posts: 7
Joined: Sat Jan 06, 2018 3:56 pm

Re: cannot set album cover

Unread post by Earendil » Sat Jan 06, 2018 5:14 pm

In addition to the aforementioned the following are some commands to find affected folders: (to be executed in the photo root)
Note that you should check every command you pick up in the internet before using it. Hence do so and use them at your own responsibility

List all folders that do not contain an @eaDir folder. (command does not alter files)
I'm not yet sure if a folder that gets listed is a problem or not, but it seems like that's the case

Code: Select all

find . -name @eaDir -prune -o -path "*/\.*" -prune -o -name "#recycle" -prune -o -type d '!' -exec test -d "{}/@eaDir" ';' -print
To create the missing @eaDir folders with correct right and owners use this command: (command DOES alter files)
This must be executed as admin, hence the password prompt, otherwise there might be directories that cannot be visited.

Code: Select all

sudo find . -name @eaDir -prune -o -path "*/\.*" -prune -o -name "#recycle" -prune -o -type d '!' -exec test -d "{}/@eaDir" ';' -print -exec mkdir "{}/@eaDir" ';' -exec chmod 777 "{}/@eaDir" ';' -exec chown PhotoStation:PhotoStation "{}/@eaDir" ';'
List all @eaDir folders that do not belong to PhotoStation:PhotoStation (command does not alter files)
Note that this needs sudo to temporarily change to user PhotoStation and will hence ask for your admin password (ssh login has to happen as admin)
Folders that get listed must not be a problem as long as the user PhotoStation has rwx rights (see next command)

Code: Select all

sudo -u PhotoStation find . -path "*/\.*" -prune -o -name "#recycle" -prune -o -name @eaDir -type d '!' -exec test -O "{}" -a -G "{}" ';' -print
List all @eaDir folders that do not have read, write and execute rights for user PhotoStation (command does not alter files)
Note that this needs sudo to temporarily change to user PhotoStation and will hence ask for your admin password (ssh login has to happen as admin)
Each directory that is listed by this command cannot be written by the PhotoStation app, hence covers for child albums cannot be set

Code: Select all

sudo -u PhotoStation find . -path "*/\.*" -prune -o -name "#recycle" -prune -o -name @eaDir -type d '!' -exec test -r "{}" -a -w "{}" -a -x "{}" ';' -print
The following command will browse all @eaDir folders, print their name, change the access rights to 777 and make PhotoStation:PhotoStation the owner of them and all their content: (command DOES alter files)

Code: Select all

sudo find . -path "*/\.*" -prune -o -name "#recycle" -prune -o -name @eaDir -type d -exec chmod 777 "{}" ';' -exec chown -R PhotoStation:PhotoStation "{}" ';' -print

harrazh
Beginner
Beginner
Posts: 24
Joined: Sun Oct 07, 2012 5:27 pm

Re: cannot set album cover

Unread post by harrazh » Sat Jan 06, 2018 8:19 pm

Thanks a lot guys for the commands listed.

I have tried them all but it didn't work, it still ignores my request to set a pic as album cover. did I miss anything?

Earendil
I'm New!
I'm New!
Posts: 7
Joined: Sat Jan 06, 2018 3:56 pm

Re: cannot set album cover

Unread post by Earendil » Sun Jan 07, 2018 10:05 am

Did you check that the @eaDir directory is present in the parent of the affected album? Does it have correct access rights?

For more detailed help I would need the output of "ls -l" (without the quotes) in the parent directory.

harrazh
Beginner
Beginner
Posts: 24
Joined: Sun Oct 07, 2012 5:27 pm

Re: cannot set album cover

Unread post by harrazh » Mon Jan 08, 2018 7:33 pm

Earendil wrote:Did you check that the @eaDir directory is present in the parent of the affected album? Does it have correct access rights?

For more detailed help I would need the output of "ls -l" (without the quotes) in the parent directory.
Hi Earendil,
My parent folder which hosts all folders that contain nested folders and files for photoStation is "/volume1/HarrazH/Memories"
"ls -l" Result
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""''
drwxrwxrwx 4 http http 4096 Jan 1 2013 2004
drwxrwxrwx 4 http http 4096 Jan 1 2013 2005
drwxrwxrwx 5 http http 4096 Jan 1 2013 2006
drwxrwxrwx 11 http http 4096 Dec 10 2013 2007
drwxrwxrwx 11 http http 4096 Feb 25 2016 2008
drwxrwxrwx 9 http http 4096 Jan 1 2013 2009
drwxrwxrwx 15 harrazh ultimate 4096 Dec 10 2013 2010
drwxrwxrwx 23 http http 4096 Feb 25 2016 2011
drwxrwxrwx 31 http http 4096 Feb 25 2016 2012
drwxrwxrwx 15 http http 4096 Oct 18 2014 2013
drwxrwxrwx 9 http http 4096 Jan 14 2017 2014
drwxrwxrwx 34 http http 4096 Feb 25 2016 2015
drwxrwxrwx 3 http http 4096 Jan 6 23:09 2016
drwxrwxrwx 7 PhotoStation PhotoStation 4096 Apr 7 2017 2017
drwxrwxrwx 13 PhotoStation PhotoStation 4096 Jan 6 23:11 @eaDir
drwxrwxrwx 4 PhotoStation PhotoStation 4096 Apr 7 2017 Historic Memories
-rwxrwxrwx 1 http http 135851813 Jan 25 2016 Kids - Vintage.mp4
drwxrwxrwx 31 harrazh ultimate 4096 Dec 6 07:48 photos
drwxrwxrwx 8 harrazh ultimate 4096 Oct 18 2014 videos

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""''

Earendil
I'm New!
I'm New!
Posts: 7
Joined: Sat Jan 06, 2018 3:56 pm

Re: cannot set album cover

Unread post by Earendil » Mon Jan 08, 2018 9:59 pm

Hey harrazh,

with parent directory I mean the immediate parent. So say you got an album "/volume1/HarrazH/Memories/2017/08/Summer Holiday" then you need to create/fix the directory "/volume1/HarrazH/Memories/2017/08/@eaDir".
Basically you need to do "cd .." in the directory of the affected album and there fix the @eaDir folder.

Let me know if that helps

harrazh
Beginner
Beginner
Posts: 24
Joined: Sun Oct 07, 2012 5:27 pm

Re: cannot set album cover

Unread post by harrazh » Wed Jan 10, 2018 7:30 pm

Earendil wrote:Hey harrazh,

with parent directory I mean the immediate parent. So say you got an album "/volume1/HarrazH/Memories/2017/08/Summer Holiday" then you need to create/fix the directory "/volume1/HarrazH/Memories/2017/08/@eaDir".
Basically you need to do "cd .." in the directory of the affected album and there fix the @eaDir folder.

Let me know if that helps
Hi Earnedill
I actually have the issue with all folders, so the list I sent contains all folders affected. "ls -l" is done on their parent which is Memories. currently I'm trying to set the album cover of 2005 and failing

Please note that I have created a link in photo folder pointing to /volume1/HarrazH

Earendil
I'm New!
I'm New!
Posts: 7
Joined: Sat Jan 06, 2018 3:56 pm

Re: cannot set album cover

Unread post by Earendil » Wed Jan 10, 2018 7:47 pm

Hm ok that's weird then. I'll give you a quick example how a @eaDir folder looks on my NAS so that you can compare that with your situation.

So in a similar root directory as in your case there is a folder for each year:

Code: Select all

admin@NAS:/volume1/photo/Earendil$ ls -l
total 80
drwxrwxrwx  4         1000         1000 4096 Jan  6 17:37 2000
drwxrwxrwx  6         1000         1000 4096 Jan  6 17:37 2001
drwxrwxrwx  6         1000         1000 4096 Jan  6 17:37 2002
drwxrwxrwx  6         1000         1000 4096 Jan  6 17:37 2003
drwxrwxrwx  6         1000         1000 4096 Jan  6 17:37 2004
drwxrwxrwx 15         1000         1000 4096 Jan  6 17:37 2005
drwxrwxrwx 16         1000         1000 4096 Jan  6 17:37 2006
drwxrwxrwx 15         1000         1000 4096 Jan  6 17:36 2007
drwxrwxrwx 15         1000         1000 4096 Jan  6 17:36 2008
drwxrwxrwx 15         1000         1000 4096 Jan  6 17:36 2009
drwxrwxrwx 15         1000         1000 4096 Jan  6 17:36 2010
drwxrwxrwx 12         1000         1000 4096 Jan  6 17:36 2011
drwxrwxrwx 10         1000         1000 4096 Jan  6 17:36 2012
drwxrwxrwx 14         1000         1000 4096 Jan  6 17:36 2013
drwxrwxrwx  8         1000         1000 4096 Jan  6 17:35 2014
drwxrwxrwx 10         1000         1000 4096 Jan  6 17:35 2015
drwxrwxrwx  9         1000         1000 4096 Sep  6  2016 2016
drwxrwxrwx  8 earendil    users        4096 Jan  6 17:37 2017
drwxrwxr-x  3 earendil    users        4096 Jan  6 17:37 2018
drwxrwxrwx  6 PhotoStation PhotoStation 4096 Jan  7 15:07 @eaDir
Now cding into the @eaDIr yields the following:

Code: Select all

admin@NAS:/volume1/photo/Earendil$ cd \@eaDir/
admin@NAS:/volume1/photo/Earendil/@eaDir$ ls -l
total 16
drwxrwxrwx 2 PhotoStation PhotoStation 4096 Jan  7 15:01 2000
drwxrwxrwx 2 PhotoStation PhotoStation 4096 Jan  7 15:07 2001
drwxrwxrwx 2 PhotoStation PhotoStation 4096 Jan  7 15:00 2015
drwxrwxrwx 2 PhotoStation PhotoStation 4096 Jan  7 11:26 2016
Cding into 2016 which has a cover photo set yields:

Code: Select all

admin@NAS:/volume1/photo/Earendil/@eaDir$ cd 2016
admin@NAS:/volume1/photo/Earendil/@eaDir/2016$ ls -l
total 4
-rwxrwxrwx 1 PhotoStation PhotoStation 82 Jan  7 11:26 SYNOPHOTO_ALBUM.cover
Content of that file is simle:

Code: Select all

admin@NAS:/volume1/photo/Earendil/@eaDir/2016$ cat SYNOPHOTO_ALBUM.cover 
09/2016-09-24 Some Title/2016-09-24 15.48.36 083.jpg
So it is a simple text file containing the relative path to the cover photo without a trailing newline (so actually my prompt is printed right after the .jpg)

Hope this helps, otherwise you can try to post your contents, but I don't know if I'll be able to help.

harrazh
Beginner
Beginner
Posts: 24
Joined: Sun Oct 07, 2012 5:27 pm

Re: cannot set album cover

Unread post by harrazh » Wed Jan 10, 2018 7:57 pm

Thanks a lot Earendill for all information shared. I have followed the same, everything is identical except for the contents of the file.
It only contained the cover file name "2005.jpg" not sure why :S

Locked

Return to “Photo Station”