Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Lien incorrect avec rTorrent. #15

Closed
Rathorian opened this issue Jun 20, 2018 · 62 comments
Closed

Lien incorrect avec rTorrent. #15

Rathorian opened this issue Jun 20, 2018 · 62 comments

Comments

@Rathorian
Copy link

Rathorian commented Jun 20, 2018

Salut,

Je viens de mettre à jour l'image avec ta dernière version et ça ne fonctionne plus.

Dans ruTorrent j'ai :

Lien incorrect avec rTorrent. Vérifier qu'il est bien en cours d'exécution. Vérifier la configuration de $scgi_port et de $scgi_host dans config.php et scgi_port dans le fichier de configuration de rTorrent.

Et dans les logs :

2018-06-20 19:00:02,118 INFO supervisord started with pid 2951
2018-06-20 19:00:03,120 INFO spawned: 'rtorrent' with pid 2954
2018-06-20 19:00:03,121 INFO spawned: 'nginx' with pid 2955
2018-06-20 19:00:03,122 INFO spawned: 'php7' with pid 2956
2018-06-20 19:00:03,661 INFO exited: rtorrent (exit status 255; not expected)
2018-06-20 19:00:04,775 INFO spawned: 'rtorrent' with pid 2968
2018-06-20 19:00:04,776 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-06-20 19:00:04,776 INFO success: php7 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-06-20 19:00:04,822 INFO exited: rtorrent (exit status 255; not expected)
2018-06-20 19:00:06,826 INFO spawned: 'rtorrent' with pid 2970
2018-06-20 19:00:06,866 INFO exited: rtorrent (exit status 255; not expected)
2018-06-20 19:00:09,871 INFO spawned: 'rtorrent' with pid 2972
2018-06-20 19:00:09,914 INFO exited: rtorrent (exit status 255; not expected)
2018-06-20 19:00:10,916 INFO gave up: rtorrent entered FATAL state, too many start retries too quickly

Tu es peut-être au courant ?

@zerpex
Copy link

zerpex commented Jun 20, 2018

+1, je suis revenu sur l'image précédente qui fonctionne en attendant !

@xataz
Copy link
Owner

xataz commented Jun 21, 2018

Sans doute le changement de version de libtorrent et rtorrent, j'essai de regarder ça au plus vite.

@Rathorian
Copy link
Author

Ok sa marche. Merci

@xataz
Copy link
Owner

xataz commented Jun 21, 2018

Normalement c'est bon, j'ai testé rapidement, suite changement de version, y'a des clés dans le rtorrent.rc qui ont changer de nom.

@Rathorian
Copy link
Author

Personnellement j'ai toujours le même problème avec la même erreur !

@Chiledog
Copy link

@Rathorian moi aussi. :(

@zerpex
Copy link

zerpex commented Jun 21, 2018

Je n'ai pas le temps de tester avant demain, mais vu l'explication donnée par @xataz , il me parait logique qu'il faille supprimer la conf de rtorrent pour que l'image la régénère. Non ?

@Rathorian
Copy link
Author

Rathorian commented Jun 21, 2018

@zerpex En regardant un peu plus attentivement, tu as raison. Il y a bien des changements à effectuer sur le fichier ".rtorrent.rc". Après, je ne vois aucune modification de plus nécessaire.

J'ai modifié à la main dans mon volume le fichier ".rtorrent.rc" et malgré tout, le bug est toujours présent.

@Rathorian
Copy link
Author

En fait, quand on regarde le wiki de rakshasa pour le .rtorrent.rc , il y a beaucoup plus de changement....

https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template

@xataz
Copy link
Owner

xataz commented Jun 22, 2018

@zerpex Exactement, car je ne la supprime pas au démarrage, au cas où des modifications avaient été apporté à la main.

@Rathorian
Copy link
Author

@xataz J'ai pourtant modifié :

use_udp_trackers = yes
peer_exchange = no

PAR

trackers.use_udp.set = yes
protocol.pex.set = no

Mais comme je le disais, j'ai toujours la même erreur et rtorrent ne démarre pas.

@xataz
Copy link
Owner

xataz commented Jun 22, 2018

Active les logs avec :

log.open_file = "rtorrent", "/tmp/rtorrent.log"
log.add_output = "info", "rtorrent"
log.add_output = "critical", "rtorrent"
log.add_output = "error", "rtorrent"
log.add_output = "warn", "rtorrent"
log.add_output = "notice", "rtorrent"
log.add_output = "debug", "rtorrent"

Et regarde dedans, tu as peux être une autre clé qui merdouille

@Rathorian
Copy link
Author

Voilà l'erreur que j'ai récupérer dans le conteneur :

rtorrent: Error in option file: ~/.rtorrent.rc:22: Command "system.method.set_key" does not exist.

Pourtant dans mon .rtorrent.rc j'ai bien :

system.method.set_key=event.download.finished,filebot,"execute={/usr/local/bin/postdl,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
system.method.set_key=event.download.erased,filebot_cleaner,"execute=/usr/local/bin/postrm"

@xataz
Copy link
Owner

xataz commented Jun 22, 2018

Ah merde, j'ai pas testé la version avec filebot, system.method.set_key ne doit plus exister maintenant

@xataz
Copy link
Owner

xataz commented Jun 22, 2018

Apparemment maintenant, c'est juste method.set_key

@Rathorian
Copy link
Author

Rathorian commented Jun 22, 2018

@xataz Oui je viens de faire des tests.

Il faut supprimer les :

system.method.set_key

Et les remplacer par

method.set_key

Et après ça fonctionne au poil, du moins, à première vue ;)

Tu as vu les changements : https://github.com/rakshasa/rtorrent/wiki/CONFIG-Template
Car il y aurait d'avantage de modification à faire...

@xataz
Copy link
Owner

xataz commented Jun 22, 2018

@Rathorian
Copy link
Author

Rathorian commented Jun 22, 2018

Pas mal du tout effectivement :)

Du coup, je te tiendrais au courant des tests de mon côté quand tu auras fait la mise à jour !

@Rathorian
Copy link
Author

Salut @xataz

Je reviens vers toi pour savoir quand tu penses pouvoir mettre à jour l'image ?
Rien ne presse vraiment, c'est juste histoire de savoir.

Merci

@Rathorian
Copy link
Author

Avec la configuration actuelle, même si rtorrent se lance, filebot ne fonctionne pas.
Il n'a pas été lancé après le téléchargement d'un film et n'apparait donc pas sur Emby.

@xataz
Copy link
Owner

xataz commented Jun 25, 2018

J'ai testé le fichier sed fourni, mais je sais pas pourquoi, il ne semble pas fonctionner.
Faut que je regarde de plus prêt, car il se peut que le format de method.set_key ait changé

@Rathorian
Copy link
Author

J'ai aussi testé vite fait ce week-end le fichier sed, et comme toi, ça n'a pas fonctionné.

J'avais pas pensé au format de method.set_key
C'est fort possible, oui.

@Rathorian
Copy link
Author

Rathorian commented Jun 25, 2018

Alors après quelques recherches, j'ai modifié le .rtorrent.rc avec les nouvelles commandes. Par contre, je n'ai pas le temps d'essayer ce soir, donc je le propose ici, si quelqu'un veut faire un test :

network.scgi.open_port = 0.0.0.0:5000

encoding.add = utf8
network.port_range.set = 49196-49196
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /data/torrents
session.path.set = /data/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no

throttle.min_peers.normal.set = 1
throttle.max_peers.normal.set = 100
throttle.min_peers.seed.set = 1
throttle.max_peers.seed.set = 50
throttle.max_uploads.set = 15

execute2 = {sh,-c,/usr/bin/php /nginx/www/html/torrent/php/initplugins.php torrent &}
schedule2 = watch_directory,1,1,"load_start=/data/.watch/*.torrent"
schedule2 = untied_directory,5,5,"stop_untied=/data/.watch/*.torrent"
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M

method.set_key=event.download.finished,filebot,"execute2={/usr/local/bin/postdl,$d.base_path=,$d.name=,$d.custom1=}"
method.set_key=event.download.erased,filebot_cleaner,"execute2=/usr/local/bin/postrm"

@PixiBixi
Copy link
Contributor

Lancez rtorrent à la mano dans le container et vous verrez qu'il y a des logs d'erreur concernant method.set_key

@Rathorian
Copy link
Author

Justement, ça a été corrigé normalement !

@PixiBixi
Copy link
Contributor

euh pas avec ton .rtorrent.rc que je vois en tout cas

@silkyclouds
Copy link

problème toujours présent après avoir modifié system.method.set.key en method.set.key.

Je repasse a la version précédente...

Tu nous préviens quand le souci sera réglé?

@Rathorian
Copy link
Author

@silkyclouds Essai avec mon .rtorrent.rc si tu as la possibilité :

network.scgi.open_port = 0.0.0.0:5000

encoding.add = utf8
network.port_range.set = 49196-49196
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /data/torrents
session.path.set = /data/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no

throttle.min_peers.normal.set = 1
throttle.max_peers.normal.set = 100
throttle.min_peers.seed.set = 1
throttle.max_peers.seed.set = 50
throttle.max_uploads.set = 15

execute2 = {sh,-c,/usr/bin/php /nginx/www/html/torrent/php/initplugins.php torrent &}
schedule2 = watch_directory,1,1,"load_start=/data/.watch/*.torrent"
schedule2 = untied_directory,5,5,"stop_untied=/data/.watch/*.torrent"
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M

method.set_key=event.download.finished,filebot,"execute2={/usr/local/bin/postdl,$d.base_path=,$d.name=,$d.custom1=}"
method.set_key=event.download.erased,filebot_cleaner,"execute2=/usr/local/bin/postrm"

@silkyclouds
Copy link

silkyclouds commented Jun 26, 2018

nope. J'ai copié collé l'intégralité de ton .rtorrent.rc et pareil.

2018-06-26 17:49:28,583 INFO spawned: 'rtorrent' with pid 134
2018-06-26 17:49:29,586 INFO success: rtorrent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-06-26 17:49:30,070 INFO exited: rtorrent (exit status 255; not expected)

et encore et encore jusqu'au crash.

@silkyclouds
Copy link

on a avancé la dessus ? @Rathorian , tu as mis ton fichier de conf à jour ? tu as pu tester ?
Sinon, seul moyen est de downgrade ? car bon avoir rtorrent down depuis des jours c'est pas super... ;)

@silkyclouds
Copy link

ça tourne, sauf que pour je ne sais quelle raison maintenant il ne voit plus du tout mes torrents en seed. pourtant c'est bien le bon dossier qui est renseigné...

@xataz une mise a jour qui règle le souci prévue ?

@xataz
Copy link
Owner

xataz commented Jul 3, 2018

Désolé, j'ai laissé pas mal trainer, j'essai de corriger ce soir au plus tard.

@silkyclouds
Copy link

silkyclouds commented Jul 3, 2018 via email

@silkyclouds
Copy link

une petite build en vue ? :)

@xataz
Copy link
Owner

xataz commented Jul 5, 2018

Bon, j'ai plus d'erreur, j'ai un script de migration automatique, mais par contre, je n'arrive pas a faire fonctionner filebot, je ne comprends pas trop pourquoi

@xataz
Copy link
Owner

xataz commented Jul 5, 2018

J'ai l'impression que l'event n'est pas pris en compte, y'a rien dans les logs qui l'indique.

@xataz
Copy link
Owner

xataz commented Jul 5, 2018

Normalement c'est bon, à tester

@xataz
Copy link
Owner

xataz commented Jul 5, 2018

C'est good, ma migration à fonctionné. Par contre si vous avez des configurations perso, il faudra les remettres, l'ancien fichier .rtorrent.rc est sauvegardé en .rtorrent.rc.old

@silkyclouds
Copy link

silkyclouds commented Jul 5, 2018 via email

@Rathorian
Copy link
Author

Je test aussi ce soir.

En tout cas merci à toi @xataz car moi j'ai fait mon maximum avec mes compétences.

@silkyclouds
Copy link

2018-07-05 07:48:21,164 INFO spawned: 'rtorrent' with pid 115
2018-07-05 07:48:21,500 INFO exited: rtorrent (exit status 255; not expected)
2018-07-05 07:48:24,504 INFO spawned: 'rtorrent' with pid 119
2018-07-05 07:48:24,853 INFO exited: rtorrent (exit status 255; not expected)
2018-07-05 07:48:25,854 INFO gave up: rtorrent entered FATAL state, too many start retries too quickly

nope...marche pas ici.

voilà l'image en question:

xataz/rtorrent-rutorrent latest-filebot f52114f6e774 5 hours ago 427MB

@Rathorian
Copy link
Author

Rathorian commented Jul 5, 2018

Tu auras peut-être des logs un peu plus intéressants dans /tmp/rtorrent.log

@xataz
Copy link
Owner

xataz commented Jul 5, 2018

J'ai justement rajouter des logs, normalement y'a tout dans le /tmp/rtorrent.log

@PixiBixi
Copy link
Contributor

PixiBixi commented Jul 5, 2018

Petit soucis bizarre

Si un .rtorrent.rc est existant, impossible de relancer le container, je suis bloqué sur l'étape de génération de conf

=INF= 2018/07/05-16:07:36 Generate configuration ...

Par contre, si aucun .rtorrent.rc existe, tout est ok

@silkyclouds
Copy link

silkyclouds commented Jul 5, 2018 via email

@Rathorian
Copy link
Author

Je viens de tester en supprimant avant la mise à jour mon dossier config de rtorrent vu que les autres ont des soucis avec une conf existante. Donc aucun problème de mon côté, fonctionne parfaitement et filebot aussi.

Juste une petite erreur dans les logs sur un chown de /var/lib/nginx/run :

Creating sdbx ... done
=INF= 2018/07/05-20:26:05 Create user torrent ...
=SUC= 2018/07/05-20:26:05 Create user torrent done
=INF= 2018/07/05-20:26:05 Generate configuration ...
=SUC= 2018/07/05-20:26:05 Generate configuration done
=INF= 2018/07/05-20:26:05 Install plowshare ...
=SUC= 2018/07/05-20:26:08 Install plowshare done
=INF= 2018/07/05-20:26:08 Apply permissions ...
chown: /var/lib/nginx/run: No such file or directory
=SUC= 2018/07/05-20:26:10 Apply permissions done
2018-07-05 20:26:11,531 INFO supervisord started with pid 2978
2018-07-05 20:26:12,533 INFO spawned: 'rtorrent' with pid 2981
2018-07-05 20:26:12,536 INFO spawned: 'nginx' with pid 2982
2018-07-05 20:26:12,538 INFO spawned: 'php7' with pid 2983
2018-07-05 20:26:13,901 INFO success: rtorrent entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-07-05 20:26:13,901 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-07-05 20:26:13,901 INFO success: php7 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

@silkyclouds
Copy link

bon les gars pour moi ça donne ça:

  1. je stop rtorrent
  2. j'efface le .rtorrent.conf qui se trouve dans /opt/docker/media/.rtorrent/rtorrent/
  3. je relance rtorrent et je check les logs :

=INF= 2018/07/06-10:52:07 Generate configuration ...
sed: /home/torrent/.rtorrent.rc: No such file or directory
/usr/local/bin/startup: line 165: can't create /home/torrent/.rtorrent.rc: Symbolic link loop
/usr/local/bin/startup: line 165: can't create /home/torrent/.rtorrent.rc: Symbolic link loop
=SUC= 2018/07/06-10:52:07 Generate configuration done

ensuite en faisant un ls dans /opt/docker/media/.rtorrent/rtorrent/ je vois effectivement un symlink:

.rtorrent.rc -> /config/rtorrent/.rtorrent.rc
qui plus est, ce fichier appartient dès lors a root...

pr contre impossible de cat ce fichier :

cat: .rtorrent.rc: No such file or directory

et j'ai pas de dossier /config du tout si ce n'est dans le conteneur lui meme...

Je suis paumé la...quelqu'un peut me dire comment régler ce souci ?

@Rathorian
Copy link
Author

Tu pourrais nous montrer les lignes qui correspondent à tes volumes persistants dans le docker-compose.yml ?

Tu as 2 volumes persistants à indiquer normalement. Les dossiers /data et /config. La ou tu as monté ton /config, tu devrais voir de mémoire 4 dossiers, rtorrent, rutorrent, custom_themes, et custom_plugins. Ce sont ses répertoires qu'il faut supprimer.

@silkyclouds
Copy link

silkyclouds commented Jul 6, 2018 via email

@xataz
Copy link
Owner

xataz commented Jul 6, 2018

@silkyclouds J'ai apporté une petite modif, pourrais tu refaire un essai dans 5min (le temps que l'image ce build)

@silkyclouds
Copy link

silkyclouds commented Jul 6, 2018 via email

@xataz
Copy link
Owner

xataz commented Jul 6, 2018

Yep

@xataz
Copy link
Owner

xataz commented Jul 6, 2018

@Rathorian Par contre pour le chown je ne comprends pas pourquoi il y a cette erreur, car j'ai une boucle qui liste tout les dossiers et fichiers où faut modifier le owner, donc normalement il devrait exister

@silkyclouds
Copy link

silkyclouds commented Jul 6, 2018 via email

@xataz
Copy link
Owner

xataz commented Jul 6, 2018

L'application des permissions peut être assez long si tu utilises overlayfs pour la gestion des layers.

Si tu n'as pas de configuration custom, je t'invites à supprimer le fichier .rtorrent/rtorrent/.rtorrent.rc

@silkyclouds
Copy link

silkyclouds commented Jul 6, 2018 via email

@Rathorian
Copy link
Author

@xataz Je vois pas trop non plus, en même temps je peux pas me pencher dessus, je suis sur mon smartphone avec aucun PC à disposition.

Mais ce problème existe pour moi depuis l'ancienne version déjà, j'avais juste pas indiqué le problème avant.

@Rathorian
Copy link
Author

Rathorian commented Jul 6, 2018

@xataz Je viens de regarder pour le problème du chown.
Voici ce que retourne un "ls -all /var/lib/nginx" dans le conteneur :

bash-4.4# ls -all /var/lib/nginx/
total 16
drwxr-x---    1 torrent  torrent         42 Jul  5 04:46 .
drwxr-xr-x    1 root     root            44 Jul  5 04:46 ..
drwxr-sr-x    1 torrent  torrent         36 Jul  5 04:46 html
lrwxrwxrwx    1 root     root            14 Jul  5 04:46 logs -> /var/log/nginx
lrwxrwxrwx    1 root     root            22 Jul  5 04:46 modules -> /usr/lib/nginx/modules
lrwxrwxrwx    1 root     root            10 Jul  5 04:46 run -> /run/nginx
lrwxrwxrwx    1 root     root            14 Jul  5 04:46 tmp -> /var/tmp/nginx

/run/nginx est en rouge et il n'y a rien dans ce répertoire....

@Rathorian
Copy link
Author

Problème réglé.

Merci Xataz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants