Page 1 sur 1

[i2p] Fonctionne plus de puis MAJ (résolu)

Publié : lun. 14 oct. 2013, 15:42
par nico88
Bonjour a tous!!

Depuis qu'il y'a eu une grosse mise a jour du systéme l'i2p ne fonctionne plus. j'ai essayé d'installer le derniére version depuis aur, mais ça ne fonctionne toujours pas :mur:

voici le resultat d'execution du daemons obtenu avec systemctl status i2prouter.service

Code : Tout sélectionner

[nico88@localhost ~]$ sudo systemctl start i2prouter.service
[sudo] password for root: 
Job for i2prouter.service failed. See 'systemctl status i2prouter.service' and 'journalctl -xn' for details.
[nico88@localhost ~]$ systemctl status i2prouter.service -l
i2prouter.service - Invisible Internet Project
   Loaded: loaded (/usr/lib/systemd/system/i2prouter.service; disabled)
   Active: failed (Result: resources) since lun. 2013-10-14 15:36:39 CEST; 23s ago
  Process: 5094 ExecStart=/usr/bin/java-service-wrapper /opt/i2p/wrapper.config wrapper.name=i2prouter wrapper.syslog.ident=i2prouter wrapper.java.command=java wrapper.daemonize=TRUE wrapper.pidfile=/run/i2p/i2p.pid wrapper.logfile=/opt/i2p/wrapper.log wrapper.script.version=3.5.17 (code=exited, status=0/SUCCESS)
Je ne vois pas d'ou vient le problémes (version actuel d'i2p : 0.9.5-2)

Merci d'avance a tous pours votre aide :chinois:

Re: [i2p] Fonctionne plus de puis MAJ

Publié : lun. 14 oct. 2013, 17:09
par benjarobin
Peux tu donner les logs associés à ce service ?

Re: [i2p] Fonctionne plus de puis MAJ

Publié : mar. 15 oct. 2013, 13:49
par nico88
Bonjour,
benjarobin a écrit :Peux tu donner les logs associés à ce service ?
Ok pas de probléme :)
Voici le log wrapper.log contenant le démarrage du service i2p:

Code : Tout sélectionner

2013/10/14 15:20:25 | --> Wrapper Started as Daemon
2013/10/14 15:20:25 | Java Service Wrapper Community Edition 64-bit 3.5.21
2013/10/14 15:20:25 |   Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
2013/10/14 15:20:25 |     http://wrapper.tanukisoftware.com
2013/10/14 15:20:25 | 
2013/10/14 15:20:25 | Launching a JVM...
2013/10/14 15:20:25 | WrapperManager: Initializing...
2013/10/14 15:20:26 | Starting I2P 0.9.5-0
2013/10/14 15:20:27 | INFO: Native CPUID library jcpuid-x86-linux loaded from file
2013/10/14 15:20:27 | INFO: Locally optimized native BigInteger library loaded from file
2013/10/14 15:20:27 | INFO: Jetty 6.1.26 logging to I2P logs using class org.mortbay.jetty.Server
2013/10/14 15:20:55 | CRIT  [Addressbook ] .naming.BlockfileNamingService: Corrupt or unreadable database /opt/i2p/.i2p/hostsdb.blockfile, moving to /opt/i2p/.i2p/hostsdb.blockfile.corrupt and creating new database
2013/10/14 15:20:55 | java.io.IOException: Bad db version: 3
2013/10/14 15:20:55 | 	at net.i2p.client.naming.BlockfileNamingService.needsUpgrade(BlockfileNamingService.java:337)
2013/10/14 15:20:55 | 	at net.i2p.client.naming.BlockfileNamingService.initExisting(BlockfileNamingService.java:301)
2013/10/14 15:20:55 | 	at net.i2p.client.naming.BlockfileNamingService.<init>(BlockfileNamingService.java:152)
2013/10/14 15:20:55 | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013/10/14 15:20:55 | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
2013/10/14 15:20:55 | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2013/10/14 15:20:55 | 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
2013/10/14 15:20:55 | 	at net.i2p.client.naming.NamingService.createInstance(NamingService.java:467)
2013/10/14 15:20:55 | 	at net.i2p.I2PAppContext.initializeNamingService(I2PAppContext.java:629)
2013/10/14 15:20:55 | 	at net.i2p.I2PAppContext.namingService(I2PAppContext.java:622)
2013/10/14 15:20:55 | 	at net.i2p.addressbook.DaemonThread.run(DaemonThread.java:57)
2013/10/14 15:21:24 | CRIT  [er (eepsite)] uter.startup.LoadClientAppsJob: Error starting up the client class net.i2p.jetty.JettyStart
2013/10/14 15:21:24 | java.lang.reflect.InvocationTargetException
2013/10/14 15:21:24 | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2013/10/14 15:21:24 | 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
2013/10/14 15:21:24 | 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
2013/10/14 15:21:24 | 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
2013/10/14 15:21:24 | 	at net.i2p.router.startup.LoadClientAppsJob$RunApp.run(LoadClientAppsJob.java:257)
2013/10/14 15:21:24 | 	at java.lang.Thread.run(Thread.java:724)
2013/10/14 15:21:24 | 	at net.i2p.util.I2PThread.run(I2PThread.java:85)
2013/10/14 15:21:24 | Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Server
2013/10/14 15:21:24 | 	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
2013/10/14 15:21:24 | 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
2013/10/14 15:21:24 | 	at java.security.AccessController.doPrivileged(Native Method)
2013/10/14 15:21:24 | 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
2013/10/14 15:21:24 | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2013/10/14 15:21:24 | 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
2013/10/14 15:21:24 | 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2013/10/14 15:21:24 | 	at org.mortbay.util.Loader.loadClass(Loader.java:91)
2013/10/14 15:21:24 | 	at org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:224)
2013/10/14 15:21:24 | 	at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:203)
2013/10/14 15:21:24 | 	at net.i2p.jetty.JettyStart.parseArgs(JettyStart.java:78)
2013/10/14 15:21:24 | 	at net.i2p.jetty.JettyStart.<init>(JettyStart.java:59)
2013/10/14 15:21:24 | 	... 7 more
2013/10/14 15:23:00 | TERM trapped.  Shutting down.
2013/10/14 15:23:00 | CRIT  [r 1 shutdown] net.i2p.router.Router         : Shutting down the router...
2013/10/14 15:23:00 | CRIT  [r 1 shutdown] net.i2p.router.Router         : Starting final shutdown(3)
2013/10/14 15:23:02 | CRIT  [r 1 shutdown] net.i2p.router.Router         : Shutdown(3) complete
2013/10/14 15:23:03 | <-- Wrapper Stopped
2013/10/14 15:36:39 | Unable to write to the configured log directory: /opt/i2p (Permission denied)
2013/10/14 15:36:39 |   The Wrapper may also have problems writing or rolling the log file.
2013/10/14 15:36:39 |   Please make sure that the current user has read/write access.
2013/10/14 15:36:39 | The version of the script (3.5.17) doesn't match the version of this Wrapper (3.5.21). This might cause some problems
2013/10/14 15:36:39 | ERROR: Could not write pid file /run/i2p/i2p.pid: Permission denied
La version du script est différente car j'ai réinstallé l'ancienne version d'i2p car comme je l'avais dit dans mon précedent message cela ne fonctionnait pas.
Pensez vous que c'est a cause de l'erreur "permission denied??, pourquoid c'ette erreur alors que cela fonctionnait niquel avant?? et que je lance le service avec "sudo systemctl start i2prouter.service"

edit: j'avais oublié qu'il a eu une erreur bizarre lors de l'installation :oops:

Code : Tout sélectionner

[2013-10-14 15:17] [PACMAN] Running 'pacman -U i2p-0.9.5-2-any.pkg.tar.xz'
[2013-10-14 15:17] [ALPM-SCRIPTLET] chown: groupe incorrect: « i2p:i2p »
[2013-10-14 15:17] [ALPM-SCRIPTLET] chown: groupe incorrect: « i2p:i2p »
[2013-10-14 15:17] [PACMAN] downgraded i2p (0.9.8-1 -> 0.9.5-2)]
Merci à benjarobin pour ça réponse :chinois:

Re: [i2p] Fonctionne plus de puis MAJ

Publié : mar. 15 oct. 2013, 16:20
par benjarobin
Tu as clairement un problème de droit, après je ne connais pas i2p...

Code : Tout sélectionner

chown: groupe incorrect: « i2p:i2p »
<= Voilà la raison de ton problème

Re: [i2p] Fonctionne plus de puis MAJ

Publié : mar. 15 oct. 2013, 16:51
par nico88
Bonjour,
benjarobin a écrit :Tu as clairement un problème de droit, après je ne connais pas i2p...
chown: groupe incorrect: « i2p:i2p »
<= Voilà la raison de ton problème
Ok c'est donc bien un probléme de droit d'ou les permission denied dans le log de wrapper, comment pourais je faire pour réstituer les bon droits, je suppose qu'il faut réparer le group i2p, le problém c'est l'install qui ma créer les groupes donc dois je désinstaller complétement le programe ainsi que d'effacer le group i2p du fichier /etc/passwd?? (il n'y a pas de group i2p dans /etc/group)

Merci beaucoup pour les réponse de benjarobin :chinois: :copain:

Re: [i2p] Fonctionne plus de puis MAJ

Publié : mar. 15 oct. 2013, 16:57
par benjarobin
Le plus simple (ne connaissant pas i2p) c'est en effet de tout supprimer (utilisateur i2p compris) et de relancer l'installation

Re: [i2p] Fonctionne plus de puis MAJ

Publié : mer. 16 oct. 2013, 14:14
par nico88
Bonjour a tous,

Ca y est mon probléme est enfin résolu, je met dans ce post la solution au probléme au cas ou quelqu'un aurais le même probléme:
étape 1: verifier le fichier /opt/i2p/wrapper.log, si il ya des permission denied sur les fichier /run/i2p/i2p.pid, le repetoire /opt/i2p passer a l'etape 2
étape 2: suprimer le router i2p avec pacman
étape 3: vérifier que votre utilisateur n'utilise plus le group i2p et /etc/passwd et /etc/group ne contiénne plus i2p sinon utiliser les commandes aproprié pour les effacer (gpasswd, groupdel ainsi que userdel)
étape 4: télecharger les derniére version java-service-wrapper et i2p depuis AUR, et les installer
étape 5: reprofitez d'ip :D

Je remercie beaucoup benjarobin qui ma bien aidé a résoudre mon probléme, et que ce post aidera des autres personnes

ps: je ne sais toujour pas pourquoid le group i2p a été éffacé, ceci reste un mystére :dodo: