suite à divers soucies sur mon serveur , j'ai réussis à remettre en route ma seedbox opérationnelle à quelques détail prêt !
- les redirection nginx de type http://******/rutorrent ou /sonarr ne marche pas mais par les port pas de soucie .
/etc/nginx/sites-enabled/rutorrent.conf
include /etc/nginx/conf.d/log_rutorrent.conf;
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.1-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_sanpaille";
}
location ^~ /nginx_status {
stub_status on;
access_log off;
satisfy any;
allow 127.0.0.1;
deny all;
}
## Config seedbox-manager ##
location /seedbox-manager {
try_files /seedbox-manager/$uri /seedbox-manager/index.php$is_args$args;
}
## Config Sonarr ##
location /sonarr {
proxy_pass http://localhost:8989;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
}
## Config Jackett ##
location /jackett/ {
proxy_pass http://127.0.0.1:9117/jackett/;
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-Proto https;
proxy_redirect http:// $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 32 4k;
}
## Config utilisateurs ##
location /SANPAILLE {
include scgi_params;
scgi_pass 127.0.0.1:5001;
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_sanpaille";
}
}`
- Rclone qui dois scanner et envoyer mes dossiers série tv / film etc sur mon gdrive ne marche pas !
*sync.sh* ( script qui doit lancer rclone copy*
`#!/bin/sh
if [ -e /home/sanpaille/Scripts/Logs/rclone_sync.lock ]
then
echo "Commande Rclone deja lance"
exit
fi
touch /home/sanpaille/Scripts/Logs/rclone_sync.lock
/usr/bin/rclone copy --verbose --ignore-existing Local:/home/sanpaille/.Media/ Gdrive:/ > /home/sanpaille/Scripts/Logs/sync.log 2>&1
rm /home/sanpaille/Scripts/Logs/rclone_sync.lock
exit
Script mount
#!/bin/sh
#Unmount any directories already mounted
/bin/fusermount -uz /home/sanpaille/gdrive
/bin/fusermount -uz /home/sanpaille/.gdrive
/bin/fusermount -uz /home/sanpaille/Media
/bin/fusermount -uz /home/sanpaille/Union
#Mount ACD using rClone
/home/sanpaille/rclone-v1.38-linux-amd64/rclone mount --max-read-ahead 200M --drive-chunk-size 128M --checkers 40 --dir-cache-time 30m --transfers=32 --allow-other Gdrive:/ /home/sanpaille/.gdrive &
#Mount encryption over these folders
ENCFS6_CONFIG='/home/sanpaille/.cache/.encfs6.xml' encfs -S -o allow_other --extpass="cat /home/sanpaille/.cache/.encfspass" /home/sanpaille/.gdrive /home/sanpaille/gdrive
ENCFS6_CONFIG='/home/sanpaille/.cache/.encfs6.xml' encfs -S -o allow_other --extpass="cat /home/sanpaille/.cache/.encfspass" /home/sanpaille/.Media /home/sanpaille/Media
#Use union-fs to merge our remote and local directories
unionfs-fuse -o cow -o allow_other /home/sanpaille/Media=RW:/home/sanpaille/gdrive=RO /home/sanpaille/Union/
exit
voila le retour d'erreur que je recois en lancant ces 2 scripts :
Pour mout.sh :
/bin/fusermount: entry for /home/sanpaille/gdrive not found in /etc/mtab
/bin/fusermount: entry for /home/sanpaille/.gdrive not found in /etc/mtab
/bin/fusermount: entry for /home/sanpaille/Media not found in /etc/mtab
/bin/fusermount: entry for /home/sanpaille/Union not found in /etc/mtab
2019/12/11 1fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
rror: fusermount: if you are sure this is safe, use the 'nonempty' mount option
2019/12/11 17:08:31 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
- options invalides -- voir le message d'utilisation
Erreur de fuse. Problèmes courants :
- module noyau fuse non installé (faites "modprobe fuse")
- options invalides -- voir le message d'utilisation
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
Et pour Sinc.sh :
2019/12/11 17:20:25 Failed to create file system for "Local:/home/sanpaille/.Media/": didn't find section in config file
apres avoir passé tellement d'heure à tester et autres je suis perdus dans les supositions etcetc une aide serais bienvenus à vous !!! 🙂