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 27 forks source link

Error during upgrade #116

Closed Thoma-HauC closed 5 years ago

Thoma-HauC commented 5 years ago

Hello,

I am not able to upgrade peertube. It seems something is wrong with youtube-dl module. See the following file : peertube_issue_on_yunohost.txt

Thank you in advance for your help

Thoma

yalh76 commented 5 years ago

nodejs is a bit unstable, can you retry to install peertube to check if you still have the same error

Thoma-HauC commented 5 years ago

Hello Yalh76,

I tried several times and the issue is reproducible. Can I try something else?

Thoma

yalh76 commented 5 years ago

Just tested, can you retry and give a link to the logs if it fails

Thoma-HauC commented 5 years ago

Hello Yalh76,

Here is the log file : 20190713_bug_peertube.log

Thoma

yalh76 commented 5 years ago

Ok then, I made another install on a new server. Install works fine. It seems related to you YunoHost. Do you installed something related to youtube-dl ?

Thoma-HauC commented 5 years ago

This installation is running for more than 2 years. But I do not think I have installed something related to youtube-dl on this machine.

On this machine, I have installed : Dokuwiki, Etherpad Mypads, Firefox Sync Server, Gogs, Jeedom, Jirafeau, Kanboard, Nextcloud, OpenSondage, Roundcube, Wallabag, Wordpress, riot and peertube. There is also a MQTT server (mosquitto) and BLYNK server.

What can I check regarding youtube-dl?

Thanks for your support

yalh76 commented 5 years ago

Is it an upgrade or an installation of peertube ? Because you speak of an upgrade of peertube and the log you provided are about an installation...

If it's an upgrade, what is your current peertube_ynh version ?

Thoma-HauC commented 5 years ago

You are right, it is no longer an upgrade. I forgot to give you this information. Something goes wrong during one of the attempts of upgrade and peertube disappeared. Now I need to install it again.

yalh76 commented 5 years ago

What kind of computer do you use ? A raspberrypi 1 ? Have you seen https://github.com/Chocobozzz/PeerTube/issues/1273

Thoma-HauC commented 5 years ago

My hardware is a Cubietruck with around 400Gio of free disk space.

I start the same test as in the other thread but yarn was missing. After installing yarn, test succeed in 32,52s.

I relaunch yunohost app install peertube but it exits with the same error.

Before this update, peertube was running like a charm. Is this a new dependency ?

yalh76 commented 5 years ago

After more analysis, during mastodon install dependency, when node donwload and install youtube-dl module, it requires to download a binary https://ytdl-org.github.io/youtube-dl/index.html

Seems that another person has the same issue as you: https://github.com/przemyslawpluta/node-youtube-dl/issues/201

Thoma-HauC commented 5 years ago

Do you think a workaround is possible? Or should I download something?

yalh76 commented 5 years ago

I have no idea.. I more a Linux beginner.. Maybe you should ask at peertube repository https://github.com/Chocobozzz/PeerTube/

Thoma-HauC commented 5 years ago

Last question: Is there a tutorial about how to debug the installation script on YUNoHost?

yalh76 commented 5 years ago

Last question: Is there a tutorial about how to debug the installation script on YUNoHost?

I don't think but it's easy to read. But as far as I've seen and tested, your issue doesn't come from the install script