Opened 6 years ago

Closed 6 years ago

#1002 closed defect (fixed)

i2p Router fails at launch

Reported by: VDO_RT Owned by:
Priority: major Milestone: 0.9.8
Component: router/general Version: 0.9.7.1
Keywords: Cc: zab@…
Parent Tickets: Sensitive: no

Description

I have tried the standard installer and i2p successfully installs but the router will not start. I get "WARNING: I2P service may have failed to start"

When I try a manual install via Terminal I get this error:

i2pinstall_0.9.7.1.jar: line 1: PK: command not found
i2pinstall_0.9.7.1.jar: line 2?N?:: command not found
i2pinstall_0.9.7.1.jar: line 10: syntax error near unexpected token `?d?G?U??E?U??N??'
i2pinstall_0.9.7.1.jar: line 10: `?\????u"d?ݥ+?X(?d?G?U??E?U??N??;??)??#.ި$'

When I run the console I get this:

Running I2P Service…
wrapper | —> Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 64-bit 3.5.19
wrapper | Copyright © 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.com
wrapper |
wrapper | Unable to write to the configured log file: /Users//Library/Application? Support/i2p/wrapper.log (Permission denied)
wrapper | Falling back to the default file in the current working directory: wrapper.log
wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
wrapper | Launching a JVM…
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)
wrapper |
wrapper | ————————————————————————————————————
wrapper | Advice:
wrapper | Usually when the Wrapper fails to start the JVM process, it is because
wrapper | of a problem with the value of the configured Java command. Currently:
wrapper | wrapper.java.command=java
wrapper | Please make sure that the PATH or any other referenced environment
wrapper | variables are correctly defined for the current environment.
wrapper | ————————————————————————————————————
wrapper |
wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
wrapper | Launching a JVM…
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)
wrapper |
wrapper | ————————————————————————————————————
wrapper | Advice:
wrapper | Usually when the Wrapper fails to start the JVM process, it is because
wrapper | of a problem with the value of the configured Java command. Currently:
wrapper | wrapper.java.command=java
wrapper | Please make sure that the PATH or any other referenced environment
wrapper | variables are correctly defined for the current environment.
wrapper | ————————————————————————————————————
wrapper |
wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
wrapper | Launching a JVM…
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)
wrapper |
wrapper | ————————————————————————————————————
wrapper | Advice:
wrapper | Usually when the Wrapper fails to start the JVM process, it is because
wrapper | of a problem with the value of the configured Java command. Currently:
wrapper | wrapper.java.command=java
wrapper | Please make sure that the PATH or any other referenced environment
wrapper | variables are correctly defined for the current environment.
wrapper | ————————————————————————————————————
wrapper |
wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
wrapper | Launching a JVM…
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)
wrapper |
wrapper | ————————————————————————————————————
wrapper | Advice:
wrapper | Usually when the Wrapper fails to start the JVM process, it is because
wrapper | of a problem with the value of the configured Java command. Currently:
wrapper | wrapper.java.command=java
wrapper | Please make sure that the PATH or any other referenced environment
wrapper | variables are correctly defined for the current environment.
wrapper | ————————————————————————————————————
wrapper |
wrapper | The configured wrapper.java.command could not be found, attempting to launch anyway: java
wrapper | Launching a JVM…
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)
wrapper |
wrapper | ————————————————————————————————————
wrapper | Advice:
wrapper | Usually when the Wrapper fails to start the JVM process, it is because
wrapper | of a problem with the value of the configured Java command. Currently:
wrapper | wrapper.java.command=java
wrapper | Please make sure that the PATH or any other referenced environment
wrapper | variables are correctly defined for the current environment.
wrapper | ————————————————————————————————————
wrapper |
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | ←- Wrapper Stopped
Failed to load the wrapper

The most likely reason is that a supported version of the java
wrapper is not available in the I2P installation package for your
platform. It may be possible to manually download and install
a compatible wrapper for your system.
See http://www.i2p2.de/manualwrapper for hints.

In the meantime, you may start I2P by running the script
/Applications/i2p/runplain.sh

I have tried to runplain.sh and no luck so far.

Subtickets

Change History (7)

comment:1 Changed 6 years ago by killyourtv

i2pinstall_0.9.7.1.jar: line 1: PK: command not found
i2pinstall_0.9.7.1.jar: line 2?N?:: command not found
i2pinstall_0.9.7.1.jar: line 10: syntax error near unexpected token `?d?G?U??E?U??N??'
i2pinstall_0.9.7.1.jar: line 10: `?\????u"d?ݥ+?X(?d?G?U??E?U??N??;??)??#.ި$'

What command are you typing to install from the console? It should be "java -jar i2pinstall_0.9.7.1.jar"

wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)

It can't find the JVM?

What do you get when typing

java -version 

at a terminal?

comment:2 in reply to:  1 Changed 6 years ago by VDO_RT

Replying to killyourtv:

i2pinstall_0.9.7.1.jar: line 1: PK: command not found
i2pinstall_0.9.7.1.jar: line 2?N?:: command not found
i2pinstall_0.9.7.1.jar: line 10: syntax error near unexpected token `?d?G?U??E?U??N??'
i2pinstall_0.9.7.1.jar: line 10: `?\????u"d?ݥ+?X(?d?G?U??E?U??N??;??)??#.ި$'

What command are you typing to install from the console? It should be "java -jar i2pinstall_0.9.7.1.jar"

sudo sh i2pinstall_0.9.7.1.jar

I tried "java -jar i2pinstall_0.9.7.1.jar" but is says -bash: java: command not found. I am on MacOS 10.8.4.

wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
wrapper | Unable to start JVM: No such file or directory (2)

It can't find the JVM?

What do you get when typing

java -version 

at a terminal?

-bash: java: command not found

comment:3 Changed 6 years ago by Zlatin Balevsky

Cc: zab@… added

java should be bundled in every version of OSX. Try the following in a terminal:

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -version

comment:4 in reply to:  3 Changed 6 years ago by VDO_RT

Replying to zab:

java should be bundled in every version of OSX. Try the following in a terminal:

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -version

I get: /System/Library/Frameworks?/JavaVM.framework/Versions/Current/Commands/java -version
-bash: /System/Library/Frameworks?/JavaVM.framework/Versions/Current/Commands/java: No such file or directory

comment:5 Changed 6 years ago by VDO_RT

Just did a Java update directly from Apple. Now when I type java - version I get:

java version "1.6.0_51"
Java™ SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot?™ 64-Bit Server VM (build 20.51-b01-457, mixed mode)

comment:6 in reply to:  5 Changed 6 years ago by VDO_RT

Replying to VDO_RT:

Just did a Java update directly from Apple. Now when I type java - version I get:

java version "1.6.0_51"
Java™ SE Runtime Environment (build 1.6.0_51-b11-457-11M4509)
Java HotSpot?™ 64-Bit Server VM (build 20.51-b01-457, mixed mode)

Now when I start the router from the Terminal I get:

Running I2P as the root user is *not* recommended.
Please edit i2prouter and set the variable RUN_AS_USER.

To run as root anyway, edit i2prouter and set ALLOW_ROOT=true.

So I edited the router. Now when I run I get:

sudo sh i2prouter start
Starting I2P Service. Detected Mac OSX and installed launchd daemon.
Waiting for I2P Service…
.
.
.
running: PID:6956
*:i2p *$ sh i2prouter status
I2P Service is running: PID:6956, Wrapper:STARTED, Java:STARTED

But I still can not connect to localhost.

comment:7 Changed 6 years ago by VDO_RT

Resolution: fixed
Status: newclosed

Deleted i2p after the java update from Apple. Then started the router from the Terminal and we are back in business! Thanks so much for all of your assistance.

Note: See TracTickets for help on using tickets.