Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#803 closed enhancement (not a bug)

Fail to start the console in Windows 7 64bit

Reported by: amarsianin Owned by:
Priority: major Milestone:
Component: wrapper Version: 0.9.3
Keywords: windows permissions Cc: amarsianin@…
Parent Tickets: Sensitive: no

Description

Peace of log:

03.12.12 00:26:12 ERROR 1/1? p.router.transport.UPnPManager: UPnP start failed - port conflict?
03.12.12 00:26:12 CRIT 1/1? ter.transport.ntcp.EventPumper?: Error opening the NTCP selector
java.io.IOException: Unable to establish loopback connection

at sun.nio.ch.PipeImpl?$Initializer.run(Unknown Source)
at sun.nio.ch.PipeImpl?$Initializer.run(Unknown Source)
at java.security.AccessController?.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl?.<init>(Unknown Source) …

I tested with two machines and the same wi-fi router.
Same error. I have completely no idea what's goin' on.

Neither admin account nor turning off the firewall service including
Windows firewall helps.

I attach the logs from the i2p router and wrapper.

Also neither of removing ::1, in clients.config, uncommenting lines on ipv4 in wrapper.config, forwarding all the necessary ports on the wi-fi router solves the problem.

In log there are so many failures so I can't regonize what is the actual reason.

Would be nice to have some explanation on this situation.

OS is Windows 7 64bit home basic, router Speedport 723v.

Subtickets

Attachments (1)

log-router-0.txt (5.8 KB) - added by amarsianin 7 years ago.
Router log

Download all attachments as: .zip

Change History (9)

Changed 7 years ago by amarsianin

Attachment: log-router-0.txt added

Router log

comment:1 Changed 7 years ago by amarsianin

Here is wrapper.log

2012/12/02 14:28:20 | I2P Service service installed.
2012/12/02 14:28:20 | Starting the I2P Service service…
2012/12/02 14:28:25 | Waiting to start…
2012/12/02 14:28:30 | I2P Service started.
2012/12/02 15:28:32 | —> Wrapper Started as Console
2012/12/02 15:28:32 | Java Service Wrapper Community Edition 32-bit 3.5.15
2012/12/02 15:28:32 | Copyright © 1999-2012 Tanuki Software, Ltd. All Rights Reserved.
2012/12/02 15:28:32 | http://wrapper.tanukisoftware.com
2012/12/02 15:28:32 |
2012/12/02 15:28:33 | Launching a JVM…
2012/12/02 15:28:33 | WrapperManager?: Initializing…
2012/12/02 15:28:33 | Starting I2P 0.9.3-0
2012/12/02 15:28:33 | INFO: Native CPUID library jcpuid-x86-windows loaded from file
2012/12/02 15:28:33 | INFO: Locally optimized native BigInteger? library loaded from file
2012/12/02 15:28:34 | Reseed start
2012/12/02 15:28:34 | Reseeding from https://cowpuncher.drollette.com/netdb/
2012/12/02 15:28:34 | INFO: Jetty 6.1.26 logging to I2P logs using class org.mortbay.jetty.Server
2012/12/02 20:15:48 | I2P Service service removed.
2012/12/02 21:15:05 | I2P Service service installed.
2012/12/02 21:15:05 | Starting the I2P Service service…
2012/12/02 21:15:10 | Waiting to start…
2012/12/02 21:15:12 | I2P Service started.
2012/12/02 21:33:58 | —> Wrapper Started as Console
2012/12/02 21:33:58 | Java Service Wrapper Community Edition 64-bit 3.5.15
2012/12/02 21:33:58 | Copyright © 1999-2012 Tanuki Software, Ltd. All Rights Reserved.
2012/12/02 21:33:58 | http://wrapper.tanukisoftware.com
2012/12/02 21:33:58 |


2012/12/02 22:03:58 | Launching a JVM…
2012/12/02 22:03:58 | WrapperManager?: Initializing…
2012/12/02 22:03:58 | Starting I2P 0.9.3-0
2012/12/02 22:03:59 | INFO: Native CPUID library jcpuid-x86-windows loaded from file
2012/12/02 22:03:59 | INFO: Locally optimized native BigInteger? library loaded from file
2012/12/02 22:04:00 | INFO: Jetty 6.1.26 logging to I2P logs using class org.mortbay.jetty.Server
2012/12/02 22:04:00 | Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException?: Permission denied: listen failed
2012/12/02 22:04:00 | You may ignore this warning if the console is still available at http://localhost:7657
2012/12/02 22:04:00 | Unable to bind routerconsole to any address on port 7657
2012/12/02 22:04:27 | CRIT 1/1? ter.transport.ntcp.EventPumper?: Error opening the NTCP selector
2012/12/02 22:04:27 | java.io.IOException: Unable to establish loopback connection
2012/12/02 22:04:27 | at sun.nio.ch.PipeImpl?$Initializer.run(Unknown Source)
2012/12/02 22:04:27 | at sun.nio.ch.PipeImpl?$Initializer.run(Unknown Source)
2012/12/02 22:04:27 | at java.security.AccessController?.doPrivileged(Native Method)
2012/12/02 22:04:27 | at sun.nio.ch.PipeImpl?.<init>(Unknown Source)
2012/12/02 22:04:27 | at sun.nio.ch.SelectorProviderImpl?.openPipe(Unknown Source)
2012/12/02 22:04:27 | at java.nio.channels.Pipe.open(Unknown Source)
2012/12/02 22:04:27 | at sun.nio.ch.WindowsSelectorImpl?.<init>(Unknown Source)
2012/12/02 22:04:27 | at sun.nio.ch.WindowsSelectorProvider?.openSelector(Unknown Source)
2012/12/02 22:04:27 | at java.nio.channels.Selector.open(Unknown Source)
2012/12/02 22:04:27 | at net.i2p.router.transport.ntcp.EventPumper?.startPumping(EventPumper?.java:113)
2012/12/02 22:04:27 | at net.i2p.router.transport.ntcp.NTCPTransport.startIt(NTCPTransport.java:491)
2012/12/02 22:04:27 | at net.i2p.router.transport.ntcp.NTCPTransport.startListening(NTCPTransport.java:459)
2012/12/02 22:04:27 | at net.i2p.router.transport.TransportManager?.startListening(TransportManager?.java:152)
2012/12/02 22:04:27 | at net.i2p.router.transport.CommSystemFacadeImpl?.startup(CommSystemFacadeImpl?.java:55)
2012/12/02 22:04:27 | at net.i2p.router.startup.BootCommSystemJob?.runJob(BootCommSystemJob?.java:43)
2012/12/02 22:04:27 | at net.i2p.router.JobQueueRunner?.runCurrentJob(JobQueueRunner?.java:138)
2012/12/02 22:04:27 | at net.i2p.router.JobQueueRunner?.run(JobQueueRunner?.java:79)
2012/12/02 22:04:27 | at java.lang.Thread.run(Unknown Source)
2012/12/02 22:04:27 | at net.i2p.util.I2PThread.run(I2PThread.java:85)
2012/12/02 22:04:27 | Caused by: java.net.SocketException?: Permission denied: listen


comment:2 Changed 7 years ago by zzz

It looks like you don't have a 127.0.0.1 IP address. Perhaps you are set up for IPv6 only? If you don't have the 127.0.0.1 IPv4 loopback address a lot of stuff is going to break, we really aren't set up for IPv6-only boxes. Or some other strange problem. Sorry, don't know enough about Windows to tell you how to diagnose it further.

comment:3 Changed 7 years ago by amarsianin

I do have the loopback address and a lot of stuff works, including privoxy and tor which use it.
My router isnt IPv6-only. Moreover I switched IPv6 off.
It cant be a "strange" problem on two different laptops. It is some issue
related either to I2P or to the Speedport. But what it cant be if every necessary ports are open? If I face this problem, likely others who would want to support I2P will have either. Or is having a nix-system a prerequisite for using I2P?

comment:4 Changed 7 years ago by zzz

The majority of our users are on Windows.

It's not related to the Speedport or UPnP at all. And it's not fatal if UPnP doesn't work. But these errors:

Unable to bind routerconsole to 127.0.0.1 port 7657: java.net.SocketException: Permission denied: listen failed
CRIT 1/1? ter.transport.ntcp.EventPumper?: Error opening the NTCP selector
Caused by: java.net.SocketException?: Permission denied: listen

is fatal.

Apparently, it's not an IPv4/IPv6 problem, but a problem with opening listening sockets. ("Permission denied: listen") Which we need to do for the console, for receiving incoming connections from other i2p routers, etc.

I'm not familiar with Windows permissions, but it seems your user is not allowed to listen on a socket? Some sort of super-restricted firewall setting or virus prevention or something? Or it's denying java in particular?

comment:5 Changed 6 years ago by amarsianin

Cc: amarsianin@… added
Type: defectenhancement

The problem was solved by installing JDK 1.6. With JDK 1.7 doesn"t work.

comment:6 Changed 6 years ago by str4d

Keywords: windows permissions added; No loopback connection removed
Milestone: 0.9.4

comment:7 Changed 6 years ago by zzz

Resolution: not a bug
Status: newclosed

I'm assuming it was some problem with your JDK 7 installation or Windows permissions settings.

And we have plenty of users with JDK 7. If there's actually something we need to do differently. please reopen the ticket with additional information.

If it is a permissions issue, perhaps it could be helped by a fix for #912. Or maybe not.

comment:8 Changed 6 years ago by zzz

Correction, in the above comment I meant ticket #741, not #912.

Note: See TracTickets for help on using tickets.