# \[Peertube\] Video p2p streaming federated platform

**URL:** <https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969>\
**Category:** Apps\
**Tags:** peertube\
**Created:** [June 8, 2018, 10:21am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969 "2018-06-08T10:21:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 8, 2018, 10:21am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/1 "2018-06-08T10:21:36Z")

</div>

Hi

I am happy to announce the addition of **Peertube app** on **YunoHost**.

> **[GitHub - YunoHost-Apps/peertube\_ynh: Federated (ActivityPub) video streaming...](https://github.com/YunoHost-Apps/peertube_ynh)**
>
> Federated (ActivityPub) video streaming platform using P2P for YunoHost - GitHub - YunoHost-Apps/peertube\_ynh: Federated (ActivityPub) video streaming platform using P2P for YunoHost

Cl latest result: [YunoHost Portal](https://ci-apps.yunohost.org/jenkins/job/peertube%20(Community)/5/console)

**Peertube** is a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser with WebTorrent. Know more [here](https://github.com/Chocobozzz/PeerTube)

Claims the following features:

- Install
- Remove
- Upgrade
- Backup
- Restore
- Multi-instance

Please feel free to test and open an issues [here](https://github.com/YunoHost-Apps/peertube_ynh/issues).

Note: Peertube is still in beta stage and there maybe bug yet to be fixed. These bugs are not related to packaging of the app. If you find any bug please open an issue on the [Peertube issue page](https://github.com/Chocobozzz/PeerTube/issues) directly.

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 8, 2018, 10:39am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/2 "2018-06-08T10:39:41Z")

</div>

It would be helpful if someone can give a feedback on why Peertube should be served in private mode, when it has its authentication mechanism for the videos. Case maybe when you only want to seed keeping the main interface hidden 🙂 . I am not sure that it will work,or if its good idea.  
If there is no use to keep app private, I will remove this option from the installation.

---

<div class="post-metadata">

**Author:** ![Limezy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/limezy/32/4983_2.png) [@Limezy](https://forum.yunohost.org/u/Limezy)\
**Post date:** [June 8, 2018, 1:10pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/3 "2018-06-08T13:10:52Z")

</div>

I will not have the time to do a review before several weeks, but I can tell you that the private “mode” will be useful, at least for me (well, actually it’s for a friend that want some videos to be viewable only by his YunoHost users, and not downloadable, so he doesn’t want to put them in Nextcloud)

---

<div class="post-metadata">

**Author:** ![Limezy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/limezy/32/4983_2.png) [@Limezy](https://forum.yunohost.org/u/Limezy)\
**Post date:** [June 8, 2018, 1:11pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/4 "2018-06-08T13:11:11Z")

</div>

Thanks for your job anyway ! Will try to review the app ASAP.

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 8, 2018, 1:30pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/5 "2018-06-08T13:30:19Z")

</div>

If the person know the seeding address of the video hosted, the video can be watched on other instances, I guess.

For eg. This e2651856-4809-408a-99d4-b85b01fefb09  
can be viewed on (see the link address,its different for each video with same seeding address)

> **[Sintel trailer](https://peertube.moe/videos/watch/e2651856-4809-408a-99d4-b85b01fefb09)**
>
> Trailer for the short animation film "Sintel", the Durian Open Movie project by the Blender Foundation.

and here

> **[Sintel trailer](https://peertube.maly.io/videos/watch/e2651856-4809-408a-99d4-b85b01fefb09)**
>
> Trailer for the short animation film "Sintel", the Durian Open Movie project by the Blender Foundation.

These both instances are different but playing the same video originally hosted here.

> **[Sintel trailer](https://peertube.cpy.re/videos/watch/e2651856-4809-408a-99d4-b85b01fefb09)**
>
> Trailer for the short animation film "Sintel", the Durian Open Movie project by the Blender Foundation.

So the interface will be private but the instance will be not private. You will have to close the port of the peertube to make it completely private. But this defeat aim of Peertube because there are other number of ways to host videos on client and server architecture. Peertube is for P2P sharing like torrents.

You can even download the video in a torrents client like uTorrent, transmission,etc.

---

<div class="post-metadata">

**Author:** ![quentind](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quentind/32/1311_2.png) [@quentind](https://forum.yunohost.org/u/quentind)\
**Post date:** [June 8, 2018, 8:31pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/6 "2018-06-08T20:31:26Z")

</div>

Installation through interface doesn’t seem to work properly 😕

Here are my logs : [https://framabin.org/p/?ef647df90a7ad3c9#F3YPHWNF5K3mMx9V5rENYUZ1ZgPHwYZb0n00DstwaU0=](https://framabin.org/p/?ef647df90a7ad3c9#F3YPHWNF5K3mMx9V5rENYUZ1ZgPHwYZb0n00DstwaU0=)

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 8, 2018, 8:51pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/7 "2018-06-08T20:51:50Z")

</div>

@quentind  
Can you install the app from command-line and show the logs please?

`yunohost app install --verbose https://github.com/YunoHost-Apps/peertube_ynh`

---

<div class="post-metadata">

**Author:** ![quentind](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quentind/32/1311_2.png) [@quentind](https://forum.yunohost.org/u/quentind)\
**Post date:** [June 8, 2018, 9:17pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/8 "2018-06-08T21:17:46Z")

</div>

Yep…  
The logs : [https://framabin.org/p/?11340af9a85768f5#aGPDz3yS5xBH3qM4FUvoZ2/ZvBjRMNl9reeO7uPBrI0=](https://framabin.org/p/?11340af9a85768f5#aGPDz3yS5xBH3qM4FUvoZ2/ZvBjRMNl9reeO7uPBrI0=)

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 8, 2018, 9:26pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/9 "2018-06-08T21:26:08Z")

</div>

@quentind  
[https://cloud117.fr](https://cloud117.fr) is a YunoHost main domain. You can not install an app on it because its take by SSO.

Thus it gives you : `Attention : Cette URL n’est pas disponible ou est en conflit avec une application existante` which is the cause of the error.

You will need a another domain or sub-domain like [video.cloud117.fr](http://video.cloud117.fr) or [peertube.cloud117.fr](http://peertube.cloud117.fr) ,etc.

Hope it clarify your issue.

---

<div class="post-metadata">

**Author:** ![quentind](https://forum.yunohost.org/user_avatar/forum.yunohost.org/quentind/32/1311_2.png) [@quentind](https://forum.yunohost.org/u/quentind)\
**Post date:** [June 8, 2018, 10:12pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/10 "2018-06-08T22:12:37Z")

</div>

Thank you so much, it works 🙂

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 12, 2018, 3:24pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/11 "2018-06-12T15:24:26Z")

</div>

I want know how the apps like NextCloud and Piwigo handles large amount data stored in /home/yunohost.app/ folder while backup and remove script run. If the data is huge the app can take long time to backup while the upgrade run and if app folder is not included in backup script, failing an upgrade could remove the apps home folder thus corruption of the app while restore.  
Should the remove script delete the apps home folder or it should be dome manually by the admin?

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 12, 2018, 3:39pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/12 "2018-06-12T15:39:58Z")

</div>

App is updated to version **v1.0.0-beta.8**.

Update from admin interface or use the following command in command-line:

`yunohost app upgrade -u https://github.com/YunoHost-Apps/peertube_ynh peertube --verbose`

---

<div class="post-metadata">

**Author:** ![Akahyperion](https://forum.yunohost.org/user_avatar/forum.yunohost.org/akahyperion/32/1264_2.png) [@Akahyperion](https://forum.yunohost.org/u/Akahyperion)\
**Post date:** [June 13, 2018, 2:34pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/13 "2018-06-13T14:34:40Z")

</div>

Hi,

I’m running Yunohost 2.7.12 on a raspberry pi 3.

Installation from command-line doesn’t work for me.  
`sudo yunohost app install --verbose https://github.com/YunoHost-Apps/peertube_ynh`  
Here is my log : [https://framabin.org/p/?5ff3449b05760d9c#Q443BysS1HbB5s3u2t3R3tN7+LneUn/5ARsHVPk3eoE=](https://framabin.org/p/?5ff3449b05760d9c#Q443BysS1HbB5s3u2t3R3tN7+LneUn/5ARsHVPk3eoE=)

Any ideas ?

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 13, 2018, 2:49pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/14 "2018-06-13T14:49:18Z")

</div>

Can you try to install the packages manually and see what is the issue?

`apt-get install postgresql ffmpeg`

---

<div class="post-metadata">

**Author:** ![Akahyperion](https://forum.yunohost.org/user_avatar/forum.yunohost.org/akahyperion/32/1264_2.png) [@Akahyperion](https://forum.yunohost.org/u/Akahyperion)\
**Post date:** [June 13, 2018, 3:30pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/15 "2018-06-13T15:30:01Z")

</div>

I’ve installed these packages manually without any issues (I guess !).  
However I’ve got a really bad internet connection at the moment, download was 70 Mbit/s then suddenly 3 or 4 Mbit/s, back to 20 Mbit/s, etc… It took me ages to install these two packages !  
It may explain the issues with peertube. I run a new installation and let you now.

---

<div class="post-metadata">

**Author:** ![Akahyperion](https://forum.yunohost.org/user_avatar/forum.yunohost.org/akahyperion/32/1264_2.png) [@Akahyperion](https://forum.yunohost.org/u/Akahyperion)\
**Post date:** [June 14, 2018, 9:50am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/16 "2018-06-14T09:50:45Z")

</div>

Hi,  
I ran a new installation this morning. It seems to work but I still have some issues.

First, through SSH my shell is stuck at `+ yarn install --production --pure-lockfile --silent --cache-folder /var/cache/yarn/`, here is the entire log [https://framabin.org/p/?74d7918409353917#JnQBx868OOxN7xiJH//By5H8U7UtX+cc1pm6h4QhUps=](https://framabin.org/p/?74d7918409353917#JnQBx868OOxN7xiJH//By5H8U7UtX+cc1pm6h4QhUps=)  
I don’t want to do `Ctrl + C`, it’s going to purge the installation I guess…

Second, when I go to my peertube instance i got the message “Error. Token is invalid.”

Third, I must have missed something, I got the admin password but I can’t log in (I don’t know the admin username…).

**Edit :** Finally it works ! I wait… Got a broken pipe with my ssh connection, reloaded my instance and no more “Token is invalid”. I could connect as admin with his email address.

I think all the problems came from my hardware and internet connection. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![madmaxlamenace](https://forum.yunohost.org/user_avatar/forum.yunohost.org/madmaxlamenace/32/540_2.png) [@madmaxlamenace](https://forum.yunohost.org/u/madmaxlamenace)\
**Post date:** [June 15, 2018, 5:30am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/17 "2018-06-15T05:30:20Z")

</div>

Hello, did you try to use both SSO login and Peertube.  
Because it seems the Token Problem appears when you are connected to the SSO.  
For example if you have restarted your Instance, your are not login to the SSO, right ?  
Regards

---

<div class="post-metadata">

**Author:** ![Akahyperion](https://forum.yunohost.org/user_avatar/forum.yunohost.org/akahyperion/32/1264_2.png) [@Akahyperion](https://forum.yunohost.org/u/Akahyperion)\
**Post date:** [June 15, 2018, 7:40am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/18 "2018-06-15T07:40:15Z")

</div>

Hi,  
Yes indeed! I’ve seen a post about that in the forum. I don’t have much time at the moment to look for that. I’m just going to wait a bit for a final release maybe.  
Regards

---

<div class="post-metadata">

**Author:** ![Akahyperion](https://forum.yunohost.org/user_avatar/forum.yunohost.org/akahyperion/32/1264_2.png) [@Akahyperion](https://forum.yunohost.org/u/Akahyperion)\
**Post date:** [June 15, 2018, 10:40am UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/19 "2018-06-15T10:40:46Z")

</div>

OK! I finally got it very well! (I found time to do it!)

_ **It may not be the right place for this post!** _

What I did :

1. A new installation of peertube through SSH (it looks like through the admin web interface it doesn’t work properly!) using `yunohost app install peertube`.  
The shell still got stuck but I got an email from peertube app with the admin password. I’ve just waited for my shell to have a ‘broken pipe’.

2. I made sure I wasn’t connected with SSO, then I went to the link of my instance, logged as root, everything went well, made some configurations, everything is really responsive! Logged out.

3. When I log to my SSO, I get the PeerTube app but through this link you inevitably have an error with Invalid Token and you’re instance looks empty. So disconnect from SSO, go back to your instance of peertube and everything should work fine again.  
**I should warn all my users about this!**

4. I’ve added some others instances to follow.  
Here it’s a little bit tricky, I can follow _complete_ instances (for example [framatube.org](http://framatube.org)) but I don’t understand yet how to follow a specific uploader from an instance of peertube. It looks like the user has to accept the request, but I’m not sure about that.  
For example I wanted to follow khaos\_farbauti, his channel is at [https://peertube.nsa.ovh/accounts/khaos\_farbauti/videos](https://peertube.nsa.ovh/accounts/khaos_farbauti/videos) so I had to follow this: `peertube.nsa.ovh/accounts/khaos_farbauti` but nothing appeared in my following list. My guess is that I have to wait a bit for my peertube instance to do the job 😉 .

Hope this would be useful for others. I really like how PeerTube is designed / developped. I have no intention to post any video at the moment, I just want to be part of the federation and help seeding videos!

---

<div class="post-metadata">

**Author:** ![kanhu](https://forum.yunohost.org/user_avatar/forum.yunohost.org/kanhu/32/3518_2.png) [@kanhu](https://forum.yunohost.org/u/kanhu)\
**Post date:** [June 25, 2018, 7:18pm UTC](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969/20 "2018-06-25T19:18:19Z")

</div>

PeerTube has been updated to version **v1.0.0-beta.9**.

> **[YunoHost-Apps/peertube\_ynh](https://github.com/YunoHost-Apps/peertube_ynh)**
>
> peertube\_ynh - YunoHost Peertube:Federated (ActivityPub) video streaming platform using P2P:https://github.com/Chocobozzz/PeerTube

Upgrade from command-line :

`yunohost app upgrade -u https://github.com/YunoHost-Apps/peertube_ynh peertube --debug`

[Next page](https://forum.yunohost.org/t/peertube-video-p2p-streaming-federated-platform/4969.md?page=2)
