[freenet-support] Re: Cannot configure (0.5)
Dashkal writes: > > Ok, strange thing > > This time I didn't kill freenet when it appeared to hang when asking me > to enter the port number. > > When I took the time to start this email, it eventually unhanged itself > and started to work. --snip for over-zealous gmane filter-- > 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource > INFO: Optimized native BigInteger library > 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource > <<<--- This is where it hung --->>> > 62734 > listenPort [19934] Don't disclose your listenPort, since it can be used to identify your node with some degree of confidence :) I'd change it now if I were you. --snip for over-zealous gmane filter-- > tail -f freenet.log <<<--- My input to that $ prompt above --->>> > Apr 10, 2006 4:30:52 PM (freenet.node.Main, main, NORMAL): Starting > Freenet (Fred) 0.5 node, build #5106 on JVM Blackdown Java-Linux > Team:Java HotSpot(TM) Client VM:Blackdown-1.4.2-03 > <<<--- Hangs here --->>> > Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): loading node > keys: node > Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): Creating node > keys: node > <<<--- SNIP --->>> > > From there it appears to work. I am able to connect to the proxy port > as normal. Yeah, this is actually a known issue with 0.5 but it's supposed to be kind of fixed. I thought it was only people like with weird setups (blackdown 1.4.1 / sparc64) who still saw huge pauses. A similar problem seems to be affecting 0.7 judging by recent posts. What's actually happening is that the Yarrow PRNG is blocking whilst waiting for enough entropy to be collected, so that it can generate somewhat "strong" psuedo-random numbers (important to stop attacks on encryption.) If you have a true hardware RNG e.g. a VIA C7 processor or dedicated crypto card then IIRC it just reads /dev/hwrandom and off it goes, but most people don't. So it has to read /dev/urandom or /dev/random (forget which) which generate psuedo-random numbers based on unpredictable 'entropy' activity like mouse movements, keypresses, and hard disk activity. Therefore you should be able to speed it up by opening a text editor and mashing the keyboard randomly, waving the mouse around, doing disk searches etc. This is a bit daft but there's no real way around it, short of everyone buying proper RNGs. Other crypto apps like GPG have the same problem at key generation time and likewise ask you to type randomly / wave the mouse around. Bob
[freenet-support] Re: Cannot configure (0.5)
Dashkal <[EMAIL PROTECTED]> writes: > > Ok, strange thing > > This time I didn't kill freenet when it appeared to hang when asking me > to enter the port number. > > When I took the time to start this email, it eventually unhanged itself > and started to work. --snip for over-zealous gmane filter-- > 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource > INFO: Optimized native BigInteger library > 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource > <<<--- This is where it hung --->>> > 62734 > listenPort [19934] Don't disclose your listenPort, since it can be used to identify your node with some degree of confidence :) I'd change it now if I were you. --snip for over-zealous gmane filter-- > tail -f freenet.log <<<--- My input to that $ prompt above --->>> > Apr 10, 2006 4:30:52 PM (freenet.node.Main, main, NORMAL): Starting > Freenet (Fred) 0.5 node, build #5106 on JVM Blackdown Java-Linux > Team:Java HotSpot(TM) Client VM:Blackdown-1.4.2-03 > <<<--- Hangs here --->>> > Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): loading node > keys: node > Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): Creating node > keys: node > <<<--- SNIP --->>> > > From there it appears to work. I am able to connect to the proxy port > as normal. Yeah, this is actually a known issue with 0.5 but it's supposed to be kind of fixed. I thought it was only people like with weird setups (blackdown 1.4.1 / sparc64) who still saw huge pauses. A similar problem seems to be affecting 0.7 judging by recent posts. What's actually happening is that the Yarrow PRNG is blocking whilst waiting for enough entropy to be collected, so that it can generate somewhat "strong" psuedo-random numbers (important to stop attacks on encryption.) If you have a true hardware RNG e.g. a VIA C7 processor or dedicated crypto card then IIRC it just reads /dev/hwrandom and off it goes, but most people don't. So it has to read /dev/urandom or /dev/random (forget which) which generate psuedo-random numbers based on unpredictable 'entropy' activity like mouse movements, keypresses, and hard disk activity. Therefore you should be able to speed it up by opening a text editor and mashing the keyboard randomly, waving the mouse around, doing disk searches etc. This is a bit daft but there's no real way around it, short of everyone buying proper RNGs. Other crypto apps like GPG have the same problem at key generation time and likewise ask you to type randomly / wave the mouse around. Bob ___ Support mailing list Support@freenetproject.org http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]
[freenet-support] Re: Cannot configure (0.5)
Ok, strange thing This time I didn't kill freenet when it appeared to hang when asking me to enter the port number. When I took the time to start this email, it eventually unhanged itself and started to work. I seem to have uncovered a different problem then I thought. This freezing happens in both config and during startup. I did change one thing in the mean time, I am now using a different version of java: freenet at localhost ~/freenet $ java -version java version "1.4.2-03" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode) this time emerged properly. However, the hanging happened exactly as it with 1.5 did so I doubt it was java itself that was hanging *boggle* I can confirm this somewhat in that I am able to run other java programs without a hang. If anybody is interested, here is the log of what I did: freenet at localhost ~/freenet $ ./start-freenet.sh Detected freenet-ext.jar Detected freenet.jar It appears that this is your first time running Freenet. You should read the README file as it contains important instructions and advice. First we must generate a freenet.conf file. I will now run Freenet in configure mode, and it will ask you a number of questions. If you don't understand the question, hitting enter without typing anything will go with the default which is likely to be the right thing. Freenet Configuration Running in simple mode. Some preferences will be skipped. You can choose the default preferences by just hitting Setting: listenPort The port to listen for incoming FNP (Freenet Node Protocol) connections on. os.arch = i386 Loading native... Attempting to load freenet/support/CPUInformation/libjcpuid-x86-linux.so Written to /tmp/jcpuid23945lib.tmp: 55692 INFO: Native CPUID library 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource INFO: Optimized native BigInteger library 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource <<<--- This is where it hung --->>> 62734 listenPort [19934] Setting: seedFile <<<--- SNIP --->>> Sun java detected. Sun Java 1.4.2 detected. Starting Freenet now: Command line: java -Xmx128m -XX:MaxDirectMemorySize=128m freenet.node.Main Done freenet at localhost ~/freenet $ os.arch = i386 Loading native... Attempting to load freenet/support/CPUInformation/libjcpuid-x86-linux.so Written to /tmp/jcpuid52314lib.tmp: 55692 INFO: Native CPUID library 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource INFO: Optimized native BigInteger library 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource tail -f freenet.log <<<--- My input to that $ prompt above --->>> Apr 10, 2006 4:30:52 PM (freenet.node.Main, main, NORMAL): Starting Freenet (Fred) 0.5 node, build #5106 on JVM Blackdown Java-Linux Team:Java HotSpot(TM) Client VM:Blackdown-1.4.2-03 <<<--- Hangs here --->>> Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): loading node keys: node Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): Creating node keys: node <<<--- SNIP --->>> From there it appears to work. I am able to connect to the proxy port as normal.
Re: [freenet-support] Re: Cannot configure (0.5)
Ok, strange thing This time I didn't kill freenet when it appeared to hang when asking me to enter the port number. When I took the time to start this email, it eventually unhanged itself and started to work. I seem to have uncovered a different problem then I thought. This freezing happens in both config and during startup. I did change one thing in the mean time, I am now using a different version of java: [EMAIL PROTECTED] ~/freenet $ java -version java version "1.4.2-03" Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-03) Java HotSpot(TM) Client VM (build Blackdown-1.4.2-03, mixed mode) this time emerged properly. However, the hanging happened exactly as it with 1.5 did so I doubt it was java itself that was hanging *boggle* I can confirm this somewhat in that I am able to run other java programs without a hang. If anybody is interested, here is the log of what I did: [EMAIL PROTECTED] ~/freenet $ ./start-freenet.sh Detected freenet-ext.jar Detected freenet.jar It appears that this is your first time running Freenet. You should read the README file as it contains important instructions and advice. First we must generate a freenet.conf file. I will now run Freenet in configure mode, and it will ask you a number of questions. If you don't understand the question, hitting enter without typing anything will go with the default which is likely to be the right thing. Freenet Configuration Running in simple mode. Some preferences will be skipped. You can choose the default preferences by just hitting Setting: listenPort The port to listen for incoming FNP (Freenet Node Protocol) connections on. os.arch = i386 Loading native... Attempting to load freenet/support/CPUInformation/libjcpuid-x86-linux.so Written to /tmp/jcpuid23945lib.tmp: 55692 INFO: Native CPUID library 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource INFO: Optimized native BigInteger library 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource <<<--- This is where it hung --->>> 62734 listenPort [19934] Setting: seedFile <<<--- SNIP --->>> Sun java detected. Sun Java 1.4.2 detected. Starting Freenet now: Command line: java -Xmx128m -XX:MaxDirectMemorySize=128m freenet.node.Main Done [EMAIL PROTECTED] ~/freenet $ os.arch = i386 Loading native... Attempting to load freenet/support/CPUInformation/libjcpuid-x86-linux.so Written to /tmp/jcpuid52314lib.tmp: 55692 INFO: Native CPUID library 'freenet/support/CPUInformation/libjcpuid-x86-linux.so' loaded from resource INFO: Optimized native BigInteger library 'net/i2p/util/libjbigi-linux-athlon.so' loaded from resource tail -f freenet.log <<<--- My input to that $ prompt above --->>> Apr 10, 2006 4:30:52 PM (freenet.node.Main, main, NORMAL): Starting Freenet (Fred) 0.5 node, build #5106 on JVM Blackdown Java-Linux Team:Java HotSpot(TM) Client VM:Blackdown-1.4.2-03 <<<--- Hangs here --->>> Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): loading node keys: node Apr 10, 2006 4:33:35 PM (freenet.node.Main, main, NORMAL): Creating node keys: node <<<--- SNIP --->>> From there it appears to work. I am able to connect to the proxy port as normal. ___ Support mailing list Support@freenetproject.org http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]
[freenet-support] Re: Cannot configure (0.5)
Bob wrote: > What does "java -version" at a console output? My guess would be that you need > to use Gentoo's java-config tool (http://www.gentoo.org/doc/en/java.xml) to > select this as the user and/or system VM. Unlikely, I didn't install java at all under gentoo java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) I simply added /opt/jdk1.5.0_06/bin to my path (and set JAVA_HOME to /opt/jdk1.5.0_06) I didn't install java because I didn't want the added heacache of having multiple versions of java on my system at once, and gentoo hard-masked java 5, so installing the version I wanted using the os was out of the question. > Hmm, maybe. A default install on windows makes a freenet.ini something like > the > below. Thank you but I should have specified. I am looking for a 0.5 freenet.conf
Re: [freenet-support] Re: Cannot configure (0.5)
Bob wrote: What does "java -version" at a console output? My guess would be that you need to use Gentoo's java-config tool (http://www.gentoo.org/doc/en/java.xml) to select this as the user and/or system VM. Unlikely, I didn't install java at all under gentoo java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) I simply added /opt/jdk1.5.0_06/bin to my path (and set JAVA_HOME to /opt/jdk1.5.0_06) I didn't install java because I didn't want the added heacache of having multiple versions of java on my system at once, and gentoo hard-masked java 5, so installing the version I wanted using the os was out of the question. Hmm, maybe. A default install on windows makes a freenet.ini something like the below. Thank you but I should have specified. I am looking for a 0.5 freenet.conf ___ Support mailing list Support@freenetproject.org http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]