Yes !!!

root@PAR-130656:/home/patrick# docker run -it --rm    -v /home/toto/local/rutorrent:/home/toto/local/rutorrent    -v /run/php/.rtorrent.sock:/run/php/.rtorrent.sock    magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock -vvv

Box Requirements Checker
========================

Using PHP 7.2.18
PHP is using the following php.ini file:
  /etc/php7/php.ini

Checking Box requirements:
   The application requires the version ">=5.6.0" or greater.
   The application requires the extension "zlib".
   The application requires the extension "xmlrpc".


 [OK] Your system is ready to run the application.


╔═══════════════════════════╗
║ RTORRENT-CLEANER - REPORT ║
╚═══════════════════════════╝

 ████████████████████████████ 100%
 remaining time: < 1 sec
 status: recovering the files list from rtorrent...


  The files are not able to be reached locally

Alors du coup avec juste une petite modif dans le compose

 volumes:
    - /etc/localtime:/etc/localtime:ro
    - /opt/seedbox/docker/toto/rutorrent:/config
    - /run/php:/run/php

Avec ta commande au dessus

docker run -it --rm \
   -v /home/toto/local/rutorrent:/home/toto/local/rutorrent \
   -v /run/php/.rtorrent.sock:/run/php/.rtorrent.sock \
   magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

Edit: c'etait un essai sans traefik, je teste maintenant avec

Avec traefik

root@PAR-130656:/home/corinne# docker run -it --rm    -v /home/corinne/local/rutorrent:/home/corinne/local/rutorrent    -v /run/php/.rtorrent.sock:/run/php/.rtorrent.sock    magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock
╔═══════════════════════════╗
║ RTORRENT-CLEANER - REPORT ║
╚═══════════════════════════╝

 ████████████████████████████ 100%
 remaining time: < 1 sec
 status: completed successfully!

0 file(s) are not tracked by rtorrent. (use the `rm` or `mv` command)

no files not tracked by rtorrent

0 files(s) are missing in the torrents. (use the `torrents` command)

no missing files

time: 7ms, torrents: 1, memory: 4MB

Parfait, merci beaucoup de ton aide @Magicalex, est ce que tu es d'accord pour que je l intègre à mon script ?
https://mondedie.fr/d/10420-script-auto-install-seedbox-multi-user-docker-avec-rclone-plexdrive-unionfs/192

    OK la même, merci @laster13 et @Magicalex

    sudo docker run -it --rm \
        -v /mnt/downloads/rutorrent:/mnt/downloads/rutorrent \
        -v /opt/appdata/rutorrent/sock/.rtorrent.sock:/run/php/.rtorrent.sock \
        --network plexguide \
        --link rutorrent:rtorrent \
        magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

    Petite rectif

     volumes:
        - /etc/localtime:/etc/localtime:ro
        - /opt/seedbox/docker/user/rutorrent:/config
        - /run/php:/run/php

    et

    docker run -it --rm \
       -v /home/user/local/rutorrent:/home/user/local/rutorrent \
       -v /run/php:/run/php \
       magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

    Pour le script

    #!/bin/bash
    
    docker run -it --rm \
       -v /home/user/local/rutorrent:/home/user/local/rutorrent \
       -v /run/php:/run/php \
       magicalex/docker-rtorrent-cleaner --scgi=/run/php/.rtorrent.sock $*
    

    top

    9 jours plus tard

    Je vais sortir bientôt la version 0.9.0 ou je corrige pas mal de bug.
    J'ai encore un bug que j'arrive pas à reproduire, si y a des personnes qui veulent faire des tests et me faire un retour merci de répondre sous cette discussion.

    Bonjour,
    je n'ai rien en production, je ne fais que des tests sur très peu de torrents mais je vais essayer des que possible 😉

    Le script commence a être plus robuste maintenant. J'ai encore moyen d'optimiser deux trois petits détails.
    Je vais dans les jour qui vienne sortir la version 0.9.1.

    Je considère le script stable, j'avais un bug sur le listing des fichiers manquant mais je n'arrive pas à le reproduire...
    Au passage on parle du script sur reddit :

    3 mois plus tard

    Merci pour ce script, c'est parfait, j'ai juste généré un rapport et supprimé à la main car j'ai un gros dossiers Partage puis échanger des fichiers non référencés dans rtorrent (photos, etc) via cakebox.
    Si un jour il est possible d'ignorer un dossier, ça serait encore plus que parfait ;-)

    Merci pour tout ton travail !

    [EDIT] Évidemment avec la commande grep on fait le tri rapidement (je ne maitrise pas encore)

      Aedonus Alors effectivement on peut pas tout à fait exclure des dossiers.
      Je vais rajouter ça dans la prochaine version. Je vais voir comment je peux faire ça...

      @Aedonus @laster13 j'ai sortie une nouvelle version la 0.9.1

      Pour ignorer des fichiers vous devez utiliser l'option --exclude-files ou juste -f
      Pour ignorer des dossiers vous devez utiliser l'option --exclude-dirs ou juste -d

        23 jours plus tard

        Salut, chez moi tout fonctionnait avec l'option RPC. Depuis... Je ne comprends pas. Un peu d'aide serait la bienvenue.
        Je me prends la fameuse erreur

        Unable to connect to rtorrent. Check if rtorrent is running.

        Docker ruTorrent : linuxserver
        rtorrent.rc

        execute = {sh,-c,/usr/bin/php7 /usr/share/webapps/rutorrent/php/initplugins.php abc &}
        execute.nothrow = rm,/run/php/.rtorrent.sock
        network.scgi.open_local = /run/php/.rtorrent.sock
        schedule = socket_chmod,0,0,"execute=chmod,0660,/run/php/.rtorrent.sock"
        schedule = socket_chgrp,0,0,"execute=chgrp,abc,/run/php/.rtorrent.sock"
        log.open_file = "rtorrent", /config/log/rtorrent/rtorrent.log
        log.add_output = "info", "rtorrent"
        min_peers = 1
        max_peers = 1500
        max_uploads = 140
        download_rate = 0
        upload_rate = 0
        method.set_key=event.download.finished,move_complete,"execute=cp,-al,$d.base_path=,/downloads/unionfs/"
        directory = /downloads/incoming
        session = /config/rtorrent/rtorrent_sess
        schedule = low_diskspace,5,60,close_low_diskspace=1000G
        ip = xxx
        bind = 0.0.0.0
        port_range = 49161-49161
        check_hash = yes
        encryption = allow_incoming,try_outgoing,enable_retry
        dht = off
        dht_port = 6881
        #scgi_port = 0.0.0.0:5000
        encoding_list = UTF-8
        

        Si je décommente le SGI (ou ajoute la ligne mentionnée sur le GitHub, rtorrent plante).

        J'ai tenté ces commandes, en vain

        docker run -it --rm \
        -v /home/aerya/mnt/:/downloads \
        --network nginx-proxy-manager_default \
        --link rutorrent:rtorrent \
        magicalex/docker-rtorrent-cleaner report --scgi=localhost --port=5000
        docker run -it --rm \
        -v /home/aerya/mnt/:/downloads \
        --network nginx-proxy-manager_default \
        --link rutorrent:rtorrent \
        -v /run/php/.rtorrent.sock:/run/php/.rtorrent.sock \
        magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

        Dans ton Docker ruTorrent tu as bien
        -v /run/php:/run/php/
        si j'en crois ta 2e commande ?

        moi j'ai mappé /opt/appdata/rutorrent/sock donc ça donne

        docker run -it --rm \
            -v /mnt/downloads/rutorrent:/mnt/downloads/rutorrent \
            -v /opt/appdata/rutorrent/sock/.rtorrent.sock:/run/php/.rtorrent.sock \
            --network plexguide \
            --link rutorrent:rtorrent \
            magicalex/docker-rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

        Bonjour,

        Je viens de tester la config ci dessous avec linuxserver/rutorrent
        https://mondedie.fr/d/10037-rtorrent-cleaner-un-script-pour-liberer-de-la-place-sur-votre-seedbox-!/223

        J'ai placé le script dans /usr/local/bin

        Du coup je tape rtorrent-cleaner report et ca fonctionne.

        execute = {sh,-c,/usr/bin/php7 /usr/share/webapps/rutorrent/php/initplugins.php abc &}
        execute.nothrow = rm,/run/php/.rtorrent.sock
        network.scgi.open_local = /run/php/.rtorrent.sock
        schedule = socket_chmod,0,0,"execute=chmod,0660,/run/php/.rtorrent.sock"
        schedule = socket_chgrp,0,0,"execute=chgrp,abc,/run/php/.rtorrent.sock"
        log.open_file = "rtorrent", /config/log/rtorrent/rtorrent.log
        log.add_output = "info", "rtorrent"
        min_peers = 40
        max_peers = 1200
        max_uploads = 15
        download_rate = 90000
        upload_rate = 30000
        # schedule = watch_directory_1,5,5,"load.start=/downloads/watched/*.torrent"
        directory = /home/yohann/local/rutorrent
        session = /config/rtorrent/rtorrent_sess
        schedule = low_diskspace,5,60,close_low_diskspace=5000M
        # ip = 178.32.28.51
        bind = 0.0.0.0
        port_range = 5000-5000
        check_hash = no
        encryption = allow_incoming,try_outgoing,enable_retry
        #dht = auto
        #dht_port = 6881
        # network.http.ssl_verify_peer.set=0
        # scgi_port = 0.0.0.0:5000
        encoding_list = UTF-8
        # system.umask.set = 022
        directory.default.set = /home/yohann/local/rutorrent
        throttle.max_downloads.global.set = 500
        throttle.max_uploads.global.set = 50
        system.file.allocate.set = 0
        max_downloads = 10
        throttle.global_up.max_rate.set_kb = 0
        pieces.preload.type = 2
        network.http.dns_cache_timeout.set = 25
        network.send_buffer.size.set = 12M
        network.receive_buffer.size.set = 4M
        throttle.min_peers.seed.set = 0
        throttle.max_peers.seed.set = -1
        

        Vous pouvez me donner la config définitive pour linuxserver les gars? je vais la mettre dans le readme du projet.

        Hier j'ai sorti la version 0.9.2 qui je l'espère corrige ce bug issue github
        Les performances devraient même être légèrement meilleur puisque j'ai simplifié la logique.

        Si y a des erreurs merci de me le faire remonter ici ou sur le github.

        @Aerya oui je ne communique plus via l'url de rutorrent parce que c'était spécifique aux utilisateurs de rutorrent.
        Maintenant je communique directement avec rtorrent donc tout le monde peut utiliser rtorrent-cleaner (par exemple les utilisateurs de flood) et les performances sont bien meilleurs aussi.

        Voici comment je lance mon rutorrent

          rutorrent:
            image: linuxserver/rutorrent:latest
            restart: always
            container_name : rutorrent
            ports:
              - 5000:5000
              - 49161:49161
              - 49160:49160/udp
            environment:
              - TZ=Europe/Paris
              - PGID=1001
              - PUID=1001
            volumes:
              - /home/aerya/docker/rutorrent:/config
              - /home/aerya/mnt:/downloads
            labels:
              - com.centurylinklabs.watchtower.enable=true

        Et je tente de lancer le cleaner en version Docker.

        Le problème est que quand j'ajoute - /run/php:/run/php alors rTorrent est en défaut (can't connect etc). Vous êtes sûrs que vous utilisez ça avec Linuxserver ?!

          Aerya tu peux retirer le port 5000 linuxserver utilise un socket.

          Il faut que tu montes sur un volume le socket rtorrent voir ici dans la discussion

          Configuration de magicalex/docker-rtorrent-cleaner pour linuxserver/rutorrent

          docker-compose.yml

            rutorrent:
              image: linuxserver/rutorrent:latest
              restart: always
              container_name : rutorrent
              ports:
                - 49161:49161
                - 49160:49160/udp
              environment:
                - TZ=Europe/Paris
                - PGID=1001
                - PUID=1001
              volumes:
                - /home/user/docker/rutorrent:/config
                - /home/user/downloads:/downloads
                - /run/php:/run/php
              labels:
                - com.centurylinklabs.watchtower.enable=true

          script: /usr/local/bin/rtorrent-cleaner

          #!/bin/sh
          
          docker run -it --rm \
            -v /home/user/downloads:/downloads \
            -v /run/php:/run/php \
            magicalex/docker-rtorrent-cleaner $*

          Pour faire un rapport

          rtorrent-cleaner report --scgi=/run/php/.rtorrent.sock

          D'ailleurs c'est un peu nimp leur config, ils utilisent un socket et après ils vous font ouvrir le port 5000 pour scgi 🤦‍♂️

          OK merci, je retente une config.
          EDIT : Et donc, comme avant, le container ruTorrent ne fonctionne pas dès lors que j'ajoute /run/php:/run/php... Il dit qu'il ne trouve pas le .rtorrent.rc