On 6/5/07, Ben Dougall <bend at freenet.co.uk> wrote:
>
> On Tuesday, June 5, 2007, at 03:51  pm, David Sowder wrote:
>
> > I suspect the current real problem is that the node is not starting.
> > Check for a wrapper.log file in directory where Freenet was installed.
> > That should be able to tell us what went wrong.
> >
> > You can verify that Freenet is not running by two methods:
> >
> > ./run.sh status
> >
> > will tell you and
> >
> > netstat -an |egrep -i "tcp.*8888"
> >
> > will show one or more lines of output with LISTEN or LISTENING in them.
>
> Yes, thanks very much for that info -- most helpful (that info should
> be put on/linked to from the welcome.html page that gets included in
> the install, and on the install page, as there's a real lack of info as
> to what to do if connecting to http://127.0.0.1:8888/wizard -- a "what
> to do if you can't connect to that" bit)
>
> 1/tmp>cd /Applications/Freenet/
> 2/Applications/Freenet>./run.sh start
> Starting Freenet 0.7...
> 3/Applications/Freenet>./run.sh status
> Freenet 0.7 is not running.
> 4/Applications/Freenet>netstat -an |egrep -i "tcp.*8888"
> 5/Applications/Freenet>
>
> and I waited a while between it saying Starting Freenet, and me typing
> in the two tests to see if it's running. So it isn't running.
>
> A section of the wrapper.log file follows below. It looks like the
> section I've included below was repeated pretty much exactly the same
> several times in the wrapper.log file. This was from the start of the
> file.
>
> Is this the problematic bit?: " java.security.NoSuchAlgorithmException:
> SHA-256 MessageDigest not available"
>
> If so does this mean that the implementation or version of Java I'm
> using isn't up to the required level? A newer version would solve this?
> Or might it be possible to add the missing bit ("SHA-256
> MessageDigest") without a whole upgrade?
>
> Thanks.
>
>
> STATUS | wrapper  | 2007/06/04 19:43:04 | --> Wrapper Started as Daemon
> STATUS | wrapper  | 2007/06/04 19:43:04 | Launching a JVM...
> INFO   | jvm 1    | 2007/06/04 19:43:06 | Wrapper (Version 3.2.3)
> http://wrapper.tanukisoftware.org
> INFO   | jvm 1    | 2007/06/04 19:43:06 |   Copyright 1999-2006 Tanuki
> Software, Inc.  All Rights Reserved.
> INFO   | jvm 1    | 2007/06/04 19:43:06 |
> INFO   | jvm 1    | 2007/06/04 19:43:07 |   
> INFO   | jvm 1    | 2007/06/04 19:43:07 | Created log files
> INFO   | jvm 1    | 2007/06/04 19:43:07 | freenet.jar built with
> freenet-ext.jar Build #13 r12938
> INFO   | jvm 1    | 2007/06/04 19:43:08 | Detected PowerPC!
> INFO   | jvm 1    | 2007/06/04 19:43:08 | INFO: Optimized native
> BigInteger library 'net/i2p/util/libjbigi-osx-ppc.jnilib' loaded from
> resource
> INFO   | jvm 1    | 2007/06/04 19:43:09 | Initializing Node using
> Freenet Build #1036 r13439 and freenet-ext Build #13 r12938 with "Apple
> Computer, Inc." JVM version 1.4.1_01-24 running on ppc Mac OS X 10.2.8
> INFO   | jvm 1    | 2007/06/04 19:43:11 | FNP port created on
> 0.0.0.0:18227
> INFO   | jvm 1    | 2007/06/04 19:43:11 | Testnet mode DISABLED. You
> may have some level of anonymity. :)
> INFO   | jvm 1    | 2007/06/04 19:43:11 | Note that this version of
> Freenet is still a very early alpha, and may well have numerous bugs
> and design flaws.
> INFO   | jvm 1    | 2007/06/04 19:43:11 | In particular: YOU ARE WIDE
> OPEN TO YOUR IMMEDIATE DARKNET PEERS! They can eavesdrop on your
> requests with relatively little difficulty at present (correlation
> attacks etc).
> INFO   | jvm 1    | 2007/06/04 19:43:13 | Check your JVM settings
> especially the JCE!java.security.NoSuchAlgorithmException: SHA-256
> MessageDigest not available
> INFO   | jvm 1    | 2007/06/04 19:43:13 |
> java.security.NoSuchAlgorithmException: SHA-256 MessageDigest not
> available
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> java.security.Security.getEngineClassName(Security.java:583)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> java.security.Security.getEngineClassName(Security.java:594)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> java.security.Security.getImpl(Security.java:1043)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> java.security.MessageDigest.getInstance(MessageDigest.java:120)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> freenet.crypt.SHA256.getMessageDigest(SHA256.java:368)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> freenet.node.Node.initNodeFileSettings(Node.java:659)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> freenet.node.Node.<init>(Node.java:1010)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> freenet.node.NodeStarter.start(NodeStarter.java:148)
> INFO   | jvm 1    | 2007/06/04 19:43:13 |       at
> org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:278
> 8)
> STATUS | wrapper  | 2007/06/04 19:43:15 | <-- Wrapper Stopped


I'm not sure about this, but from the log it appears to be a problem
with SHA-256.

Looking at http://java.sun.com/j2se/1.4.2/docs/guide/security/  It
seems that SHA-256 might not have been added until version 1.4.2

You may just need to update your Java.  BTW 1.4.1 has a security issue
and minimum 1.4.2 is recommended.

Reply via email to