Announcement

#1 2016-04-18 00:24:09

krzysiek
Guest

ln -s not work in galleries

Hi,


I'd like use FTP+Synch for upload many photos.  But I have already my my pictures on board so I want (in my debian) use simply symbolic link to galleries folder.

But after synch nothing :(

This is bug - kindly please fix or provide workaround.   

PS. Hard link I can't because I have two HDD (system+data), and www is on system and pictures on data.

Piwigo version: 2.8
BR, Krzysiek

 

#2 2016-04-18 00:58:33

flop25
Piwigo Team
2006-07-06
7037

Re: ln -s not work in galleries

symbolic links works and already used by many users


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2016-04-18 09:42:56

deheme
Member
France
2014-12-12
104

Re: ln -s not work in galleries

Hello Krysiec,

Be carefull, to synchronize a directory which is not "./galleries, do not use the command tools/synchronize ;)
Use tools/site manager.

http://piwigo.org/forum/showimage.php?pid=162933&filename=Capture.JPG

The directory (even thru symlink) shall first be declared with "create a new site".

Enjoy!
DéHème

Last edited by deheme (2016-04-18 09:45:07)

Offline

 

#4 2016-04-18 12:00:58

krzysiek
Guest

Re: ln -s not work in galleries

Hi deheme

To be sure could you kinply please provide simple instruction setp-by-step?

When I create new dir in galleries and insert some files and next synch ten work fine.
But if I create symbolic link to some direcotry with pictures then not work (piwigo do not see the directory and files iside)

BR, Krzysiek

 

#5 2016-04-18 13:15:23

flop25
Piwigo Team
2006-07-06
7037

Re: ln -s not work in galleries

Are you sure the permissions are the right ones?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2016-04-18 13:48:09

deheme
Member
France
2014-12-12
104

Re: ln -s not work in galleries

Hi,
In my Piwigo, I have the symlink outside galleries, but at the same level.
Then I declare ./p/ as a "new site", p being the symbolic link to my directory where my pics are located.
Then I synchronize the directories only
Then I synchronize the files.


Enjoy!
DéHème

Last edited by deheme (2016-04-18 13:49:12)

Offline

 

#7 2016-04-18 13:50:45

jnashpiwigo
Piwigo Team
2014-10-21
254

Re: ln -s not work in galleries

I just tested within my galleries dir, and have no problems syncing with the symlinked directory.  I'd say, check the permissions on the linked directory, and the files within too.

Offline

 

#8 2016-04-18 22:38:06

krzysiek
Guest

Re: ln -s not work in galleries

Hi,

Yes, this is permissions issue, but do not know how to resolve issue :/

My data HDD is mouted with ACL (on HDD without ACL I can add access and Piwigo work fine).


As I see user used by Piwigo that try read my pictures is www-data or root because that user run PHP and WWW services:

Code:

# ps aux |grep [w]ww
www-data 17192  0.0  0.1  12876  3716 ?        S    11:17   0:14 nginx: worker process
www-data 17213  0.0  0.3  60052 11932 ?        S    11:17   0:00 php-fpm: pool www
www-data 17214  0.0  0.3  60052 11932 ?        S    11:17   0:00 php-fpm: pool www

# ps aux |grep [n]ginx
www-data 17192  0.0  0.1  12876  3716 ?        S    11:17   0:14 nginx: worker process
root     23108  0.0  0.0  12292  3084 ?        Ss   00:04   0:00 nginx: master process /usr/sbin/nginx

I want linker HTC directory, in theory www-data user have read and execute access to directory. Files inside have the same access:

Code:

# getfacl HTC/
# file: HTC/
# owner: root
# group: users
user::rwx
user:www-data:r-x
user:krzysiek:r-x
user:dorotka:r-x
group::r-x
group:www-data:r-x
mask::r-x
other::r-x
default:user::rwx
default:user:www-data:r-x
default:user:krzysiek:r-x
default:user:dorotka:r-x
default:group::r-x
default:group:www-data:r-x
default:mask::r-x
default:other::r-x

Also I give access for other to read and execute and still nothing:

Code:

# ls -l|grep HTC
drwxr-xr-x+  2 root users 73728 paź 22  2014 HTC

Link in galleries dir seems is OK:

Code:

# ls -l|grep HTC
lrwxrwxrwx 1 root           root             71 kwi 18 21:13 HTC -> /media/6acff0b7-3a30-4c39-839a-76abecf91c04/backup/pictures/HTC

When I make mistake?

 

#9 2016-04-19 00:51:17

krzysiek
Guest

Re: ln -s not work in galleries

Solved but still something is wrong.

Simple

chmod -r o+x 

on dir with pictures. 

Add to other execute dir solved issue but owner (root) and group (users that have www-data user inside and root) have "x" on dir and not work without add other "x".
Searching why keep going....

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact