YunoHost-Apps / wallabag2_ynh

Wallabag v2 package for YunoHost
https://www.wallabag.org/
GNU Affero General Public License v3.0
62 stars 14 forks source link

[Pending, need testers] Update to 2.4.2 (Revert "Revert "Testing"") #106

Closed alexAubin closed 2 years ago

alexAubin commented 3 years ago

Revert-the-revert of https://github.com/YunoHost-Apps/wallabag2_ynh/pull/101

See this discussion : https://github.com/YunoHost-Apps/wallabag2_ynh/pull/101#issuecomment-855456648

lapineige commented 3 years ago

Marked as pending: we are waiting for feedback about https://github.com/wallabag/wallabag/issues/5233 (please deer Yunohost users, if you're ok to take the (limited, but make backups ;) risk, we need more testers :) before merging.

jakejoh commented 3 years ago

just updated using yunohost app upgrade wallabag2 -u https://github.com/YunoHost-Apps/wallabag2_ynh/tree/testing without any apparent problems.

lapineige commented 3 years ago

That's great news ! :)

kr-cr commented 3 years ago

Just did the same, but the upgrade failed with these warnings:

Warning: 12:14:58 ERROR     [console] Error thrown while running command "--no-interaction --env prod doctrine:migrations:migrate". Message: "An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, ADD hashed_given_url TINYTEXT DEFAULT NULL':
Warning: SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs" ["exception" => Doctrine\DBAL\Exception\DriverException { …},"command" => "--no-interaction --env prod doctrine:migrations:migrate","message" => """  An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, ADD hashed_given_url TINYTEXT DEFAULT NULL':\n  \n  SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs  """]
Warning: In AbstractMySQLDriver.php line 110:
Warning:   An exception occurred while executing 'ALTER TABLE entry ADD given_url LONGTEXT DEFAULT NULL, AD
Warning:   D hashed_given_url TINYTEXT DEFAULT NULL':
Warning:   SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size
Warning:    for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the
Warning:    manual. You have to change some columns to TEXT or BLOBs
Warning: In PDOConnection.php line 91:
Warning:   SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size
Warning:    for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the
Warning:    manual. You have to change some columns to TEXT or BLOBs
Warning: In PDOConnection.php line 86:
Warning:   SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size
Warning:    for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the
Warning:    manual. You have to change some columns to TEXT or BLOBs
Warning: doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--db DB] [--em EM] [--shard SHARD] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<version>]
Warning: [Error] Upgrade failed.

I just restored my 2.3.8 pre-upgrade backup.

lapineige commented 3 years ago

That's a new one, but a bit similar to the previous issue… I'm lost.

mikeorlov commented 3 years ago

I've successfully updated to 2.4.2 from 2.3.8 just now using "revert-105-revert-101-testing" branch.

lapineige commented 3 years ago

Uh, I'm lost… Since #109, should we merge to master or testing ? 😅

lapineige commented 3 years ago

Trying to merge into testing, as quite a lot of thing changed here… (not sure of what I am doing…)

lapineige commented 3 years ago

!testme

yunohost-bot commented 3 years ago

:sunflower: Test Badge

lapineige commented 3 years ago

We will need testers on this… :)

mikeorlov commented 3 years ago

We will need testers on this… :)

I've made an 'update' from 2.4.2 previously installed using "revert-105-revert-101-testing" branch to the 2.4.2 using "testing" branch. It went smoothly, no warnings or data losses. But when I make a clean installation using "testing" branch (sudo yunohost app install https://github.com/YunoHost-Apps/wallabag2_ynh/tree/testing --debug), it returns an error: "WARNING ERROR 1146 (42S02) at line 1: Table 'wallabag2.craue_config_setting' doesn't exist".

mikeorlov commented 3 years ago

The upgrade from 2.3.8 to 2.4.2 using "revert-105-revert-101-testing" also failed with the same error. Here is the full log: https://paste.yunohost.org/raw/ucequrosuy

edit (by @lapineige) : it did not https://github.com/YunoHost-Apps/wallabag2_ynh/issues/113#issuecomment-919413221, apparently upgrade went well.

update: @lapineige is right. I messed with the command, so the log is for "testing" branch. Upgrade from 2.3.8 (master) to 2.4.2 (revert-105-revert-101-testing) went well.

lapineige commented 3 years ago

I tried to upgrade from 2.3.8. I still have :

SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP FOREIGN KEY FK_368A4209A76ED395; check that it exists

mikeorlov commented 3 years ago

I tried to upgrade from 2.3.8. I still have :

SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP FOREIGN KEY FK_368A4209A76ED395; check that it exists

Did you try upgrading without any saved articles? I had maybe 10 of them and all went well. But you can try to export them in JSON, delete and import back after upgrade. I tried it when I checked different branches, import-export worked well for me in wallabag.

lapineige commented 3 years ago

Thanks for the tip :)

Yet I won't do it. I want to solve this for all users: the upgrade should be automatic, with no manual intervention. Here we clearly have an issue, it tries to drop a foreign key that doesn't exist…

mikeorlov commented 3 years ago

I found an old discussion about this foreign key here: https://github.com/wallabag/wallabag/issues/4826 The issue marked as closed, but I can't say if there is a working solution.

alexAubin commented 2 years ago

sooo uuuuh what's the status of this ? Shall we merge to testing and then to master ?

lapineige commented 2 years ago

Well, I still have the error when trying to upgrade (same for you @nicofrand ?), there is no update on the related Wallabag topic… So I would keep this on hold until someone is able to solves that issue… or a new version is released :sweat_smile:

yalh76 commented 2 years ago

rebuilding testing from scratch