Announcement

#1 2013-06-29 03:01:58

Carlton
Guest

"Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

I have been trying to update from the hosting matters control panel. After hitting the update button, I am prompted that the software package cannot be found. Anyone has any idea what is wrong? Thanks.

 

#2 2013-06-29 11:52:00

flop25
Piwigo Team
2006-07-06
7037

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

Hello
You're talking about Softaculous? I don't know what's it's problem, but you can upgrade manually or automatically inside piwigo
What's your piwigo version?


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 2013-07-07 01:11:45

Carlton
Guest

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

Yes I am talking Softaculous.

My current version is 2.5.0.

Piwigo does not let me update inside the admin.php page. It says "An error has occured during extract. Please check file permissions of your piwigo installation."

Trying to update inside cPanel of Hosting Matters through Softaculous, I get the message "The upgrade package could not be found".

Here is the error log from the admin.php page:

obsolete.list: write_error
upgrade.php: write_protected
picture.php: write_protected
i.php: write_protected
tools/ws.htm: write_protected
plugins/LocalFilesEditor/main.inc.php: write_protected
plugins/LocalFilesEditor/language/it_IT/plugin.lang.php: write_protected
plugins/LocalFilesEditor/language/sl_SI/: path_creation_fail
plugins/LocalFilesEditor/language/sl_SI/plugin.lang.php: path_creation_fail
plugins/LocalFilesEditor/language/sl_SI/description.txt: path_creation_fail
plugins/LocalFilesEditor/language/zh_HK/: path_creation_fail
plugins/LocalFilesEditor/language/zh_HK/plugin.lang.php: path_creation_fail
plugins/LocalFilesEditor/language/zh_HK/description.txt: path_creation_fail
plugins/LocalFilesEditor/language/tr_TR/plugin.lang.php: write_protected
plugins/LocalFilesEditor/language/ru_RU/plugin.lang.php: write_protected
plugins/LocalFilesEditor/language/nn_NO/: path_creation_fail
plugins/LocalFilesEditor/language/nn_NO/plugin.lang.php: path_creation_fail
plugins/LocalFilesEditor/language/nn_NO/description.txt: path_creation_fail
plugins/language_switch/main.inc.php: write_protected
plugins/language_switch/flags.tpl: write_protected
plugins/language_switch/language_switch.inc.php: write_protected
plugins/language_switch/language_switch.css: write_protected
plugins/language_switch/flag_sprite.jpg: write_protected
plugins/language_switch/flag_sprite_original.png: write_protected
plugins/language_switch/style.css: write_protected
plugins/language_switch/language/sl_SI/: path_creation_fail
plugins/language_switch/language/sl_SI/description.txt: path_creation_fail
plugins/language_switch/language/zh_HK/: path_creation_fail
plugins/language_switch/language/zh_HK/description.txt: path_creation_fail
plugins/language_switch/language/eo_EO/: path_creation_fail
plugins/language_switch/language/eo_EO/description.txt: path_creation_fail
plugins/language_switch/language/kn_IN/: path_creation_fail
plugins/language_switch/language/kn_IN/description.txt: path_creation_fail
plugins/language_switch/language/gl_ES/: path_creation_fail
plugins/language_switch/language/gl_ES/description.txt: path_creation_fail
plugins/language_switch/language/lt_LT/: path_creation_fail
plugins/language_switch/language/lt_LT/description.txt: path_creation_fail
plugins/language_switch/language/ru_RU/description.txt: write_protected
plugins/language_switch/language/nn_NO/: path_creation_fail
plugins/language_switch/language/nn_NO/description.txt: path_creation_fail
plugins/admin_multi_view/main.inc.php: write_protected
plugins/admin_multi_view/language/sl_SI/: path_creation_fail
plugins/admin_multi_view/language/sl_SI/description.txt: path_creation_fail
plugins/admin_multi_view/language/zh_HK/: path_creation_fail
plugins/admin_multi_view/language/zh_HK/description.txt: path_creation_fail
plugins/admin_multi_view/language/zh_HK/index.php: path_creation_fail
plugins/admin_multi_view/language/eo_EO/: path_creation_fail
plugins/admin_multi_view/language/eo_EO/description.txt: path_creation_fail
plugins/admin_multi_view/language/kn_IN/: path_creation_fail
plugins/admin_multi_view/language/kn_IN/description.txt: path_creation_fail
plugins/admin_multi_view/language/lt_LT/: path_creation_fail
plugins/admin_multi_view/language/lt_LT/description.txt: path_creation_fail
plugins/admin_multi_view/language/ru_RU/description.txt: write_protected
plugins/admin_multi_view/language/nn_NO/: path_creation_fail
plugins/admin_multi_view/language/nn_NO/description.txt: path_creation_fail
plugins/c13y_upgrade/main.inc.php: write_protected
plugins/c13y_upgrade/language/et_EE/: path_creation_fail
plugins/c13y_upgrade/language/et_EE/plugin.lang.php: path_creation_fail
plugins/c13y_upgrade/language/et_EE/description.txt: path_creation_fail
plugins/c13y_upgrade/language/sl_SI/: path_creation_fail
plugins/c13y_upgrade/language/sl_SI/plugin.lang.php: path_creation_fail
plugins/c13y_upgrade/language/sl_SI/description.txt: path_creation_fail
plugins/c13y_upgrade/language/nn_NO/: path_creation_fail
plugins/c13y_upgrade/language/nn_NO/plugin.lang.php: path_creation_fail
plugins/c13y_upgrade/language/nn_NO/description.txt: path_creation_fail
plugins/c13y_upgrade/language/th_TH/: path_creation_fail
plugins/c13y_upgrade/language/th_TH/plugin.lang.php: path_creation_fail
plugins/c13y_upgrade/language/th_TH/description.txt: path_creation_fail
admin/user_perm.php: write_protected
admin/site_manager.php: write_protected
admin/extend_for_templates.php: write_protected
admin/include/functions.php: write_protected
admin/include/themes.class.php: write_protected
admin/themes/clear/theme.css: write_protected
admin/themes/roma/theme.css: write_protected
admin/themes/default/template/batch_manager_global.tpl: write_protected
admin/themes/default/template/group_list.tpl: write_protected
admin/site_update.php: write_protected
install.php: write_protected
comments.php: write_protected
include/config_default.inc.php: write_protected
include/functions.inc.php: write_protected
include/section_init.inc.php: write_protected
include/functions_user.inc.php: write_protected
include/passwordhash.class.php: write_protected
include/common.inc.php: write_protected
include/constants.php: write_protected
include/functions_html.inc.php: write_protected
include/functions_metadata.inc.php: write_protected
include/ws_functions.inc.php: write_protected
include/dblayer/functions_mysqli.inc.php: write_protected
include/ws_core.inc.php: write_protected
themes/elegant/themeconf.inc.php: write_protected
themes/smartpocket/themeconf.inc.php: write_protected
themes/default/js/plugins/jquery.tokeninput.js: write_protected
language/es_ES/admin.lang.php: write_protected
language/es_ES/common.lang.php: write_protected
language/es_ES/help/photos_add_ftp.html: write_protected
language/es_ES/about.html: write_protected
language/vi_VN/admin.lang.php: write_protected
language/vi_VN/common.lang.php: write_protected
language/fi_FI/admin.lang.php: write_protected
language/fi_FI/common.lang.php: write_protected
language/sk_SK/common.lang.php: write_protected
language/sk_SK/help/cat_move.html: write_error
language/ja_JP/common.lang.php: write_protected
language/it_IT/upgrade.lang.php: write_protected
language/it_IT/admin.lang.php: write_protected
language/it_IT/common.lang.php: write_protected
language/it_IT/install.lang.php: write_protected
language/he_IL/upgrade.lang.php: write_protected
language/he_IL/admin.lang.php: write_protected
language/he_IL/common.lang.php: write_protected
language/sl_SI/upgrade.lang.php: write_error
language/sl_SI/admin.lang.php: write_protected
language/sl_SI/common.lang.php: write_protected
language/sl_SI/install.lang.php: write_error
language/zh_HK/upgrade.lang.php: write_error
language/zh_HK/common.lang.php: write_protected
language/zh_HK/install.lang.php: write_error
language/zh_HK/about.html: write_protected
language/is_IS/common.lang.php: write_protected
language/fr_FR/common.lang.php: write_protected
language/da_DK/admin.lang.php: write_protected
language/da_DK/common.lang.php: write_protected
language/da_DK/about.html: write_protected
language/nb_NO/admin.lang.php: write_protected
language/nb_NO/common.lang.php: write_protected
language/nb_NO/iso.txt: write_protected
language/sr_RS/admin.lang.php: write_protected
language/sr_RS/common.lang.php: write_protected
language/eo_EO/upgrade.lang.php: write_error
language/eo_EO/admin.lang.php: write_protected
language/eo_EO/common.lang.php: write_protected
language/eo_EO/install.lang.php: write_error
language/fa_IR/admin.lang.php: write_protected
language/fa_IR/common.lang.php: write_protected
language/zh_TW/admin.lang.php: write_protected
language/zh_TW/common.lang.php: write_protected
language/zh_TW/install.lang.php: write_protected
language/kn_IN/: path_creation_fail
language/kn_IN/kn_IN.jpg: path_creation_fail
language/kn_IN/upgrade.lang.php: path_creation_fail
language/kn_IN/common.lang.php: path_creation_fail
language/kn_IN/iso.txt: path_creation_fail
language/kn_IN/install.lang.php: path_creation_fail
language/kn_IN/about.html: path_creation_fail
language/pt_BR/help/help_misc.html: write_protected
language/pt_BR/about.html: write_protected
language/cs_CZ/admin.lang.php: write_protected
language/cs_CZ/common.lang.php: write_protected
language/gl_ES/upgrade.lang.php: write_protected
language/gl_ES/admin.lang.php: write_protected
language/gl_ES/common.lang.php: write_protected
language/gl_ES/help/configuration.html: write_error
language/gl_ES/help/extend_for_templates.html: write_error
language/lt_LT/upgrade.lang.php: write_error
language/lt_LT/admin.lang.php: write_error
language/lt_LT/common.lang.php: write_protected
language/lt_LT/install.lang.php: write_error
language/lt_LT/about.html: write_protected
language/tr_TR/admin.lang.php: write_protected
language/tr_TR/common.lang.php: write_protected
language/tr_TR/help/cat_modify.html: write_error
language/tr_TR/help/help_virtual_links.html: write_error
language/tr_TR/help/maintenance.html: write_error
language/tr_TR/help/extend_for_templates.html: write_error
language/tr_TR/help/permalinks.html: write_error
language/mn_MN/: path_creation_fail
language/mn_MN/admin.lang.php: path_creation_fail
language/mn_MN/common.lang.php: path_creation_fail
language/mn_MN/iso.txt: path_creation_fail
language/mn_MN/mn_MN.jpg: path_creation_fail
language/mn_MN/install.lang.php: path_creation_fail
language/mn_MN/about.html: path_creation_fail
language/bg_BG/common.lang.php: write_protected
language/bg_BG/help/cat_move.html: write_error
language/bg_BG/help/cat_modify.html: write_protected
language/bg_BG/help/cat_options.html: write_error
language/ru_RU/upgrade.lang.php: write_protected
language/ru_RU/admin.lang.php: write_protected
language/ru_RU/common.lang.php: write_protected
language/ru_RU/install.lang.php: write_protected
language/ru_RU/about.html: write_protected
language/nn_NO/: path_creation_fail
language/nn_NO/upgrade.lang.php: path_creation_fail
language/nn_NO/admin.lang.php: path_creation_fail
language/nn_NO/common.lang.php: path_creation_fail
language/nn_NO/nn_NO.jpg: path_creation_fail
language/nn_NO/iso.txt: path_creation_fail
language/nn_NO/help/: path_creation_fail
language/nn_NO/help/help_groups.html: path_creation_fail
language/nn_NO/help/search.html: path_creation_fail
language/nn_NO/help/synchronize.html: path_creation_fail
language/nn_NO/help/cat_move.html: path_creation_fail
language/nn_NO/help/user_list.html: path_creation_fail
language/nn_NO/help/cat_modify.html: path_creation_fail
language/nn_NO/help/help_virtual_links.html: path_creation_fail
language/nn_NO/help/help_misc.html: path_creation_fail
language/nn_NO/help/cat_perm.html: path_creation_fail
language/nn_NO/help/history.html: path_creation_fail
language/nn_NO/help/help_add_photos.html: path_creation_fail
language/nn_NO/help/photos_add_ftp.html: path_creation_fail
language/nn_NO/help/cat_options.html: path_creation_fail
language/nn_NO/help/notification_by_mail.html: path_creation_fail
language/nn_NO/help/permalinks.html: path_creation_fail
language/nn_NO/install.lang.php: path_creation_fail
language/nn_NO/about.html: path_creation_fail
language/th_TH/common.lang.php: write_protected
language/nl_NL/common.lang.php: write_protected
language/pt_PT/admin.lang.php: write_protected
language/pt_PT/common.lang.php: write_protected
language/en_UK/admin.lang.php: write_protected

 

#4 2013-07-07 12:25:25

flop25
Piwigo Team
2006-07-06
7037

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

Hi
You have a problem about file permission. Could be a wrong chmod or a wrong owner


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

 

#5 2014-02-12 09:05:50

piwiLaborer
Member
2013-07-30
33

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

flop25 wrote:

Hi
You have a problem about file permission. Could be a wrong chmod or a wrong owner

Yes, most likely...

Same issue here, cannot upgrade.

But to get this solved besides a global indication, what are the correct user/group for the different types in a good install?

css, dirs, html, jpg, php, php, png, tpl, txt


IFS=' ' read -r -a a <<< "css html jpg php php png tpl txt"
(for i in "${a[@]}" ; do find . -name "*.$i" -exec ls -l {} \; ; done;  find . -type d  -exec ls -l  {} \; | grep '^d') | awk '{ print $1, $3, $4 }' | sort -u 

This gives:

drwxrwxrwx user1 users
drwxrwxrwx www-data www-data
drwxr-xr-x user1 users
drwxr-xr-x www-data www-data
-r--r--r-- user1 users
-rw-r--r-- user1 users
-rw-r--r-- www-data www-data

could somebody please run those scripts on a "good" system and post - thanks

Offline

 

#6 2014-02-12 09:33:08

flop25
Piwigo Team
2006-07-06
7037

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

?
that's not related to Piwigo but to sys-admin basic tasks. Anyway... we recommend 755 fo folders and 644 for files and of course all owned by the apache user


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

 

#7 2014-02-14 07:09:37

piwiLaborer
Member
2013-07-30
33

Re: "Upgrade file not found" while trying to upgrade to 2.5.2 in cPanel

flop25 wrote:

?
that's not related to Piwigo but to sys-admin basic tasks. Anyway... we recommend 755 fo folders and 644 for files and of course all owned by the apache user

Well, comes up when upgrading from piwigo web-interface, it states clearly "Please check file permissions of your piwigo installation."

How else are you going to figure out what is going on with > 600 directories and > 8000 files, make a list and do it visually?

Anyway, here you go with my issue solved:


Piwigo version
Piwigo 2.5.2
Check for upgrade

Environment
Operating system: Linux 3.10-3-amd64 #1 SMP Debian 3.10.11-1 (2013-09-10) x86_64 GNU/Linux
PHP: 5.5.5-1 (Show info) [2014-02-13 22:46:02]
MySQL: 5.5.33-1 [2014-02-13 22:46:02]
Graphics Library: ImageMagick 6.7.7-10

Tools -> Updates, then Tab Piwigo Update

Update to Piwigo 2.5.3

An error has occured during extract. Please check file permissions of your piwigo installation.
Click here to show log error.


obsolete.list: write_error
upgrade.php: write_protected
profile.php: write_protected
picture.php: write_protected
i.php: write_protected
register.php: write_protected
tools/ws.htm: write_protected
plugins/LocalFilesEditor/main.inc.php: write_protected
plugins/LocalFilesEditor/language/it_IT/plugin.lang.php: write_protected
plugins/LocalFilesEditor/language/sl_SI/plugin.lang.php: write_protected
...

tons more

> we recommend 755 fo folders and 644 for files
> all owned by the apache user

- backed up the whole show before doing this:

.../htdocs/pics# find . -type d -exec chmod 755 {} \;
.../htdocs/pics# find . -type f -exec chmod 644 {} \;
.../htdocs/pics# find .  -exec chown www-data {} \;
.../htdocs/pics# find .  -exec chgrp www-data {} \;

rerun update as above:

Update Complete
2.5.3

Works fine, much less warnings when doing syncs.

Thanks, problem solved!

Offline

 

Board footer

Powered by FluxBB

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