Hello
j'essaye sans succès de faire fonctionner le script via Docker sachant que j'ai aussi l'image docker rtorrent.
Mon torrent est configuré de la sorte :
gormson-rutorrent:
image: mondedie/rutorrent:filebot
container_name: gormson-rutorrent #Specific USER
environment:
- UID=1003 #Specific USER
- GID=1003 #Specific USER
- DHT_RTORRENT=off
- PORT_RTORRENT=6881 #Specific USER
- FILEBOT_LICENSE=/config/filebot/FileBot_License_PX56559722.psm
- FILEBOT_RENAME_METHOD=symlink
- HTTP_AUTH=false
volumes:
- /home/gormson/config:/config
- /home/gormson/data:/data
- /run/rtorrent-gormson:/run/rtorrent
networks:
- npm-proxy # Force l'utilisation de ce réseau
ports:
#- 9080:8080 Inutile car utilisation de NPM
- 6881:6881
- 6881:6881/udp
restart: always
J'ai donc créé le script suivant d'après la doc :
#!/usr/bin/env sh
docker run -it --rm \
-e PHP_MEMORY_LIMIT=128M \
-e PHP_TIMEZONE=Europe/Paris \
--network npm-proxy \
--link gormson-rutorrent:rtorrent \
-v /home/gormson/data:/downloads \
-v /run/rtorrent-gormson:/run/rtorrent \
magicalex/rtorrent-cleaner $*
Mais quand je lance :
./rtorrent-cleaner -vvv report rtorrent:8080
J'ai droit à l'erreur suivante :
Box Requirements Checker
========================
> Using PHP 7.3.31
> PHP is using the following php.ini file:
/etc/php7/php.ini
> Checking Box requirements:
✔ The application requires the version ">=5.5.9" or greater.
✔ The application requires the extension "zlib".
✔ The application requires the extension "json".
✔ The application requires the extension "iconv".
✔ The application requires the extension "xmlrpc".
[OK] Your system is ready to run the application.
┌───────────────────────────┐
│ rtorrent-cleaner - report │
└───────────────────────────┘
PHP Warning: count(): Parameter must be an array or an object that implements Countable in phar:///usr/local/bin/rtorrent-cleaner/src/Cleaner.php on line 32
In Finder.php line 589:
[Symfony\Component\Finder\Exception\DirectoryNotFoundException]
The "" directory does not exist.
Exception trace:
at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/finder/Finder.php:589
Symfony\Component\Finder\Finder->in() at phar:///usr/local/bin/rtorrent-cleaner/src/Cleaner.php:98
Rtcleaner\Cleaner->getFileListFromDisk() at phar:///usr/local/bin/rtorrent-cleaner/src/Cleaner.php:26
Rtcleaner\Cleaner->__construct() at phar:///usr/local/bin/rtorrent-cleaner/src/Command/ReportCommand.php:58
Rtcleaner\Command\ReportCommand->execute() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Command/Command.php:259
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:920
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:266
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:142
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/rtorrent-cleaner/src/Console/Application.php:35
Rtcleaner\Console\Application->run() at phar:///usr/local/bin/rtorrent-cleaner/bin/rtorrent-cleaner:12
require() at /usr/local/bin/rtorrent-cleaner:17
report [-f|--exclude-files EXCLUDE-FILES] [-d|--exclude-dirs EXCLUDE-DIRS] [-l|--log [LOG]] [--] <scgi>
et si j'utilise la méthode avec le .sock
Box Requirements Checker
Using PHP 7.3.31
PHP is using the following php.ini file:
/etc/php7/php.ini
Checking Box requirements:
✔ The application requires the version ">=5.5.9" or greater.
✔ The application requires the extension "zlib".
✔ The application requires the extension "json".
✔ The application requires the extension "iconv".
✔ The application requires the extension "xmlrpc".
[OK] Your system is ready to run the application.
┌────────────────────────
│ rtorrent-cleaner - report │
└────────────────────────────
In Rtorrent.php line 21:
[Exception]
Unable to connect to rtorrent. No such file or directory (code: 2)
Exception trace:
at phar:///usr/local/bin/rtorrent-cleaner/src/Rtorrent.php:21
Rtcleaner\Rtorrent->call() at phar:///usr/local/bin/rtorrent-cleaner/src/Cleaner.php:31
Rtcleaner\Cleaner->getFileListFromRtorrent() at phar:///usr/local/bin/rtorrent-cleaner/src/Cleaner.php:26
Rtcleaner\Cleaner->__construct() at phar:///usr/local/bin/rtorrent-cleaner/src/Command/ReportCommand.php:58
Rtcleaner\Command\ReportCommand->execute() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Command/Command.php:259
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:920
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:266
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/rtorrent-cleaner/vendor/symfony/console/Application.php:142
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/rtorrent-cleaner/src/Console/Application.php:35
Rtcleaner\Console\Application->run() at phar:///usr/local/bin/rtorrent-cleaner/bin/rtorrent-cleaner:12
require() at /usr/local/bin/rtorrent-cleaner:17
report [-f|--exclude-files EXCLUDE-FILES] [-d|--exclude-dirs EXCLUDE-DIRS] [-l|--log [LOG]] [--] <scgi>
donc si quelqu'un à une idée je suis preneur, parce que je tourne en rond complet 🤣