YunoHost-Apps / listmonk_ynh

Listmonk package for YunoHost
https://listmonk.app/
GNU General Public License v3.0
4 stars 3 forks source link

Upgrade from version 3.0.0~ynh2 to version 4.1.0~ynh1 fails #54

Open CodeShakingSheep opened 1 week ago

CodeShakingSheep commented 1 week ago

Describe the bug

The upgrade fails and the old version is being restored.

Context

Steps to reproduce

Just hit the upgrade button in web admin.

Expected behavior

Listmonk should be upgraded successfully.

Logs

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

Crashone commented 1 week ago

Same error here. https://paste.yunohost.org/raw/aqasokacec

xplosionmind commented 1 week ago

Same here. Log: https://paste.yunohost.org/raw/eranegexig

ericgaspar commented 1 week ago

admin_username should be min 3 chars and admin_password should be min 8 chars in the TOML config

Looks like we can't leave it empty after all...

edit: can you try from testing?: sudo yunohost app upgrade listmonk -u https://github.com/YunoHost-Apps/listmonk_ynh/tree/testing

halfbyte commented 6 days ago

@ericgaspar Ran into the same issue this morning and tested your suggestion but it fails with the same-ish error message:

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

yusufipk commented 5 days ago

@halfbyte maybe you used a / on your password, that's what I did and when I checked the logs it gave me an error:

error loading config from file: (13, 19): invalid escape sequence: \(.

I used a password without special chars and it upgraded without a problem. Though after the upgrade there was a notice on the dashboard:

Remove the admin_username and admin_password fields from the TOML configuration file or environment variables. If you are using APIs, create and use new API credentials before removing the them. Visit Admin -> Settings -> Users dashboard. Learn more.

Learn more is here: https://listmonk.app/docs/upgrade/#upgrading-to-v4xx

I commented out admin_pasword and admin_user as it guided. Now it works.

xplosionmind commented 11 hours ago

Still failing when upgrading to 4.1.0~ynh2. Logs: https://paste.yunohost.org/raw/ugefecetup