YunoHost-Apps / piwigo_ynh

Piwigo package for YunoHost

Home Page:http://piwigo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update issue

LeOSW42 opened this issue · comments

commented

Hello all,

I just updated my YNH instance with success except for piwigo, cause I had to manually edit the /etc/php/7.3/fpm/pool.d/piwigo.conf file to use the new php-fpm version in the listen parameter.

Then, once working, I started an upgrade of the app with sudo yunohost app upgrade piwigo -u https://github.com/YunoHost-Apps/piwigo_ynh and I have an error that I cannot fix on my own:

Info: Now upgrading piwigo...
Info: [....................] > Loading installation settings...
Info: [+...................] > Ensuring downward compatibility...
Info: [#+++................] > Backing up Piwigo before upgrading (may take a while)...
Info: [####+...............] > Upgrading source files...
Info: [#####+..............] > Upgrading NGINX web server configuration...
Info: [######+++...........] > Upgrading dependencies...
Info: [#########...........] > Making sure dedicated system user exists...
Info: [#########++.........] > Upgrading PHP-FPM configuration...
Info: [###########++.......] > Upgrading Piwigo with cURL...
Info: [#############+......] > Configuring Piwigo...
Info: [##############......] > Configuring LDAP plugin...
Warning: parse error: Invalid numeric literal at line 1, column 10
Warning: [Error] Upgrade failed.
Warning: The app was restored to the way it was before the failed upgrade.
Error: Could not upgrade piwigo: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'piwigo' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210314-163604-app_upgrade-piwigo --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - 5194 + echo '[###############++...] > Backing up data directory...'
Info: DEBUG - 5194 + ynh_backup --src_path=/home/yunohost.app/piwigo/upload --is_big
Info: DEBUG - 5298 + dest_path=
Info: DEBUG - 5298 [###############++...] > Backing up data directory...
Info: DEBUG - 5298 + is_big=1
Info: DEBUG - 5298 + not_mandatory=0
Info: DEBUG - 5298 + BACKUP_CORE_ONLY=1
Info: DEBUG - 5299 + test -n piwigo
Info: DEBUG - 5299 ++ ynh_app_setting_get --app=piwigo --key=do_not_backup_data
Info: DEBUG - 5300 ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
Info: DEBUG - 5300 ++ ynh_app_setting get piwigo do_not_backup_data
Info: DEBUG - 5501 + do_not_backup_data=
Info: DEBUG - 5501 + '[' 1 -eq 1 ']'
Info: DEBUG - 5501 + '[' 0 -eq 1 ']'
Info: DEBUG - 5501 + '[' 1 -eq 1 ']'
Info: DEBUG - 5502 + '[' 1 -eq 1 ']'
Info: DEBUG - 5502 + ynh_print_info '--message=/home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
Info: DEBUG - 5503 + echo '/home/yunohost.app/piwigo/upload will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
Info: DEBUG - 5503 + return 0
Info: DEBUG - 5605 + echo '[####################] > Backup script completed for piwigo. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 5605 + ynh_exit_properly
Error: The operation 'Upgrade the 'piwigo' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210314-163604-app_upgrade-piwigo --share' to get help

Here are some details:

$ sudo yunohost log display 20210314-163604-app_upgrade-piwigo
description: Upgrade the 'piwigo' app
log_path: /var/log/yunohost/categories/operation/20210314-163604-app_upgrade-piwigo.log
logs: 
  - 2021-03-14 16:37:46,890: DEBUG - 43605 + local action
  - 2021-03-14 16:37:46,890: DEBUG - 43605 + local line_match
  - 2021-03-14 16:37:46,890: DEBUG - 43606 + local length
  - 2021-03-14 16:37:46,890: DEBUG - 43606 + local log_path
  - 2021-03-14 16:37:46,891: DEBUG - 43606 + local timeout
  - 2021-03-14 16:37:46,891: DEBUG - 43607 + ynh_handle_getopts_args --service_name=nginx --action=reload
  - 2021-03-14 16:37:46,891: DEBUG - 43607 + set +o xtrace
  - 2021-03-14 16:37:47,092: DEBUG - 43808 + service_name=nginx
  - 2021-03-14 16:37:47,092: DEBUG - 43809 + action=reload
  - 2021-03-14 16:37:47,093: DEBUG - 43809 + line_match=
  - 2021-03-14 16:37:47,093: DEBUG - 43810 + length=20
  - 2021-03-14 16:37:47,093: DEBUG - 43810 + log_path=/var/log/nginx/nginx.log
  - 2021-03-14 16:37:47,093: DEBUG - 43811 + timeout=300
  - 2021-03-14 16:37:47,093: DEBUG - 43811 + [[ -n '' ]]
  - 2021-03-14 16:37:47,094: DEBUG - 43811 + '[' reload == reload ']'
  - 2021-03-14 16:37:47,094: DEBUG - 43812 + action=reload-or-restart
  - 2021-03-14 16:37:47,094: DEBUG - 43812 + systemctl reload-or-restart nginx
  - 2021-03-14 16:37:47,195: DEBUG - 43913 + [[ -n '' ]]
  - 2021-03-14 16:37:47,195: DEBUG - 43913 + ynh_script_progression '--message=Restoration completed for piwigo' --last
  - 2021-03-14 16:37:47,196: DEBUG - 43914 + set +o xtrace
  - 2021-03-14 16:37:47,297: DEBUG - 44015 + set +o xtrace
  - 2021-03-14 16:37:47,298: DEBUG - 44015 + echo '! Helper used in legacy mode !'
  - 2021-03-14 16:37:47,298: DEBUG - 44015 + set +x
  - 2021-03-14 16:37:47,298: DEBUG - 44016 + echo '[####################] > Restoration completed for piwigo'
  - 2021-03-14 16:37:47,299: DEBUG - 44016 + set -o xtrace
  - 2021-03-14 16:37:47,299: DEBUG - 44016 + ynh_exit_properly
  - 2021-03-14 16:37:47,299: DEBUG - 44016 + local exit_code=0
  - 2021-03-14 16:37:47,300: DEBUG - 44016 + '[' 0 -eq 0 ']'
  - 2021-03-14 16:37:47,300: DEBUG - 44017 + exit 0
  - 2021-03-14 16:37:47,401: DEBUG - 44092 To view the log of the operation 'Restore 'piwigo' from a backup archive', use the command 'yunohost log display 20210314-163707-backup_restore_app-piwigo'
  - 2021-03-14 16:37:47,702: DEBUG - 44437 The permission database has been resynchronized
  - 2021-03-14 16:37:48,105: DEBUG - 44802 SSOwat configuration regenerated
  - 2021-03-14 16:37:48,105: DEBUG - 44843 Restoration completed
  - 2021-03-14 16:37:48,105: DEBUG - 44843 action [9822.1] executed in 44.612s
  - 2021-03-14 16:37:48,105: DEBUG - apps:
  - 2021-03-14 16:37:48,106: DEBUG -   piwigo: Success
  - 2021-03-14 16:37:48,106: DEBUG - system:
  - 2021-03-14 16:37:48,209: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
  - 2021-03-14 16:37:48,210: WARNING - The app was restored to the way it was before the failed upgrade.
  - 2021-03-14 16:37:48,210: DEBUG - + local legacy_args=mc
  - 2021-03-14 16:37:48,210: DEBUG - + args_array=([m]=message= [c]=ret_code=)
  - 2021-03-14 16:37:48,210: DEBUG - + local -A args_array
  - 2021-03-14 16:37:48,211: DEBUG - + local message
  - 2021-03-14 16:37:48,211: DEBUG - + local ret_code
  - 2021-03-14 16:37:48,211: DEBUG - + ynh_handle_getopts_args '--message=The app was restored to the way it was before the failed upgrade.'
  - 2021-03-14 16:37:48,211: DEBUG - + set +o xtrace
  - 2021-03-14 16:37:48,212: DEBUG - + ret_code=1
  - 2021-03-14 16:37:48,212: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
  - 2021-03-14 16:37:48,212: DEBUG - + exit 1
  - 2021-03-14 16:37:48,352: ERROR - Could not upgrade piwigo: An error occurred inside the app upgrade script
metadata: 
  ended_at: 2021-03-14 16:37:48
  env: 
    YNH_APP_CURRENT_VERSION: 2.10.2~ynh1
    YNH_APP_ID: piwigo
    YNH_APP_INSTANCE_NAME: piwigo
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_APP_MANIFEST_VERSION: 11.3.0~ynh2
    YNH_APP_UPGRADE_TYPE: UPGRADE_FULL
    YNH_CWD: /var/cache/yunohost/from_file/scripts
    YNH_INTERFACE: cli
    YNH_STDINFO: /tmp/tmp5GKZt0/stdinfo
    YNH_STDRETURN: /tmp/tmpm3ZaMz/stdreturn
  error: An error occurred inside the app upgrade script
  interface: cli
  operation: app_upgrade
  parent: None
  related_to: 
    - app
    - piwigo
  started_at: 2021-03-14 16:36:04
  success: False
  yunohost_version: 4.1.7.4
metadata_path: /var/log/yunohost/categories/operation/20210314-163604-app_upgrade-piwigo.yml
name: 20210314-163604-app_upgrade-piwigo

Léo

commented

I finally found a way: after a security backup, I upgraded piwigo using the web admin, and then upgraded the app.
It works fine, just enable the LDAP Login plugin after upgrade.