hey !
I’m trying peertube at home on a ubuntu server vm behind a livebox (orange). When I want to read a video, it charge but won’t play :’( At the beginning I can see one peer, but shortly after it say there is no peers… I don’t have any error in the journal.
I don’t know if it’s related but the video I try to read is a audio file converted by peertube in video. the first time I tried to upload it I got a error : "Error: ENOENT: no such file or directory, open '/var/www/peertube/versions/peertube-v1.4.1/server/assets/default-audio-background.jpg'"
.
So i copied the folder server
from the git repository to var/www/peertube/versions/peertube-v1.4.1/
. After that the audio file uploaded properly.
I can direct download the file without problem.
maybe I have to open some specific port / allow some protocol in my reverse proxy ? Or in my livebox ?
thx
Ngnix me dit "/var/www/peertube/storage/videos/3157246d-a155-4a64-8e12-013de6c7e7e4-480.mp4" failed (2: No such file or directory)
du coup il a juste pas créé la vidéo …
je viens de voir ca dans les log
[video.gafamfree.party:443] 2019-10-25 10:55:48.554 #033[33mwarn#033[39m: Warning in tracker. {
Oct 25 10:55:48 peertube peertube[21283]: "err": {
Oct 25 10:55:48 peertube peertube[21283]: "stack": "Error: Unknown infoHash 135ab228703edf6e4d588966dd98f099c6e3f427\n at Server.<anonymous> (/var/www/peertube/versions/peertube-v1.4.1/dist/server/controllers/tracker.js:60:27)\n at Generator.next (<anonymous>)\n at fulfilled (/var/www/peertube/versions/peertube-v1.4.1/dist/server/controllers/tracker.js:4:58)",
Oct 25 10:55:48 peertube peertube[21283]: "message": "Unknown infoHash 135ab228703edf6e4d588966dd98f099c6e3f427"
Oct 25 10:55:48 peertube peertube[21283]: }
Oct 25 10:55:48 peertube peertube[21283]: }
après une seconde tentative d’upload, la vidéo est bien dans /storage mais nginx indique la même erreur (2: No such file or directory)
… Je comprend pas pourquoi il la trouve pas
Bonjour,
Que donne la commande /var/www/peertube/storage/videos/
?
-bash: /var/www/peertube/storage/videos/: Is a directory
Ok il fallait juste supprimer cette partie d’optimisation du reverse proxy
# Bypass PeerTube for performance reasons. Could be removed
location ~ ^/static/(webseed|redundancy)/ {
# Clients usually have 4 simultaneous webseed connections, so the real limit is 3MB/s per client
limit_rate 800k;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Range,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Reques
ted-With,If-Modified-Since,Cache-Control,Content-Type';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'Range,DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Reques
ted-With,If-Modified-Since,Cache-Control,Content-Type';
# Don't spam access log file with byte range requests
access_log off;
}
root /var/www/peertube/storage;
rewrite ^/static/webseed/(.*)$ /videos/$1 break;
rewrite ^/static/redundancy/(.*)$ /redundancy/$1 break;
try_files $uri /;
}
maintenant ca marche