YunoHost-Apps / peertube_ynh

Federated (ActivityPub) video streaming platform using P2P for YunoHost
https://joinpeertube.org/fr/
GNU Affero General Public License v3.0
88 stars 28 forks source link

Upgrading peertube from 5.2.1~ynh1 to 6.0.3~ynh1 failed #427

Open g1smo opened 9 months ago

g1smo commented 9 months ago

Upgrading via the web interface on yunohost version 11.2.10 failed, the full log is: https://paste.yunohost.org/raw/punecesewe

Tried both web UI and CLI.

Yunohost is running on a debian 11 container.

What might be problematic is that nodejs 18 is installed (because we need it in some other projects hosted on the server)?

The following warning stands out: 2024-02-13 03:28:18,432: WARNING - ./upgrade: line 16: admin: unbound variable

frju365 commented 9 months ago

I've the same problem on Yunohost Cinema.

AkselRocks commented 8 months ago

Same problem here.

YunoHost 11.2.10.3 (stable)

fflorent commented 8 months ago

Please, search in existing issues, you will find that it's an issue already reported and a solution is provided here: https://github.com/YunoHost-Apps/peertube_ynh/issues/416#issuecomment-1892093321

g1smo commented 8 months ago

I see, somehow I missed that issue. The fix worked for me. Though I do suggest keeping an issue that users are likely to still encounter, open, for visibility. Until a fix is deployed, either in the upgrade script or documentation.

POST_INSTALL.md documentation states that the admin username is "root", whereas the upgrade script expects an "admin" user?

I guess the workaround could be posted under known (upgrade) issues in doc/PRE_UPGRADE.md or the missing admin user could be added in the upgrade script?

The latter solution would bring a better user experience, I can develop and test if it's sensible.