Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to version from 5.2.0~ynh1 to 5.2.1~ynh1 failed. #390

Open
sekretaerbaer opened this issue Sep 18, 2023 · 12 comments
Open

upgrade to version from 5.2.0~ynh1 to 5.2.1~ynh1 failed. #390

sekretaerbaer opened this issue Sep 18, 2023 · 12 comments

Comments

@sekretaerbaer
Copy link

sekretaerbaer commented Sep 18, 2023

upgrade to version from 5.2.0 ynh1 to 5.2.1 ynh1 failed.

ERROR - peertube could not be upgraded: An error occurred in the app upgrade script.

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

@MyNameIsTroll
Copy link

Unfortunately, the update didn't work either.
I put the logs here: Logs

@isAAAc
Copy link
Contributor

isAAAc commented Sep 19, 2023

same here,
here are the logs

@TILvids
Copy link

TILvids commented Sep 19, 2023

Same. Upgrade from 5.2.0 to 5.2.1 failed. Logs.

@sekretaerbaer
Copy link
Author

I do not know why, but now the upgrade went through without an error

@isAAAc
Copy link
Contributor

isAAAc commented Sep 28, 2023

still alive here :/

@MyNameIsTroll
Copy link

Still no solution T__T
Is there any way to cancel d'update? A downgrade command?
Backup restore doesn't work for me.

@chefblogger
Copy link

that happend to me too a couple of weeks ago - i use a raspberry pi 4 for yunohost and peertube, pixelfed etc
my solution was to force the upgrade and that worked well for me

yunohost app upgrade peertube --force

but use it whisly :) and not without a backup :P

perhaps it works for you to

@MyNameIsTroll
Copy link

thnaks @chefblogger , i will try :D

@Chocobozzz
Copy link

Hi,

I think the PeerTube plugins should be installed using https://docs.joinpeertube.org/maintain/tools#peertube-cli-plugins instead of https://docs.joinpeertube.org/maintain/tools#install-or-uninstall-plugins.

https://docs.joinpeertube.org/maintain/tools#peertube-cli-plugins just uses PeerTube REST API to install the plugin, so it's the safest way to install them once PeerTube is running (which is the case with https://github.com/YunoHost-Apps/peertube_ynh/blob/master/scripts/install#L201, but you'll have to wait PeerTube is ready (test HTTP ping endpoint for example)).

I think the current issue is that PeerTube initializes its database and creates PostgreSQL functions while https://docs.joinpeertube.org/maintain/tools#install-or-uninstall-plugins does the same thing at the same time, leading to a concurrency issue.

@tomtoom1978
Copy link

that happend to me too a couple of weeks ago - i use a raspberry pi 4 for yunohost and peertube, pixelfed etc my solution was to force the upgrade and that worked well for me

yunohost app upgrade peertube --force

but use it whisly :) and not without a backup :P

perhaps it works for you to

it crash my installation !
See the yunohost log here:
https://paste.yunohost.org/raw/analufixem

@chefblogger
Copy link

that happend to me too a couple of weeks ago - i use a raspberry pi 4 for yunohost and peertube, pixelfed etc my solution was to force the upgrade and that worked well for me
yunohost app upgrade peertube --force
but use it whisly :) and not without a backup :P
perhaps it works for you to

it crash my installation !

sorry to read this - i hope you could recover your peertube

@lapineige
Copy link
Member

Hi,

I think the PeerTube plugins should be installed using https://docs.joinpeertube.org/maintain/tools#peertube-cli-plugins instead of https://docs.joinpeertube.org/maintain/tools#install-or-uninstall-plugins.

https://docs.joinpeertube.org/maintain/tools#peertube-cli-plugins just uses PeerTube REST API to install the plugin, so it's the safest way to install them once PeerTube is running (which is the case with https://github.com/YunoHost-Apps/peertube_ynh/blob/master/scripts/install#L201, but you'll have to wait PeerTube is ready (test HTTP ping endpoint for example)).

I think the current issue is that PeerTube initializes its database and creates PostgreSQL functions while https://docs.joinpeertube.org/maintain/tools#install-or-uninstall-plugins does the same thing at the same time, leading to a concurrency issue.

Oh wait you already solved the issue we fixed in #400 😅

Indeed that change would be better in the future. It requires quite some work. Current patch should work correctly for now.

@lapineige lapineige mentioned this issue Dec 27, 2023
2 tasks
Tagadda added a commit that referenced this issue Dec 29, 2023
ericgaspar added a commit that referenced this issue Jan 3, 2024
Reapply "Merge pull request #390 from YunoHost-Apps/testing" : 6.0.2 + packaging v2 + fix install 502 error + timeout on slow hardware + wait for DB full init
@lapineige lapineige mentioned this issue Jan 5, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants