aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: OSDirectory e file di log  (Read 10299 times)

maxione

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
OSDirectory e file di log
« on: December 21, 2008, 05:28:43 PM »

Ho installato dal repo di Vollstrecker, amule SVN per Debian.
Ho configurato amule.conf con la direttiva:
Code: [Select]
OSDirectory=/home/amule/
e ho editato il file /etc/init.d/amule per fargli leggere amule.conf nella giusta directory:
Code: [Select]
CONFIG_PATH=/home/amule/
su $USER -c "$DAEMON -f -c $CONFIG_PATH"

amuled e amuleweb partono correttamente.

Però facendo:
Code: [Select]
less /home/amule/logfiletrovo le seguenti righe:
Code: [Select]
Logger.cpp(275): Error: can't open file '/home/user/.aMule/logfile' (error 2: No such file or directory)
CFile.cpp(140): CFile: Error when opening file (/home/user/.aMule/clients.met): No such file or directory
ClientCreditsList.cpp(188): Credits: Failed to create creditfile

Sbaglio io qualcosa o è un bug ?
« Last Edit: December 21, 2008, 05:32:44 PM by maxione »
Logged

maxione

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: OSDirectory e file di log
« Reply #1 on: December 22, 2008, 07:24:11 PM »

Nessuna risposta ?
Non fatemi spostare la cartella di amule nella home.... ;)

Stavo anche sbirciando nei file sorgenti (CFile.cpp otherFunctions.cpp), ma non conosco le wxWidgets, non riesco a capire se c'è un errore lì.
Logged

maxione

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: OSDirectory e file di log
« Reply #2 on: December 28, 2008, 09:45:05 PM »

Non cercare nei sorgenti di aMule, sei fuori strada.

A me sembra un problema di autorizzazioni.  L'utente identificato da  $USER, con cui stai lanciando amule(d) tramite lo script di sistema, non è in grado di accedere in lettura/scrittura alla directory /home/amule.


Avevo già verificato questa evenienza:
risulta che /home/amule/ e tutti i file contenuti in essa sono di proprietà dell' utente identificato da $USER, e i permessi sono di lettura / scrittura.

D' altronde nel log trovo:
Code: [Select]
Logger.cpp(275): Error: can't open file '/home/user/.aMule/logfile' (error 2: No such file or directory)
CFile.cpp(140): CFile: Error when opening file (/home/user/.aMule/clients.met): No such file or directory
ClientCreditsList.cpp(188): Credits: Failed to create creditfile
cioè amuled va a cercare nella directory sbagliata.
Logged

maxione

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: OSDirectory e file di log
« Reply #3 on: December 29, 2008, 09:25:20 PM »

Allora, partiamo da una situazione con i demoni amuled e amuleweb stoppati:
Code: [Select]
maladiez@hyper:~$ whoami
maladiez
maladiez@hyper:~$ ps aux | grep amule
maladiez  9466  0.0  0.1   3616   744 pts/0    R+   21:16   0:00 grep amule
maladiez@hyper:~$ amuled -f -c /home/amule/
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
HTTP download thread started
ListenSocket: Ok.
amuled: forking to background - see you
maladiez@hyper:~$ ps aux | grep amule
maladiez  9470 33.0  3.3  54404 17284 ?        Ssl  21:16   0:04 amuled -f -c /home/amule/
maladiez  9472  0.3  1.0  12936  5628 ?        S    21:16   0:00 amuleweb --amule-config-file=/home/amule/amule.conf
maladiez  9478  0.0  0.1   3616   748 pts/0    R+   21:16   0:00 grep amule

Ecco il logfile di amule:
Quote
maladiez@hyper:/home/amule$ cat logfile
2008-12-29 21:17:50: ClientCreditsList.cpp(168): Il file dei crediti è stato caricato, 0 client conosciuti
2008-12-29 21:17:50: IPFilter.cpp(109): Carico i filtri IP da 'ipfilter.dat' e 'ipfilter_static.dat'.
2008-12-29 21:17:50: IPFilter.cpp(335): Caricati 0 intervalli di IP da '/home/amule/ipfilter.dat'. 0 righe non valide sono state scartate.
2008-12-29 21:17:50: IPFilter.cpp(335): Caricati 0 intervalli di IP da '/home/amule/ipfilter_static.dat'. 0 righe non valide sono state scartate.
2008-12-29 21:17:50: ExternalConn.cpp(174): *** TCP socket (ECServer) listening on 0.0.0.0:4712
2008-12-29 21:17:50: MuleUDPSocket.cpp(81): Created Server UDP-Socket at port xyz
2008-12-29 21:17:50: MuleUDPSocket.cpp(81): Created Client UDP-Socket at port uvw
2008-12-29 21:17:50: ServerList.cpp(83): Caricamento file server.met: /home/amule/server.met
2008-12-29 21:17:50: ServerList.cpp(168): Trovati 237 server nel file server.met
2008-12-29 21:17:50: DownloadQueue.cpp(169): Non è stato trovato alcun file incompleto
2008-12-29 21:17:51: SharedFileList.cpp(358): Trovati 7 file condivisi conosciuti, 442 sconosciuti
2008-12-29 21:17:51: amule.cpp(805): Connessione in corso
2008-12-29 21:17:51: ServerSocket.cpp(621): Servers: Trying to connect
2008-12-29 21:17:51: ServerSocket.cpp(754): Connessione a xxxxxxxxxxxxxxxx
2008-12-29 21:17:51: RoutingZone.cpp(208): Letti 199 contatti Kad
2008-12-29 21:17:52: amule.cpp(851): web server in esecuzione su pid 9516
2008-12-29 21:17:52: ExternalConn.cpp(234): Accettata nuova connessione esterna
2008-12-29 21:17:52: Connesso alla rete Kad (firewalled)
2008-12-29 21:17:52: ServerConnect.cpp(190): Connesso a xxxxxxxxxxxxxxxxx
2008-12-29 21:17:52: ExternalConn.cpp(268): Connessione al client: aMuleweb SVN
2008-12-29 21:17:52: ExternalConn.cpp(323): Accesso consentito.
2008-12-29 21:17:52: ServerSocket.cpp(621): Servers: Trying to connect
2008-12-29 21:17:52: ServerSocket.cpp(754): Connessione a xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:17:52: ServerConnect.cpp(190): Connesso a xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:17:52: ServerSocket.cpp(277): ATTENZIONE: xxxxxxxxxxxx You have a lowid. Please review your network config and/or your settings.
2008-12-29 21:17:52: Messaggio del server: server version xxxxxxxxxxxxxxxx
2008-12-29 21:17:53: ServerSocket.cpp(409): Servers: Connected
2008-12-29 21:17:53: ServerConnect.cpp(263): Connessione stabilita con: xxxxxxxxxxx
2008-12-29 21:17:53: Connesso a xxxxxxxxxxxxxxx con ID alto
2008-12-29 21:17:53: ServerSocket.cpp(417): Il nuovo clientID è xxxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:17:53: Messaggio del server: server version 17.xxxxxxxxxx
2008-12-29 21:18:09: Connesso alla rete Kad (ok)
2008-12-29 21:18:12: ThreadTasks.cpp(157): Hasher: IO exception while hashing file: SafeIO::IOFailure: Error reading from file: Input/output error
2008-12-29 21:18:30: ThreadTasks.cpp(157): Hasher: IO exception while hashing file: SafeIO::IOFailure: Error reading from file: Input/output error
Dopodichè vado nella pagina web (porta 4711) e clicco "log" in alto a destra:
Quote
2008-12-29 21:18:52: Logger.cpp(275): Error: can't open file '/home/maladiez/.aMule/logfile' (error 2: No such file or directory)

E subito a seguire compaiono anche i seguenti messaggi:
Quote
2008-12-29 21:23:29: Logger.cpp(275): Error: can't open file '/home/maladiez/.aMule/logfile' (error 2: No such file or directory)
2008-12-29 21:23:47: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known2_64.met): No such file or directory
2008-12-29 21:23:47: SHAHashSet.cpp(642): SHAHashSet: Failed to save HashSet: opening met file failed!
2008-12-29 21:23:47: ThreadTasks.cpp(187): Hasher: Warning, failed to save AICH hashset for file: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:23:47: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known.met): No such file or directory
2008-12-29 21:23:48: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known2_64.met): No such file or directory
2008-12-29 21:23:48: SHAHashSet.cpp(642): SHAHashSet: Failed to save HashSet: opening met file failed!
2008-12-29 21:23:48: ThreadTasks.cpp(187): Hasher: Warning, failed to save AICH hashset for file: xxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:24:05: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known2_64.met): No such file or directory
2008-12-29 21:24:05: SHAHashSet.cpp(642): SHAHashSet: Failed to save HashSet: opening met file failed!
2008-12-29 21:24:05: ThreadTasks.cpp(187): Hasher: Warning, failed to save AICH hashset for file: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2008-12-29 21:24:05: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known.met): No such file or directory
2008-12-29 21:24:07: CFile.cpp(140): CFile: Error when opening file (/home/maladiez/.aMule/known2_64.met): No such file or directory
2008-12-29 21:24:07: SHAHashSet.cpp(642): SHAHashSet: Failed to save HashSet: opening met file failed!
e così via per tutti i file condivisi.
Quindi ancora una volta cerca in /home/maladiez/.aMule/ invece che in /home/amule  ???
« Last Edit: December 29, 2008, 09:29:58 PM by maxione »
Logged

maxione

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
Re: OSDirectory e file di log
« Reply #4 on: December 31, 2008, 02:59:00 PM »

Ti ringrazio per il supporto !!
A volte mi rendo conto di non spiegarmi bene perchè scrivo sempre molto velocemente ..................

Ora provo a scrivere nella sezione inglese (se mi spiego male in italiano, chissà che uscirà fuori  ;D)
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: OSDirectory e file di log
« Reply #5 on: December 31, 2008, 05:05:42 PM »

È ancora migliore leggerlo in inglese che una traduzione di Babelfish.  ;)

(Traduzione di Babelfish, spiacenti)
Logged
concordia cum veritate