Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto - Mldonkey] Problema dopo upgrade .
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Fri Jun 18, 2004 7:15 am    Post subject: [Risolto - Mldonkey] Problema dopo upgrade . Reply with quote

Salve, ho fatto l'upgrade alla versione 2.5.16-r3 di Mldonkey ma il servizio non si avvia più.
Premetto che la versione precedente (non ricordo quale) ha funzionato per mesi senza problemi e solo dopo aver "riemerso" Mldonkey si è presentato il problema.

Code:
root # /etc/init.d/mldonkey start
 * Starting mldonkey...
 * MLDonkey could not be started! Check logfile: /var/log/mldonkey.log
renice: 1002: getpriority: No such process                                [ !! ]

root # cat /var/log/mldonkey.log
Fatal error: exception Unix.Unix_error(1, "mkdir", "/root/.mldonkey")




Non capisco quel
Code:
"mkdir", "/root/.mldonkey"
visto che nella configurazione dovrebbe essere lanciato come utente "p2p".

Se lancio direttamente il daemon mlnet al prompt il servizio si avvia confermato dal fatto che lo trovo in ascolto sulla porta 4000 e in esecuzione con :

Code:
ps aux | grep mlnet


Forse un problema nello script di avvio in /etc/init.d/mldonkey ?

Antonio


----


Last edited by tocas on Sat Jun 19, 2004 7:20 am; edited 1 time in total
Back to top
View user's profile Send private message
sourcez
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 166
Location: Italy

PostPosted: Fri Jun 18, 2004 7:27 am    Post subject: Reply with quote

Prova a rimuovere quella dir! :roll:
_________________
"Tutti pensano a cambiare l’umanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj
Back to top
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Fri Jun 18, 2004 7:51 am    Post subject: Reply with quote

sourcez wrote:
Prova a rimuovere quella dir! :roll:


... è una delle prime cose che ho provato... anche cambiando i permessi.

:cry:
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Fri Jun 18, 2004 7:59 am    Post subject: Reply with quote

Qua c'e' qualcosa ma e' un bug vecchio
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Fri Jun 18, 2004 8:13 am    Post subject: Reply with quote

io non mi meraviglierei troppo del fatto che ti trovi una dir sotto /root: significa che non parte come utente ma come root (infatti gli init script li esegui da root)
Probabilmente lo script non passa a utente in esecuzione.
Puoi postare lo script di init?
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
sourcez
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 166
Location: Italy

PostPosted: Fri Jun 18, 2004 8:24 am    Post subject: Reply with quote

Pare che dalla versione mldonkey-2.5.21-r2 sia stato fatto un cambiamento nell'ebuild poichè le patches venivano applicate in modo sbagliato https://bugs.gentoo.org/show_bug.cgi?id=52032.
In ogni caso prova una versione almeno 2.5.21-r2
_________________
"Tutti pensano a cambiare l’umanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj
Back to top
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Fri Jun 18, 2004 11:32 am    Post subject: Reply with quote

@FonderiaDigitale
Il problema si manifesta anche durante il boot, comunque eccolo:

Code:

#!/sbin/runscript

opts="start stop restart slow fast"

depend() {
        need net
}

start() {
        ebegin "Starting mldonkey"
        if [ ! -d ${BASEDIR}/${SUBDIR} ]
        then
                einfo "Directory ${BASEDIR}/${SUBDIR} not existing, trying to create..."
                su ${USER} -c "mkdir ${BASEDIR}/${SUBDIR}"
                if [ ! -d ${BASEDIR}/${DIR} ]
                then
                        eerror "Directory ${BASEDIR}/${SUBDIR} could not be created!"
                        return 1
                fi
                einfo "...ok!"
        fi
        cd ${BASEDIR}/${SUBDIR}/
        start-stop-daemon --quiet --start -c ${USER}  \
        -x /usr/bin/mlnet &>${LOG} &
        sleep 5
        if ! pgrep -u ${USER} mlnet >/dev/null
        then
                eerror "MLDonkey could not be started! Check logfile: ${LOG}"
        fi
        renice ${NICE} -u ${USER} >/dev/null
        eend $?
}

stop() {
        BASE="http://"
        if [[ -n ${USERNAME} && -n ${PASSWORD} ]]
        then
                BASE=${BASE}${USERNAME}:${PASSWORD}@
        fi
        BASE=${BASE}${SERVER}:${PORT}
        ebegin "Stopping mldonkey - please wait"
        wget --spider ${BASE}/submit?q=close_fds -q
        wget --spider ${BASE}/submit?q=save -q
        wget --spider ${BASE}/submit?q=kill -q
        sleep 10
        start-stop-daemon --oknodo --stop -x /usr/bin/mlnet &>/dev/null
        eend $?
}

restart() {
        svc_stop
        sleep 5
        svc_start
}

slow() {
        ebegin "Reducing bandwidth to ${LOW_DOWN}k/${LOW_UP}k"

        BASE="http://"
        if [[ -n ${USERNAME} && -n ${PASSWORD} ]]
        then
                BASE=${BASE}${USERNAME}:${PASSWORD}@
        fi
        BASE=${BASE}${SERVER}:${PORT}

        wget --spider ${BASE}/submit?q=set+max_hard_download_rate+${LOW_DOWN} -q

        wget --spider ${BASE}/submit?q=set+max_hard_upload_rate+${LOW_UP} -q

        eend $?
}

fast() {
        ebegin "Increasing bandwidth to ${HIGH_DOWN}k/${HIGH_UP}k"

        BASE="http://"
        if [[ -n ${USERNAME} && -n ${PASSWORD} ]]
        then
                BASE=${BASE}${USERNAME}:${PASSWORD}@
        fi
        BASE=${BASE}${SERVER}:${PORT}

        wget --spider ${BASE}/submit?q=set+max_hard_download_rate+${HIGH_DOWN} -q

        wget --spider ${BASE}/submit?q=set+max_hard_upload_rate+${HIGH_UP} -q

        eend $?
}





@sourcez
Ho fatto un rsync anche stamani ma l'ultima versione in portage e sempre la 2.5.16-r3

--------

Ho provato a loggarmi come utente p2p e lanciare direttamente mlnet, il demone si avvia regolarmente collegandosi ai server che avevo inserito nella configurazione della versione precedente ed è possibile gestirlo anche via web.


Antonio


----
Back to top
View user's profile Send private message
tocas
Apprentice
Apprentice


Joined: 01 Jan 2004
Posts: 280
Location: 43°50'-10°27'

PostPosted: Sat Jun 19, 2004 7:18 am    Post subject: Reply with quote

fedeliallalinea wrote:
Qua c'e' qualcosa ma e' un bug vecchio


... non ho ancora approfondito la lettura dello script di avvio ma copiandolo al posto del precedente /etc/init.d/mldonkey adesso funziona di nuovo.

Grazie per il suggerimento :wink: :D :D :D

A questo punto non mi è chiara una cosa...... facendo un aggiornamento di ebuild non dovrebbero essere aggiornati tutti i files compresi script di avvio ?

Antonio
Back to top
View user's profile Send private message
sourcez
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 166
Location: Italy

PostPosted: Sat Jun 19, 2004 12:00 pm    Post subject: Reply with quote

tocas wrote:
Ho fatto un rsync anche stamani ma l'ultima versione in portage e sempre la 2.5.16-r3

Ok...infatti la versione 2.5.21 è ancora marcata unstable, ma a me funziona gregiamente!Per installarla quindi dai un:
Code:
#emerge -C mldonkey
#ACCEPT_KEYWORDS=~x86 emerge net-p2p/mldonkey


tocas wrote:
A questo punto non mi è chiara una cosa...... facendo un aggiornamento di ebuild non dovrebbero essere aggiornati tutti i files compresi script di avvio ?


Certamente...tutto tranne i files di configurazione che dovrai andare ad aggiornare tu tramite il comando:
Code:
#etc-update

_________________
"Tutti pensano a cambiare l’umanità ma nessuno pensa a cambiare se stesso."
Lev Tolstoj
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum