Opened 7 years ago

Closed 3 years ago

#728 closed defect (fixed)

UPnP lib NPE

Reported by: decoli Owned by: zzz
Priority: minor Milestone: 0.9.28
Component: router/transport Version: 0.9.2
Keywords: UPnP NPE Cc:
Parent Tickets: Sensitive: no

Description (last modified by zzz)

Router doesn't start with message "Network: ERR-Client Manager I2CP Error - check logs"

I2p router worked perfectly yesterday, but now it's not. I tried to completely remove ~/i2p and ~/.i2p directories and reinstall i2p, but it still doesn't work.

7654 port is not used on my PC according to netstat output.
OS: Debian Squeeze for amd64

From http://127.0.0.1:7657/logs.jsp:

I2P version: 0.9.2-0
Java version: Sun Microsystems Inc. 1.6.0_18 (OpenJDK Runtime Environment 1.6.0_18-b18)
Wrapper version: 3.5.15
Server version: 6.1.26
Servlet version: Jasper JSP 2.1 Engine
Platform: Linux amd64 2.6.32-5-amd64
Processor: Core 2 (Conroe) (core2)
Jbigi: Native BigInteger library libjbigi-linux-core2_64.so loaded from resource
Encoding: UTF-8
Charset: UTF-8

Critical logs:

    06.10.12 15:25:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:24:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:23:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:22:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:19:52 CRIT [JobQueue 1/1] net.i2p.router.JobQueueRunner : Error processing job [Boot Communication System] on thread 0: null
         java.lang.NullPointerException
         at org.cybergarage.upnp.ssdp.HTTPUSocket.getLocalAddress(HTTPUSocket.java:95)
         at org.cybergarage.upnp.ssdp.SSDPSearchResponseSocketList.post(SSDPSearchResponseSocketList.java:152)
         at org.cybergarage.upnp.ControlPoint.search(ControlPoint.java:550)
         at org.cybergarage.upnp.ControlPoint.start(ControlPoint.java:884)
         at org.cybergarage.upnp.ControlPoint.start(ControlPoint.java:914)
         at net.i2p.router.transport.UPnP.runPlugin(UPnP.java:99)
         at net.i2p.router.transport.UPnPManager.start(UPnPManager.java:66)
         at net.i2p.router.transport.TransportManager.startListening(TransportManager.java:148)
         at net.i2p.router.transport.CommSystemFacadeImpl.startup(CommSystemFacadeImpl.java:55)
         at net.i2p.router.startup.BootCommSystemJob.runJob(BootCommSystemJob.java:43)
         at net.i2p.router.JobQueueRunner.runCurrentJob(JobQueueRunner.java:138)
         at net.i2p.router.JobQueueRunner.run(JobQueueRunner.java:79)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)

Router logs:

    06.10.12 15:25:51 ERROR [rtup tunnels] i2p.i2ptunnel.TunnelController: Error starting the tunnel I2P HTTPS Proxy
         java.lang.IllegalArgumentException: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:434)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:25:51 ERROR [rtup tunnels] net.i2p.i2ptunnel.I2PTunnel : [7]: Invalid I2PTunnel configuration to create a CONNECT client connecting to the router at 127.0.0.1:7654 and listening on 127.0.0.1:4445
         java.lang.IllegalArgumentException: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:434)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:25:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:25:51 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:25:31 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:25:31 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:25:11 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:25:11 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:51 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:24:51 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:147)
         at net.i2p.i2ptunnel.I2PTunnelHTTPClientBase.<init>(I2PTunnelHTTPClientBase.java:64)
         at net.i2p.i2ptunnel.I2PTunnelConnectClient.<init>(I2PTunnelConnectClient.java:116)
         at net.i2p.i2ptunnel.I2PTunnel.runConnectClient(I2PTunnel.java:861)
         at net.i2p.i2ptunnel.TunnelController.startConnectClient(TunnelController.java:226)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:183)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:51 ERROR [rtup tunnels] i2p.i2ptunnel.TunnelController: Error starting the tunnel pop3.postman.i2p
         java.lang.IllegalArgumentException: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:434)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:51 ERROR [rtup tunnels] net.i2p.i2ptunnel.I2PTunnel : [6]: Invalid I2PTunnel configuration to create an HTTP Proxy connecting to the router at 127.0.0.1:7654 and listening on 127.0.0.1:7660
         java.lang.IllegalArgumentException: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:434)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:51 CRIT [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, giving up
    06.10.12 15:24:51 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:31 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:24:31 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:24:11 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:24:11 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)
    06.10.12 15:23:51 ERROR [rtup tunnels] .i2ptunnel.I2PTunnelClientBase: Unable to connect to the router at 127.0.0.1:7654 and build tunnels for the client, retrying in 20 seconds
    06.10.12 15:23:51 ERROR [rtup tunnels] eaming.I2PSocketManagerFactory: Error creating session for socket manager
         net.i2p.client.I2PSessionException: No manager yet
         at net.i2p.router.client.ClientManagerFacadeImpl.connect(ClientManagerFacadeImpl.java:248)
         at net.i2p.client.I2PSessionImpl.connect(I2PSessionImpl.java:347)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:157)
         at net.i2p.client.streaming.I2PSocketManagerFactory.createManager(I2PSocketManagerFactory.java:81)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:417)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.buildSocketManager(I2PTunnelClientBase.java:372)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:334)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.getSocketManager(I2PTunnelClientBase.java:292)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.verifySocketManager(I2PTunnelClientBase.java:274)
         at net.i2p.i2ptunnel.I2PTunnelClientBase.<init>(I2PTunnelClientBase.java:200)
         at net.i2p.i2ptunnel.I2PTunnelClient.<init>(I2PTunnelClient.java:31)
         at net.i2p.i2ptunnel.I2PTunnel.runClient(I2PTunnel.java:716)
         at net.i2p.i2ptunnel.TunnelController.startClient(TunnelController.java:347)
         at net.i2p.i2ptunnel.TunnelController.doStartTunnel(TunnelController.java:185)
         at net.i2p.i2ptunnel.TunnelController.startTunnel(TunnelController.java:136)
         at net.i2p.i2ptunnel.TunnelControllerGroup$StartControllers.run(TunnelControllerGroup.java:137)
         at java.lang.Thread.run(Thread.java:636)
         at net.i2p.util.I2PThread.run(I2PThread.java:85)

Subtickets

#1681: UPnP start failed - port conflict?; UPnP error, please reportclosedzzz

Change History (12)

comment:1 Changed 7 years ago by zzz

Component: router/generalrouter/transport
Description: modified (diff)
Owner: set to zzz

Thanks for the report.
The error is in UPnP. It's _possibly_ caused by there being no network connection when I2P is started. Please let us know if that is the case.

If the problem persists (and it sounds like it is), the workaround is to disable UPnP. You may do this on /confignet in the router console and restarting (if the console comes up), or setting i2p.upnp.enable=false in ~/.i2p/router.config while the router is not running.

comment:2 Changed 7 years ago by zzz

As a workaround, NPE caught in UPnPManager in 0.9.2-11. Root cause TBD.

comment:3 Changed 7 years ago by decoli

Router starts normally when I disable UPnP. The network connection was up when I tried before. I think this problem could be caused by the topology of my local network. Here it is:

<My PC> ——— <router> ——— <modem> ——— <Internet>

On router: UPnP disabled; NAT disabled
On modem: UPnP enabled; NAT enabled; outbound facing ports configured

comment:4 Changed 7 years ago by zzz

Glad the workaround works!

More info on your setup please… you have a different subnet on each side of the hardware router, e.g. 192.168.1.x and 192.168.2.x? Both are private address spaces?

comment:5 Changed 7 years ago by decoli

Router works as DHCP server and on both sides of it is the same subnet with 192.168.0.x private address space. My computer and modem have static IPs.

comment:6 Changed 7 years ago by zzz

Really? Same subnet on both sides of the router? How does that work at all? That sounds like a misconfiguration to me.

Can you please try making the two subnets different and see if that fixes the problem?

comment:7 Changed 7 years ago by decoli

No, I can't, because my router has defective firmware and there is no open firmware which supports it.
By default this router works with enabled NAT. I2p router didn't work behind two NATs (the first on router and the second on modem) using UPnP. Configuring outbound facing ports twice was difficult for me. So, topology with single address space, static IP for modem and static routing on hardware router is the best I can configure.
In addition, torrent clients works perfectly with both configurations.

comment:8 Changed 7 years ago by zzz

Milestone: 0.9.3
Priority: majorminor
Summary: Router doesn't start with message "Network: ERR-Client Manager I2CP Error - check logs"UPnP lib NPE

While the workaround was successful, leaving open until we report the bug to cybergarage and get a fix. I wonder if they have a ticket system somewhere?

comment:9 Changed 7 years ago by str4d

Keywords: UPnP NPE added

comment:10 Changed 5 years ago by zzz

UPnP lib updated to latest in 0.9.18-6. Unlikely to fix this. We should proceed with a local fix.

comment:11 Changed 4 years ago by zzz

Add a subticket #1681.

comment:12 Changed 3 years ago by zzz

Milestone: 0.9.28
Resolution: fixed
Status: newclosed

See #1681 for resolution

Note: See TracTickets for help on using tickets.