YunoHost-Apps / gogs_ynh

Gogs package for YunoHost
http://gogs.io
GNU General Public License v3.0
18 stars 9 forks source link

Cannot upgrade to version 0.12.3~ynh1 #52

Closed SiM closed 2 years ago

SiM commented 2 years ago

Describe the bug

When upgrading gogs from 0.11.66~ynh2 to 0.12.3~ynh1, the upgrade fails at step Setting up source files

Context

Steps to reproduce

yunohost app upgrade gogs

Logs

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

The error seems to be here:

2021-12-20 12:37:52,725: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-12-20 12:37:52,726: DEBUG - + '[' -n '/custom/conf/app.ini /custom/conf/auth.d/ldap.conf' ']'
2021-12-20 12:37:52,726: DEBUG - + '[' -e '' ']'
2021-12-20 12:37:52,726: DEBUG - + mkdir --parents ''
2021-12-20 12:37:52,727: WARNING - mkdir: impossible de créer le répertoire «  »: Aucun fichier ou dossier de ce type
tuxmouraille commented 2 years ago

Hello, I have the same error.

Context

Steps to reproduce

yunohost app upgrade gogs

Logs https://paste.yunohost.org/raw/sisojadodu

bachy commented 2 years ago

+1

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

ericgaspar commented 2 years ago

Sorry for the inconvenience.

I didn't realize that Gogs were still in use after its development has migrated to Gitea. The app is labeled as non maintained for a little bit more the 3 years. gogs_ynh has been totally re-written without giving much thought to the legacy code. The script was old and almost everything has changed from path to variables naming and helpers to catch-up with new standards...

You can try to upgrade Gogs to the newer version with this branch sudo yunohost app upgrade gogs -u https://github.com/YunoHost-Apps/gogs_ynh/tree/0.11.79-0.12.3

tuxmouraille commented 2 years ago

Hello,

Thanks @ericgaspar .