Bonjour
j'ai essayé de faire une mise a jours vers 2.3.2
je rencontre le message d'erreur suivant : _data/update Pas d'accès en écriture
de mémoire je pensais que les répertoires devaient tous être en 755 et les fichiers en 644.
je n'ai pas encore vérifié tous les répertoires/fichiers (c'est le but de ma question) mais le répertoire _data est bien en 755, par contre le rep update n'existe pas.
existe t il un document de référence avec l’arborescence de piwigo et tous les droits rattachés à chaque répertoire / fichier ? ou est ce que je peux faire cela de façon brutal avec mon logiciel de FTP (attribuer 755 à chaque répertoire et 644 à chaque fichier)
merci par avance
G.
ps ; le message d'erreur complet
Piwigo encountered a non recoverable error /home/......./_data/update Pas d'accès en écriture #1 mkgetdir /home/....../admin/include/updates.class.php(391) #2 updates::upgrade_to /home/...../admin/updates_pwg.php(121) #3 include /home/..../admin/updates.php(42) #4 include /home/.../admin.php(247)
Dernière modification par Gossito (2011-12-21 08:31:41)
Hors ligne
Gossito a écrit:
de mémoire je pensais que les répertoires devaient tous être en 755 et les fichiers en 644.
Bonjour,
C'est effectivement le cas.
Mais il faut aussi savoir qu'il y aussi la notion de "Propriétaire" avec le stockage des fichiers sur un serveur web.
Vous pouvez consulter ce sujet similaire : [Forum, topic 21345] Echec de migration Piwigo 2.3.0 vers 2.3.1
Hors ligne
@Gotcha
merci pour ta réponse
j'ai bien regardé le post que tu as mis en lien
comme propriétaire j'ai 33 33 (pour les répertoires, que j'ai mis en 777 momentanement) et 100 100 pour les fichiers
quand j'essaye de relancer un update j'ai le meme probleme
une idée?
Hors ligne
A partir de là je ne suis plus compétent, désolé.
Hors ligne
Bonjour Gossito,
Je ne sais pas qui sont les utilisateurs 33 et 100.
Quel est très très très précisément le propriétaire de _data/update et les droits actuels dessus ?
Peux tu changer le propriétaire des fichiers de la galerie pour www-data ? (si c'est bien lui l'utilisateur Apache)
Hors ligne
On va dire que c'est effectivement Apache l'utilisateur 1000 (par défaut sur Linux, l'utilisateur Apache, c'est www-data, cela se vérifie dans le fichier /etc/apache2/apache2.conf : c'est le paramètre "User" (chez moi, c'est la variable APACHE_RUN_USER, configuré dans /etc/apache2/envvars)
Le répertoire _data/templates_c, il appartient également à 1000 ?
Hors ligne
Dans un Piwigo vierge, il n'y a pas de répertoire _data/templates_c, c'est Piwigo qui le créé, donc ça me donne envie de dire que l'utilisateur 33, c'est Apache (et ça me semble beaucoup plus logique, car souvent les règles d'administration système mettent les utilisateurs "physiques" avec un identifiants élevé, au-dessus de 1000 par exemple).
Le répertoire _data appartient donc à 1000, mais est-ce que "other" peut y écrire ?
Note : il n'y a eu, à ma connaissance, aucun changement sur le processus de mise à jour entre la 2.3.0 et la 2.3.1.
Hors ligne
ah... comme tu es sur un dédié, je pensais que tu faisais ce que tu voulais, notamment te connecter en SSH.
Alors avec FileZila, tu fais un clic droit sur le fichier, "Permissions" et tu me donnes la valeur numérique. Le "other", c'est le dernier des 3 chiffres :
4 = lecture seule
2 = écriture seule
1 = exécution seule
5 = lecture + exécution
6 = lecture + écriture
7 = lecture + écriture + exécution
Hors ligne
Pour moi la capture d'écran le dit clairement : seul le propriétaire a le droit d'écrire dans le répertoire _data. Or Apache n'est pas le propriétaire, donc erreur d'écriture. Passes le répertoire _data en 777 (coche les 9 cases au-dessus)
Hors ligne
ok
j'ai donc passé en 777 pour repertoire et sous rep/fichier
j'ai relancé l'update
j'ai une message d'erreur et le log est le suivant (fin du message)
que penses tu si je passais tous les repertoires/fichiers en 777, le temps de l'update et apres je retablissait les rep en 755 et fichiers en 644 ?
register.php: write_protected tools/triggers_list.php: write_error tools/tablesorter/: path_creation_fail tools/tablesorter/jquery.tablesorter.css: path_creation_fail tools/tablesorter/jquery.tablesorter.min.js: path_creation_fail tools/tablesorter/asc.gif: path_creation_fail tools/tablesorter/bg.gif: path_creation_fail tools/tablesorter/desc.gif: path_creation_fail tools/create_listing_file.php: write_protected tools/language/translation_validated.inc.php: write_protected plugins/LocalFilesEditor/main.inc.php: write_protected admin/site_reader_local.php: write_protected admin/rating_user.php: write_error admin/batch_manager_global.php: write_protected admin/rating.php: write_protected admin/tags.php: write_protected admin/cat_modify.php: write_protected admin/comments.php: write_protected admin/plugins_installed.php: write_protected admin/include/plugins.class.php: write_protected admin/include/image.class.php: write_protected admin/include/functions_upload.inc.php: write_protected admin/include/functions.php: write_protected admin/themes/clear/theme.css: write_protected admin/themes/roma/theme.css: write_protected admin/themes/default/theme.css: write_protected admin/themes/default/template/install.tpl: write_protected admin/themes/default/template/menubar.tpl: write_protected admin/themes/default/template/user_list.tpl: write_protected admin/themes/default/template/updates_ext.tpl: write_protected admin/themes/default/template/languages_new.tpl: write_protected admin/themes/default/template/intro.tpl: write_protected admin/themes/default/template/languages_installed.tpl: write_protected admin/themes/default/template/batch_manager_global.tpl: write_protected admin/themes/default/template/rating.tpl: write_protected admin/themes/default/template/footer.tpl: write_protected admin/themes/default/template/themes_installed.tpl: write_protected admin/themes/default/template/rating_user.tpl: write_error admin/themes/default/template/profile_content.tpl: write_protected admin/batch_manager.php: write_protected tags.php: write_protected index.php: write_protected comments.php: write_protected ws.php: write_protected include/category_cats.inc.php: write_protected include/functions.inc.php: write_protected include/calendar_base.class.php: write_protected include/functions_comment.inc.php: write_protected include/functions_tag.inc.php: write_protected include/template.class.php: write_protected include/functions_user.inc.php: write_protected include/functions_rate.inc.php: write_protected include/common.inc.php: write_protected include/constants.php: write_protected include/functions_html.inc.php: write_protected include/ws_functions.inc.php: write_protected include/category_default.inc.php: write_protected include/dblayer/functions_mysql.inc.php: write_protected themes/default/js/datepicker.js: write_protected themes/default/js/jquery.min.js: write_protected themes/default/js/ui/minified/jquery.ui.selectable.min.js: write_protected themes/default/js/ui/minified/jquery.effects.core.min.js: write_protected themes/default/js/ui/minified/jquery.ui.draggable.min.js: write_protected themes/default/js/ui/minified/jquery.effects.transfer.min.js: write_protected themes/default/js/ui/minified/jquery.ui.button.min.js: write_protected themes/default/js/ui/minified/jquery.effects.slide.min.js: write_protected themes/default/js/ui/minified/jquery.effects.pulsate.min.js: write_protected themes/default/js/ui/minified/jquery.ui.datepicker.min.js: write_protected themes/default/js/ui/minified/jquery.effects.fade.min.js: write_protected themes/default/js/ui/minified/jquery.ui.slider.min.js: write_protected themes/default/js/ui/minified/jquery.effects.clip.min.js: write_protected themes/default/js/ui/minified/jquery.ui.resizable.min.js: write_protected themes/default/js/ui/minified/jquery.effects.explode.min.js: write_protected themes/default/js/ui/minified/jquery.effects.scale.min.js: write_protected themes/default/js/ui/minified/jquery.ui.tabs.min.js: write_protected themes/default/js/ui/minified/jquery.ui.widget.min.js: write_protected themes/default/js/ui/minified/jquery.ui.autocomplete.min.js: write_protected themes/default/js/ui/minified/jquery.effects.shake.min.js: write_protected themes/default/js/ui/minified/jquery.ui.sortable.min.js: write_protected themes/default/js/ui/minified/jquery.ui.core.min.js: write_protected themes/default/js/ui/minified/jquery.effects.drop.min.js: write_protected themes/default/js/ui/minified/jquery.ui.mouse.min.js: write_protected themes/default/js/ui/minified/jquery.effects.bounce.min.js: write_protected themes/default/js/ui/minified/jquery.effects.fold.min.js: write_protected themes/default/js/ui/minified/jquery.effects.blind.min.js: write_protected themes/default/js/ui/minified/jquery.ui.position.min.js: write_protected themes/default/js/ui/minified/jquery.ui.dialog.min.js: write_protected themes/default/js/ui/minified/jquery.ui.accordion.min.js: write_protected themes/default/js/ui/minified/jquery.ui.droppable.min.js: write_protected themes/default/js/ui/minified/jquery.ui.progressbar.min.js: write_protected themes/default/js/ui/minified/jquery.effects.highlight.min.js: write_protected themes/default/js/ui/jquery.effects.bounce.js: write_protected themes/default/js/ui/jquery.ui.draggable.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-cs.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-th.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-ta.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-ar.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-ml.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-ro.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-af.js: write_protected themes/default/js/ui/i18n/jquery-ui-i18n.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-az.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-bg.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-bs.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-sr.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-hr.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-sq.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-zh-TW.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-nl.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-ja.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-he.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-fa.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-eo.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-fr-CH.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-sv.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-fo.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-de.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-sr-SR.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-fr.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-en-GB.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-eu.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-et.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-vi.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-da.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-el.js: write_protected themes/default/js/ui/i18n/jquery.ui.datepicker-sk.js: write_protected themes/default/js/ui/jquery.effects.blind.js: write_protected themes/default/js/ui/jquery.effects.pulsate.js: write_protected themes/default/js/ui/jquery.ui.core.js: write_protected themes/default/js/ui/jquery.effects.drop.js: write_protected themes/default/js/ui/jquery.ui.selectable.js: write_protected themes/default/js/ui/jquery.effects.explode.js: write_protected themes/default/js/ui/jquery.effects.shake.js: write_protected themes/default/js/ui/jquery.ui.dialog.js: write_protected themes/default/js/ui/jquery.ui.widget.js: write_protected themes/default/js/ui/jquery.ui.progressbar.js: write_protected themes/default/js/ui/jquery.ui.position.js: write_protected themes/default/js/ui/jquery.ui.sortable.js: write_protected themes/default/js/ui/jquery.effects.scale.js: write_protected themes/default/js/ui/jquery.ui.droppable.js: write_protected themes/default/js/ui/jquery.ui.resizable.js: write_protected themes/default/js/ui/jquery.effects.fade.js: write_protected themes/default/js/ui/jquery.ui.button.js: write_protected themes/default/js/ui/jquery.ui.mouse.js: write_protected themes/default/js/ui/jquery.effects.core.js: write_protected themes/default/js/ui/jquery.ui.autocomplete.js: write_protected themes/default/js/ui/jquery.ui.accordion.js: write_protected themes/default/js/ui/theme/jquery.ui.core.css: write_protected themes/default/js/ui/theme/jquery.ui.all.css: write_protected themes/default/js/ui/theme/jquery.ui.selectable.css: write_protected themes/default/js/ui/theme/jquery.ui.slider.css: write_protected themes/default/js/ui/theme/jquery.ui.progressbar.css: write_protected themes/default/js/ui/theme/jquery.ui.resizable.css: write_protected themes/default/js/ui/theme/jquery.ui.autocomplete.css: write_protected themes/default/js/ui/theme/jquery.ui.tabs.css: write_protected themes/default/js/ui/theme/jquery.ui.accordion.css: write_protected themes/default/js/ui/theme/jquery.ui.button.css: write_protected themes/default/js/ui/theme/jquery.ui.datepicker.css: write_protected themes/default/js/ui/theme/jquery.ui.theme.css: write_protected themes/default/js/ui/theme/jquery.ui.dialog.css: write_protected themes/default/js/ui/jquery.effects.slide.js: write_protected themes/default/js/ui/jquery.effects.transfer.js: write_protected themes/default/js/ui/jquery.effects.fold.js: write_protected themes/default/js/ui/jquery.ui.slider.js: write_protected themes/default/js/ui/jquery.effects.highlight.js: write_protected themes/default/js/ui/jquery.effects.clip.js: write_protected themes/default/js/ui/jquery.ui.datepicker.js: write_protected themes/default/js/ui/jquery.ui.tabs.js: write_protected themes/default/js/jquery.js: write_protected themes/default/theme.css: write_protected themes/default/fix-ie7.css: write_protected themes/default/template/register.tpl: write_protected themes/default/template/password.tpl: write_protected themes/default/template/comments.tpl: write_protected themes/default/template/picture.tpl: write_protected themes/default/template/comment_list.tpl: write_protected themes/default/template/identification.tpl: write_protected themes/default/template/profile_content.tpl: write_protected language/es_ES/admin.lang.php: write_protected language/km_KH/: path_creation_fail language/km_KH/km_KH.jpg: path_creation_fail language/km_KH/common.lang.php: path_creation_fail language/km_KH/iso.txt: path_creation_fail language/km_KH/index.php: path_creation_fail language/km_KH/about.html: path_creation_fail language/de_DE/admin.lang.php: write_protected language/de_DE/common.lang.php: write_protected language/de_DE/install.lang.php: write_protected language/fr_FR/admin.lang.php: write_protected language/ca_ES/admin.lang.php: write_protected language/fr_CA/admin.lang.php: write_protected language/zh_TW/admin.lang.php: write_protected language/zh_TW/install.lang.php: write_protected language/hu_HU/admin.lang.php: write_protected language/sv_SE/admin.lang.php: write_protected language/tr_TR/common.lang.php: write_protected language/bg_BG/common.lang.php: write_protected language/nl_NL/admin.lang.php: write_protected language/nl_NL/install.lang.php: write_protected language/pt_PT/common.lang.php: write_protected
Hors ligne