YunoHost-Apps / kanboard_ynh

Kanboard package for YunoHost
http://kanboard.net
GNU Affero General Public License v3.0
14 stars 16 forks source link

Checksum mismatch #184

Closed isAAAc closed 8 months ago

isAAAc commented 9 months ago

Describe the bug

upgrade is failing

Context

Steps to reproduce

Expected behavior

upgrading to 1.2.35~ynh2

Logs

https://paste.yunohost.org/raw/uneqitilet

ended_at: 2024-02-16 11:36:11.793654
env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_q2yk7900
  YNH_APP_CURRENT_VERSION: 1.2.34~ynh2
  YNH_APP_ID: kanboard
  YNH_APP_INSTANCE_NAME: kanboard
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 1.2.35~ynh2
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
error: "YunoHost was able to download the asset 'main' (https://github.com/kanboard/kanboard/archive/refs/tags/v1.2.35.tar.gz)\
  \ for kanboard, but the asset doesn't match the expected checksum. This could mean\
  \ that some temporary network failure happened on your server, OR the asset was\
  \ somehow changed by the upstream maintainer (or a malicious actor?) and YunoHost\
  \ packagers need to investigate and update the app manifest to reflect this change.\n\
  \    Expected sha256 checksum: 9b6118ba4e3b3dd17f5313a963be09b7f9c323ad0c78bde3d9a394c6afb30b7e\n\
  \    Downloaded sha256 checksum: 3c6a4175fe31c50aea68e5a252d9e3f36e98fc0948f93583dfbfacf570171c64\n\
  \    Downloaded file size: 3.3M"
interface: cli
operation: app_upgrade
parent: null
related_to:
- - app
  - kanboard
started_at: 2024-02-16 11:36:09.448644
success: false
yunohost_version: 11.2.10

============

2024-02-16 12:36:09,495: INFO - Updating sources...
2024-02-16 12:36:09,495: DEBUG - Prefetching asset main: https://github.com/kanboard/kanboard/archive/refs/tags/v1.2.35.tar.gz ...
2024-02-16 12:36:10,699: WARNING - Failed to update sources : YunoHost was able to download the asset 'main' (https://github.com/kanboard/kanboard/archive/refs/tags/v1.2.35.tar.gz) for kanboard, but the asset doesn't match the expected checksum. This could mean that some temporary network failure happened on your server, OR the asset was somehow changed by the upstream maintainer (or a malicious actor?) and YunoHost packagers need to investigate and update the app manifest to reflect this change.
    Expected sha256 checksum: 9b6118ba4e3b3dd17f5313a963be09b7f9c323ad0c78bde3d9a394c6afb30b7e
    Downloaded sha256 checksum: 3c6a4175fe31c50aea68e5a252d9e3f36e98fc0948f93583dfbfacf570171c64
    Downloaded file size: 3.3M
2024-02-16 12:36:10,700: INFO - Reverting sources...
2024-02-16 12:36:10,701: DEBUG - Prefetching asset main: https://github.com/kanboard/kanboard/archive/refs/tags/v1.2.34.tar.gz ...
2024-02-16 12:36:11,792: ERROR - Provisioning, deprovisioning, or updating resources for kanboard failed: YunoHost was able to download the asset 'main' (https://github.com/kanboard/kanboard/archive/refs/tags/v1.2.35.tar.gz) for kanboard, but the asset doesn't match the expected checksum. This could mean that some temporary network failure happened on your server, OR the asset was somehow changed by the upstream maintainer (or a malicious actor?) and YunoHost packagers need to investigate and update the app manifest to reflect this change.
    Expected sha256 checksum: 9b6118ba4e3b3dd17f5313a963be09b7f9c323ad0c78bde3d9a394c6afb30b7e
    Downloaded sha256 checksum: 3c6a4175fe31c50aea68e5a252d9e3f36e98fc0948f93583dfbfacf570171c64
    Downloaded file size: 3.3M
ballinger commented 9 months ago

similar issue i guess.. log

isAAAc commented 9 months ago

i confirm , no change here neither: https://paste.yunohost.org/raw/cahicilehu

isAAAc commented 9 months ago

@OniriCorpe @ericgaspar : is your PR mainstream ? because the issue is still present, and the upgrade announce still 1.2.35~ynh2 not 3

:thinking:

OniriCorpe commented 9 months ago

Yes it is, can you try again and check if the upgrade is the ynh3? Sometimes it takes times before the latest version became available :/

isAAAc commented 9 months ago

it isn't :/

root@krashboyz:~# yunohost tools update 
Info: Fetching available upgrades for system packages...
Info: Updating application catalog...
Success! The application catalog has been updated!
apps: 
  0: 
    current_version: 1.2.34~ynh2
    description: Kanban project management software
    domain_path: krashboyz.org/kanboard
    id: kanboard
    logo: 0f95a5e7dc906521f6ab33214bd51a53229601fa478938bc87182287f5c60f2d
    name: Kanboard
    new_version: 1.2.35~ynh2
    notifications: 
    upgradable: yes
    version: 1.2.34~ynh2

edit: it still can't update the good deb because the asset doesn't match the expected checksum

OniriCorpe commented 9 months ago

Uh, that’s really weird… am sorry i don’t know :/

isAAAc commented 9 months ago

upgrade to testing works ... : # yunohost app upgrade kanboard -u https://github.com/YunoHost-Apps/kanboard_ynh/tree/testing

root@krashboyz:~# yunohost app info kanboard 
description: Kanban project management software
domain_path: krashboyz.org/kanboard
name: Kanboard
version: 1.2.35~ynh3

there is a hole in the upstream process ;)

case closed on my side , and thx for your help @OniriCorpe :heart_decoration: