Closed flomine closed 2 years ago
Cannot update from 1.7.26.1~ynh1 to 1.7.30~ynh1
sudo yunohost tools update Info: Fetching available upgrades for system packages... Info: Updating application catalog... Success! The application catalog has been updated! apps: current_version: 1.7.26.1~ynh1 id: grav label: mysite new_version: 1.7.30~ynh1 system:
sudo yunohost app upgrade grav Info: Now upgrading grav... Info: [....................] > Loading installation settings... Info: [+...................] > Ensuring downward compatibility... Info: [#++++...............] > Backing up the app before upgrading (may take a while)... Info: [#####++.............] > Upgrading source files... Warning: Corrupt source Warning: [Error] Upgrade failed. Warning: E: Unable to locate package grav-ynh-deps Warning: The app was restored to the way it was before the failed upgrade. Error: Could not upgrade grav: An error occurred inside the app upgrade script Info: The operation 'Upgrade the 'grav' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20220211-212839-app_upgrade-grav' to get help Warning: Here's an extract of the logs before the crash. It might help debugging the error: Info: DEBUG - + src_sumprg=sha256sum Info: DEBUG - + src_in_subdir=true Info: DEBUG - + src_format=zip Info: DEBUG - ++ echo zip Info: DEBUG - ++ tr '[:upper:]' '[:lower:]' Info: DEBUG - + src_format=zip Info: DEBUG - + src_extract=true Info: DEBUG - + '[' '' = '' ']' Info: DEBUG - + src_filename=app-upgrade.zip Info: DEBUG - + local local_src=/opt/yunohost-apps-src/grav/app-upgrade.zip Info: DEBUG - + mkdir -p /var/cache/yunohost/download/grav/ Info: DEBUG - + src_filename=/var/cache/yunohost/download/grav/app-upgrade.zip Info: DEBUG - + test -e /opt/yunohost-apps-src/grav/app-upgrade.zip Info: DEBUG - + '[' -n https://github.com/getgrav/grav/releases/download/1.7.30/grav-update-v1.7.30.zip ']' Info: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/grav/app-upgrade.zip https://github.com/getgrav/grav/releases/download/1.7.30/grav-update-v1.7.30.zip Info: DEBUG - + out='Read error (Success.) in headers. Info: DEBUG - 2022-02-11 22:30:50 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/22553797/0835a4c1-dc9b-44eb-8ab9-19e264b5a126?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220211%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220211T213048Z&X-Amz-Expires=300&X-Amz-Signature=9db03294a7557ca3878f5193bc9b76899dc373ef3ce73da53f1920f372a21576&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=22553797&response-content-disposition=attachment%3B%20filename%3Dgrav-update-v1.7.30.zip&response-content-type=application%2Foctet-stream [9108997/9108997] -> "/var/cache/yunohost/download/grav/app-upgrade.zip" [2]' Info: DEBUG - + sha256sum --check --status Info: DEBUG - + ynh_die '--message=Corrupt source' Info: DEBUG - + ynh_exit_properly Error: Could not upgrade grav: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`. Error: None
sudo apt install --fix-broken or sudo dpkg --configure -a do not solve it. In fact they do nothing.
be able to update grav.
Even if yunohost says that version of package is still 1.7.26, I have noticed (but don't know if it is related) that
''' sudo -u grav bin/gpm version You are running Grav v1.7.30 ''' yunohost log share 20220211-212839-app_upgrade-grav
exactly same issue for me
It should be fixed now, thanks to @rodinux's PR #102 .
Describe the bug
Cannot update from 1.7.26.1~ynh1 to 1.7.30~ynh1
Context
Steps to reproduce
sudo apt install --fix-broken or sudo dpkg --configure -a do not solve it. In fact they do nothing.
Expected behavior
be able to update grav.
Logs
Even if yunohost says that version of package is still 1.7.26, I have noticed (but don't know if it is related) that
''' sudo -u grav bin/gpm version You are running Grav v1.7.30 ''' yunohost log share 20220211-212839-app_upgrade-grav