[Script] *RatXaBox* ruTorrent avec rTorrent. Version "Workflow"
- Modifié
salut à tous!
Ton script a installé tout ce qu'il me faut depuis un moment, mais j'ai remarqué que lors des maj, j'ai ça:
apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libxml2 linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Une idée?
Il doit y avoir de nouvelles dépendances pour ces paquets, et la mise à jour ne veut pas les forcer pour ne pas tout casser sans ton accord
https://debian-administration.org/article/69/Some_upgrades_show_packages_being_kept_back
https://askubuntu.com/questions/601/the-following-packages-have-been-kept-back-why-and-how-do-i-solve-it
En effet un simple apt install "lepaquetkeptback" installe correctement ce qui manquait.
En fait j'hésitais à le faire...Merci!
Salut a tous
Zettai
Le vhost ce trouve dans /etc/nginx/ratxabox.d/
, 2 utilisateurs pour une seule adresse comme pour rutorrent tu as une seule adresse pour plusieurs utilisateurs. (dans le vhost tu vas comprendre comme ça fonctionne)
Kkwete
Oui quand cest des paquets important il l'installe pas en auto
Bonjour,
Impossible d'ouvrir Medusa sur mon navigateur internet (sur mon MAC), j'y arrive sur mon smartphone Android... Sur mon MAC j'ai le message suivant :
Loading…
If this is taking too long,
click here to show the page.
Et je ne peux cliquer nul part, il n'y a aucun changement.
Essaie avec un autre navigateur/navigation privée ?
- Modifié
Bon alors j'ai essayé google, firefox, safari de mon Mac... Navigation privée ou pas rien à faire.
J'ai aussi essayé sur un PC, même problème !
Par contre sur mon téléphone j'arrive à voir l'erreur suivante dans les logs :
2019-10-04 15:10:46 WARNING CHECKVERSION :: [baad1e5] git config remote.origin.pushurl https://github.com/pymedusa/Medusa returned : error: could not lock config file .git/config: Permission denied. Treat as error for now
2019-10-04 15:10:46 WARNING CHECKVERSION :: [baad1e5] git config remote.origin.url https://github.com/pymedusa/Medusa returned : error: could not lock config file .git/config: Permission denied. Treat as error for now
- Modifié
Salut où puis-je trouver ce vhost? (Nginx?)
server {
listen 80 default_server;
listen 443 default_server ssl http2;
server_name _;
index index.html index.php; charset utf-8; client_max_body_size 10M; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key; include /etc/nginx/conf.d/ciphers.conf; access_log /var/log/nginx/rutorrent-access.log combined if=$loggable; error_log /var/log/nginx/rutorrent-error.log error; error_page 500 502 503 504 /50x.html; auth_basic "seedbox"; auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd"; root /var/www; location = /favicon.ico { access_log off; log_not_found off; } location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { fastcgi_index index.php; include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php7.3-fpm.sock; } location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ { expires 30d; access_log off; } location ~* \.(eot|ttf|woff|svg)$ { add_header Acccess-Control-Allow-Origin *; } ## Config accueil serveur ## location ^~ / { root /var/www/base; include /etc/nginx/conf.d/php.conf; include /etc/nginx/conf.d/cache.conf; satisfy any; allow all; } ## Config rutorrent ## location /rutorrent { try_files $uri $uri/ /index.html; } location ~ ^/rutorrent/(conf|share)/(.+)$ { deny all; } ## Config munin ## location /graph { } location /graph/img { error_log /dev/null crit; } location /monitoring { auth_basic "Monitoring"; auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_XXXX"; } location ^~ /nginx_status { stub_status on; access_log off; satisfy any; allow 127.0.0.1; deny all; } ## debut conf ratxabox ## include /etc/nginx/ratxabox.d/*.conf; ## fin conf ratxabox ## ## Config seedbox-manager ## location /seedbox-manager { try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args; } ## Config utilisateurs ## location /XXXX { include scgi_params; scgi_pass 127.0.0.1:5001; auth_basic "seedbox"; auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_XXXX"; }
}
- Modifié
Voici la conf présente dans medusa, j'ai volontairement caché les users sur le forum.
location ~ /medusa {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host:443;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header X-Forwarded-Proto $scheme;Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
if ($remote_user = "***") {
proxy_pass http://127.0.0.1:5003;
break;
}
if ($remote_user = "") {
proxy_pass http://127.0.0.1:5003;
break;
}
if ($remote_user = "") {
proxy_pass http://127.0.0.1:5003;
break;
}
if ($remote_user = "*") {
proxy_pass http://127.0.0.1:5003;
break;
}
if ($remote_user = "") {
proxy_pass http://127.0.0.1:5003;
break;
}
if ($remote_user = "***") {
proxy_pass http://127.0.0.1:5003;
break;
}
}
Salut pas de solution?
- Modifié
Kyuu972
Salut,
j’ai un peux zappé, test ça
location ^~ /medusa {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host:443;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header X-Forwarded-Proto $scheme;
# Websocket
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
if ($remote_user = "xavier") {
proxy_pass http://127.0.0.1:5003;
break;
}
}
il te faut utilisé une seul fois le port 5003.
modifie xavier par ton utilisateur ($remote_user = "xavier")
- Modifié
Kyuu972
Je vois pas car la conf est bonne (ta as bien redémarrée nginx?)
https://github.com/pymedusa/Medusa/wiki/Reverse-Proxy-setup
oui j'ai reload nginx mais rien à faire x)
Oui c'est la même connexion, que ça soit sur MAC ou PC rien à faire... C'est un serveur dédié.
et dans /var/log/nginx/rutorrent-error.log
?
2019/10/21 13:11:25 [error] 658#658: *18159 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /TP/public/index.p$
2019/10/21 13:11:26 [error] 658#658: *18161 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /TP/index.php HTTP$
2019/10/21 13:11:27 [error] 658#658: *18163 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /thinkphp/html/pub$
2019/10/21 13:11:27 [error] 658#658: *18165 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /html/public/index$
2019/10/21 13:11:27 [error] 658#658: *18167 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /public/index.php $
2019/10/21 13:11:28 [error] 658#658: *18169 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /TP/html/public/in$
2019/10/21 13:11:29 [error] 658#658: *18171 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /elrekt.php HTTP/1$
2019/10/21 13:11:29 [error] 658#658: *18173 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 59.46.190.24, server: _, request: "GET /index.php HTTP/1.$
2019/10/21 16:01:06 [error] 658#658: *18289 open() "/var/www/base/remote/login" failed (2: No such file or directory), client: 128.14.134.134, server: _, request: "GET /remote/login HTTP/1.1", host: "62.$
2019/10/21 19:13:58 [error] 27451#27451: *19513 open() "/var/www/base/editBlackAndWhiteList" failed (2: No such file or directory), client: 62.150.191.141, server: _, request: "POST /editBlackAndWhiteLis$
- Modifié
déja y' un truc qui charge dans le vide ... j'installe une ratxabox pour voir un truc, j'ai un mac sous la main au boutot
et un systemctl status nginx.service
?
je rencontre en effet le meme probleme que toi.
- Modifié
Ok j'ai résolu mon problème, essayons de voir si on peut résoudre le tient.
dans le fichier /etc/nginx/nginx.conf
à la ligne :
use epoll; # bla bla bla
tu dégage ce qu'il y'a derriere le # y compris le #, ca t'evitera une mauvaise surprise si un jour tu fout un certificat avec certbot ou letsencrypt.
Maintenant direction : /etc/nginx/ratxabox.d/medusa.conf
:
on va modifier les deux lignes :
proxy_set_header X-Forwarded-Host $host:443;
en
proxy_set_header X-Forwarded-Host $host:80;
et
proxy_set_header X-Forwarded-Port 443;
en
proxy_set_header X-Forwarded-Port 80;
un petit systemctl restart nginx
et recharge ta page
ca viens du https, je lui colle un nom de domaine et un certificat valide je me retrouve au meme endroit qu'avant.
on va continuer de chercher et d'elucider
donc : si pas de certificat ssl : il faut modifier les ports en 80 dans le reverse, si tu as un certificat tu remet 443
Hello!
J'ai formaté mon serveur et j'ai réinstallé le script.
Pour l'occasion, j'ai voulu installer emby à la place de Plex, mais je rencontre un pb:
`
Do you want to continue (y/n): y
Select an option
**Bonobox**
1 : Add user
2 : Suspend user
3 : Restore user
4 : Change password
5 : Remove user
6 : Debug
7 : Quit
**RatXaBox**
50 : Install Plex
51 : Install Emby
52 : Install OpenVpn/Managed Users
53 : Install filebot
54 : Install SyncThing
55 : Install Sickrage
56 : Install Couchpotato
57 : Install Medusa
58 : Install eZ Server Monitor
59 : Installer Jackett
Number: 51
--2019-10-31 14:04:04-- http://download.opensuse.org/repositories/home:emby/Debian_9.0/Release.key
Resolving download.opensuse.org (download.opensuse.org)... 2620:113:80c0:8::13, 195.135.221.134
Connecting to download.opensuse.org (download.opensuse.org)|2620:113:80c0:8::13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://download.opensuse.org/repositories/home:/emby/Debian_9.0/Release.key [following]
--2019-10-31 14:04:04-- http://download.opensuse.org/repositories/home:/emby/Debian_9.0/Release.key
Reusing existing connection to [download.opensuse.org]:80.
HTTP request sent, awaiting response... 200 OK
Length: 1088 (1.1K)
Saving to: ‘Release.key’
Release.key 100%[===================>] 1.06K --.-KB/s in 0s
2019-10-31 14:04:04 (137 MB/s) - ‘Release.key’ saved [1088/1088]
OK
Ign http://ftp.fr.debian.org/debian stretch InRelease
Hit http://security.debian.org/debian-security stretch/updates InRelease
Hit http://www.deb-multimedia.org stretch InRelease
Hit http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit http://ftp.fr.debian.org/debian stretch Release
Hit http://nginx.org/packages/debian stretch InRelease
Ign http://mediaarea.net/repo/deb/debian stretch InRelease
Ign http://ftp2.fr.debian.org/debian stretch InRelease
Hit http://ftp2.fr.debian.org/debian stretch Release
Hit http://mediaarea.net/repo/deb/debian stretch Release
Ign http://download.opensuse.org/repositories/home:/emby/Debian_9.0 InRelease
Hit https://packages.sury.org/php stretch InRelease
Get: 1 http://download.opensuse.org/repositories/home:/emby/Debian_9.0 Release [992 B]
Get: 2 http://download.opensuse.org/repositories/home:/emby/Debian_9.0 Release.gpg [481 B]
Ign http://download.opensuse.org/repositories/home:/emby/Debian_9.0 Release.gpg
Fetched 1,473 B in 1s (1,069 B/s)
W: GPG error: http://download.opensuse.org/repositories/home:/emby/Debian_9.0 Release: The following signatures were invalid: EXPKEYSIG 0A506F712A7D8A28 home:emby OBS Project <home:emby@build.opensuse.org>
E: The repository 'http://download.opensuse.org/repositories/home:/emby/Debian_9.0 Release' is not signed.
E: Failed to download some files
Couldn't find any package whose name or description matched "emby-server"
Unable to apply some actions, aborting
Cloning into '/var/www/rutorrent/plugins/linkemby'...
remote: Enumerating objects: 36, done.
remote: Total 36 (delta 0), reused 0 (delta 0), pack-reused 36
Unpacking objects: 100% (36/36), done.
Reading package lists... Done
Building dependency tree
Reading state information... Done
net-tools is already the newest version (1.60+git20161116.90da8a0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
`
Script lancé sur une install fraiche de Debian 9.
Merci!
ok merci!
emby se mettra à jour automatiquement par la suite?
Kkwete
Pas pour l'instant car le dépôt cest jusqu'à la version debian 9
attends je ne comprends pas.
Comment faire dans ce cas pour ajouter le dépot emby pour que cela fasse comme avec plex, une mise à jour par un simple apt-get upgrade?
attendre que emby ajoute le depot de buster et tu pourras l'ajouter pour qu'il s'update mais plus tard
mais je suis sous debian stretch, c'est pour ça que je trouve ca bizarre...
Il n'y a aucun dépot debian fonctionnel pour Emby?
Car pour Plex, je n'avais aucun probleme.