Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 05/06/2009, à 17:01

Hizoka

[resolu] hellanzb se sabote

Bonjour,

Je viens demander conseille au prés de vous smile

J'utilise Hellanzb pour le système de newsgroups, depuis que je suis passé sous jaunty, régulièrement après avoir fini un fichier, il supprime le dossier "daemon.working", de ce fait, il ne peut continuer son travail après ce fichier.

Bien qu'ayant cherché, je n'ai pas vraiment trouvé de cause...

Il m'a semblé que cela était lié aux fichiers ayant besoin d'être renommés avant d'être réparés par par2.

J'ai donc désactivé le système de par2 et unrar automatique.

Mais cela ne semble pas régler le problème puisque la même chose vient de se reproduire sur des fichiers ne nécessitant pas de renommage...

Le système de log ne donne pas d'info...

Quelqu'un a-t-il déjà était confronté à ce problème ?

Suite a ca je me suis fait un script :

#! /bin/bash

function verification()
{
while [[ -n $(ps -e | grep "hellanzb") ]]
do
    if [[ ! -e /home/hizoka/Download/hellanzb/nzb/daemon.working ]]
    then
        killall hellanzb
        hellanzb &
    fi
done

if [[ -z $(ps -e | grep "hellanzb") ]]
then
    hellanzb &
fi

sleep 20

verification
}
verification

Mais malheureusement, le killall ne semble pas fonctionner...

Une solution ?

Merci

EDIT :

#! /bin/bash

function verification()
{
if [[ -n $(ps -e | grep "hellanzb") ]]
then
    if [[ -e /home/hizoka/Download/hellanzb/nzb/daemon.working ]]
    then
        liste1=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.working)
        sleep 5
        liste2=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.working)
        
        if [[ "${liste1}" == "${liste2}" ]]
        then            
            if [[ -z $(ls /home/hizoka/Download/hellanzb/nzb/daemon.queue/) ]]
            then
                killall hellanzb
            else            
                killall hellanzb
                nice -19 hellanzb &
            fi
        fi
    else
        killall hellanzb
        nice -19 hellanzb &
    fi
    
else
    nice -19 hellanzb &
fi

fichier_nzb=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.current)
nom_fichier=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.current | sed "s/.nzb// ; s/^ // ; s/ $//")
liste_dossier=$(find /home/hizoka/Download/hellanzb/done/ -maxdepth 1 -name "*${nom_fichier}*")

if [[ -n ${liste_dossier} && -n ${nom_fichier} && -n ${fichier_nzb} ]]
then
    if [[ $(echo "${liste_dossier}" | wc -l) -ge 2 ]]
    then
        if [[ ! -e "/home/hizoka/Download/hellanzb/done/pb-de-dl" ]]
        then
            mkdir "/home/hizoka/Download/hellanzb/done/pb-de-dl"
        fi
        
        mv "/home/hizoka/Download/hellanzb/nzb/daemon.current/${fichier_nzb}" "/home/hizoka/Download/hellanzb/done/pb-de-dl"
        killall hellanzb
        rm /home/hizoka/Download/hellanzb/nzb/daemon.working/*
    fi
fi

sleep 60

verification
}

if [[ $(ps -e | egrep 'test.sh' | wc -l) -ge 3 ]]
then
    xterm -e "killall test.sh && killall hellanzb"
else
    verification
fi

Avec ce code je n'ai plus de probleme... il suffit de le lancer et c'est ok smile

EDIT : Cela ne semble plus posé de soucis...

Dernière modification par Hizoka (Le 18/12/2011, à 03:17)


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#2 Le 05/06/2009, à 20:13

Hizoka

Re : [resolu] hellanzb se sabote

Encore un plantage...

Il me donne ca dans le log :

2009-06-05 20:11:31,344 tryFinishNZB: finished downloading NZB: XXXXXXXX.XXX
2009-06-05 20:11:31,344 Empty NZB queue: disconnecting hizoka (antiIdle is 0)
2009-06-05 20:11:53,515 hizoka[6] CONNECTION LOST
2009-06-05 20:11:53,516 hizoka[12] CONNECTION LOST
2009-06-05 20:11:53,516 hizoka[8] CONNECTION LOST
2009-06-05 20:11:53,516 hizoka[9] CONNECTION LOST
2009-06-05 20:11:53,516 hizoka[10] CONNECTION LOST
2009-06-05 20:11:53,517 hizoka[11] CONNECTION LOST
2009-06-05 20:11:53,517 hizoka[0] CONNECTION LOST
2009-06-05 20:11:53,518 hizoka[1] CONNECTION LOST
2009-06-05 20:11:53,518 hizoka[13] CONNECTION LOST
2009-06-05 20:11:53,519 hizoka[14] CONNECTION LOST
2009-06-05 20:11:53,519 hizoka[15] CONNECTION LOST
2009-06-05 20:11:53,520 hizoka[16] CONNECTION LOST
2009-06-05 20:11:53,520 hizoka[3] CONNECTION LOST
2009-06-05 20:11:53,520 hizoka[17] CONNECTION LOST
2009-06-05 20:11:53,521 hizoka[18] CONNECTION LOST
2009-06-05 20:11:53,521 hizoka[5] CONNECTION LOST
2009-06-05 20:11:53,521 hizoka[2] CONNECTION LOST
2009-06-05 20:11:53,522 hizoka[19] CONNECTION LOST
2009-06-05 20:11:53,522 hizoka[4] CONNECTION LOST
2009-06-05 20:11:53,522 hizoka[7] CONNECTION LOST
2009-06-05 20:11:53,524 stdinEchoOn - ON

KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#3 Le 05/06/2009, à 20:24

Hizoka

Re : [resolu] hellanzb se sabote

a priori :
- Cela ne vient pas des par2
- Cela ne vient pas de unrar...
- En modifiant mon code :

#! /bin/bash

function verification()
{
if [[ -n $(ps -e | grep "hellanzb") ]]
then
	if [[ -e /home/hizoka/Download/hellanzb/nzb/daemon.working ]]
	then
		liste1=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.working)
		sleep 2
		liste2=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.working)
		
		if [[ "${liste1}" == "${liste2}" ]]
		then			
			if [[ -z $(ls /home/hizoka/Download/hellanzb/nzb/daemon.queue/) ]]
			then
				killall hellanzb
			else			
				killall hellanzb
				hellanzb &
			fi
		fi
	else
		killall hellanzb
		hellanzb &
	fi
	
else
	hellanzb &
fi

sleep 60

verification
}

verification

semble marché...
à confirmer...

En conclusion : impossible de connaitre la cause du bug...


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#4 Le 07/06/2009, à 02:34

Hizoka

Re : [resolu] hellanzb se sabote

autre problème :
sur certains fichiers nzb, ce con le télécharge, recommence, recommence... et je me retrouve avec 5-6 fois le même fichier télécharger...
Je suis obliger de killer hellanzb de virer le nzb en cours, de vider les fichiers télécharger et de relancer hellanzb...

c'est un peu chiant....


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#5 Le 05/07/2009, à 19:59

Hizoka

Re : [resolu] hellanzb se sabote

je remonte le sujet car, j'ai laisser dl un fichier de 4go pendant ce week end....

je reviens, et la... il l'a téléchargé 28 fois...

c'est un chouille embêtant quand même...

je viens d'ajouter cette verification a mon fichier :

fichier_nzb=$(ls /home/hizoka/Download/hellanzb/nzb/daemon.current | sed "s/.nzb//")
liste_dossier=$(find /home/hizoka/Download/hellanzb/done/ -name "*${fichier_nzb}*")

if [[ $(echo "${liste_dossier}" | wc -l) -ge 3 ]]
then
	mkdir /home/hizoka/Download/hellanzb/done/pb-de-dl
	mv "${fichier_nzb}.nzb" /home/hizoka/Download/hellanzb/done/pb-de-dl
	killall hellanzb
	rm /home/hizoka/Download/hellanzb/nzb/daemon.working/*
fi

sachant que par la suite, il regarde si le hellanzb est lancé et le lance si besoin (ce qui est la cas ici).

Il renomme les fichier du style :
fichier nzb : dvd_famille.nzb
dossier de sortie dans done : dvd_famille, dvd_famille_hellanzb_renamed0, dvd_famille_hellanzb_renamed1...

Pensez vous que cela soit suffisant et fonctionnel ?


KDE Neon 64bits
Tous mes softs (MKVExtractorQt, HizoSelect, HizoProgress, Qtesseract, Keneric, Services menus...) sont sur github

Hors ligne

#6 Le 05/07/2009, à 23:55

larotule

Re : [resolu] hellanzb se sabote

salut,

en esperant t'aider un peu

etant un assidu des newsgroups

je le trouve assez complexe ton hellanzb, je saurais pas t'aider specifiquement sur celui ci

mais je peux te conseiller sabnzb qui lui marche a la perfection, gere le ssl etc... tu as une interface web pour organiser tes repertoires, il corrige, decompresse et range les fichiers automatiquement... etc...

c'est une pure merveille


et en plus tu as un depot specifique

http://sabnzbd.wikidot.com/install-ubuntu-repo

smile

Hors ligne