[freenet-support] How to set ulimit -Hn 65536 on a Debian machine?

2004-06-02 Thread tripolar
I have read Ed's tips below though I am still at a loss as how to add 
ulimit stuff to /etc/profile and /etc/initscript
here is the path to java
/usr/lib/j2re1.4-sun/bin/java
and the path for freenet is
/home/freenet/freenet/./start-freenet.sh
Here is /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ "$PS1" ]; then
 if [ "$BASH" ]; then
   PS1='[EMAIL PROTECTED]:\w\$ '
 else
   if [ "`id -u`" -eq 0 ]; then
 PS1='# '
   else
 PS1='$ '
   fi
 fi
fi
export PATH
#export CLASSPATH=.:/usr/local/j2re1.4.2_04/lib:/usr/local/j2re1.4.2_04/lib
#export JAVA_HOME=/usr/local/j2re1.4.2_04
#export PATH=$PATH:/usr/local/j2re1.4.2_04/bin
umask 022
I have read man initscript and still left scratching my head??
Any help would be appreciated
P.S.- Sorry about tagging this problem on to a different thread about 
searching archives. Didnt realise the ooops until after hitting the send 
button.

Caught a java.io.IOException: Too many open files,
LSL.processConnections failing
java.io.IOException: Too many open files
[...]
When I got this (on Sun 1.4.1_02) I looked with lsof and found 1024 open
file descriptors.
On redhat 9 I put fs.file-max = 65536 in /etc/syscntrl.conf...
I found users still have ulimit -u showing max files 1024, and that
they can't increase it.
After googling a bit, I discovered two approaches (I fixed both)
1)  Change /etc/profile to add  ulimit -Hn 65536
2)  Create /etc/initscript as described in man initscript, including
   ulimit -Hn 65536
Using this approach, I also had to add ulimit -n 65536 to
start-freenet.sh, since I don't want to give every process
a huge default file descriptor limit.
-- Ed Huff
 

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Where is the best place to search freenet-support archives?

2004-06-02 Thread tripolar

I saw the same thing yesterday on my 5032 node using Sun 1.4.2
   

Caught a java.io.IOException: Too many open files,
 

LSL.processConnections failing
 

java.io.IOException: Too many open files
 

[...]
When I got this (on Sun 1.4.1_02) I looked with lsof and found 1024 open
file descriptors.
On redhat 9 I put fs.file-max = 65536 in /etc/syscntrl.conf...
I found users still have ulimit -u showing max files 1024, and that
they can't increase it.
After googling a bit, I discovered two approaches (I fixed both)
1)  Change /etc/profile to add  ulimit -Hn 65536
2)  Create /etc/initscript as described in man initscript, including
   ulimit -Hn 65536
Using this approach, I also had to add ulimit -n 65536 to
start-freenet.sh, since I don't want to give every process
a huge default file descriptor limit.
-- Ed Huff
 

Thanks Ed
H where do I stick "ulimit -Hn 65536" into /etc/profile??
Lets say I run freenet as user "freenet" do I edit /etc/profile and if 
yes what do I put in there or do I edit the profile of user "freenet"?
This is /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
if [ "$PS1" ]; then
 if [ "$BASH" ]; then
   PS1='[EMAIL PROTECTED]:\w\$ '
 else
   if [ "`id -u`" -eq 0 ]; then
 PS1='# '
   else
 PS1='$ '
   fi
 fi
fi
export PATH
#export CLASSPATH=.:/usr/local/j2re1.4.2_04/lib:/usr/local/j2re1.4.2_04/lib
#export JAVA_HOME=/usr/local/j2re1.4.2_04
#export PATH=$PATH:/usr/local/j2re1.4.2_04/bin
umask 022
Also what about:
2)  Create /etc/initscript as described in man initscript, including
   ulimit -Hn 65536
I am running Debian ( mostly by GUI *grin* )
Prior to yesterday I had never even heard of "ulimit" :-) Any help would 
be appreciated.
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


[freenet-support] 5083/5084 errata

2004-06-02 Thread Toad
If you downloaded 5083 or 5084 recently, for a POSIX-like platform such
as Linux or MacOS/X, if you downloaded the tgz, rather than upgrading
an existing node, or if you built from CVS, you may have got an
incorrect update.sh. It accidentally slipped in in 5083 and has now been
corrected. It would upgrade your stable branch node to unstable - both
the jar and the seednodes. Stable branch nodes currently have build
numbers beginning with 5; unstable branch nodes have build numbers
beginning with 6.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

[freenet-support] Stable build 5084

2004-06-02 Thread Toad
Freenet stable build 5084 is now available. Please upgrade ASAP, if you
are running a stable branch node (if you're not, you'll know). You can
do this by running the update.sh script on POSIX like systems such as 
Linux or MacOS/X (stop the node first, then update it, then start it),
or on Windows, you can run the update option on the menu, if there is
one, or on any platform, stop the node, download
http://freenetproject.org/snapshots/freenet-latest.jar over your
existing freenet.jar, and then start the node up again.

Two changes only in this build:
* Fix a NullPointerException that prevented the node from starting up
  sometimes if it had bad seednodes.
* Make 5083 mandatory. The reason for the stable network's recent bad
  performance is probably because the network consists of many 5083
  nodes and many 5082 nodes. Because 5083 makes some fairly drastic
  changes to how HTL is used (and some routing changes), the two builds
  don't get along very well with one another. We can improve the
  situation by making 5083 mandatory.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

RE: [freenet-support] Re: Could not initialize network I/O system - 5083

2004-06-02 Thread Jon Covington
1.4.2_04-b05, but I don't think that was the problem...

I think you guys put me on the right track.  It wasn't freenet.  I removed
my tcp/ip stack, rebooted, reinstalled the stack, and reinstalled freenet,
and it seems to be working just fine now. There was something wrong with the
windows networking

Thanks for the help u guys

-Jon

-Original Message-
From: Niklas Bergh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 10:34 AM
To: [EMAIL PROTECTED]
Subject: RE: [freenet-support] Re: Could not initialize network I/O
system- 5083


What does the first line in the freenet.log file say about your java
version?

/N
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


[freenet-support] Dynamic IP

2004-06-02 Thread zelos
Hi everyboy!

When browsing Freenet(http://localhost:/servlet/nodeinfo/) and click
to any of the bookmarks, I got :

Couldn't connect to the network. Are you sure you have configured
Freenet correctly? Also make sure that you are connected to the
internet.

I also configured the freenet.conf this way:

listenPort=23164
seedNodes=seednodes.ref
ipAddress=myhost.dyndns.org

And my firewall accepts tcp connections from outside addresses and from
port 23614...

Any idea?

-- 
zelos <[EMAIL PROTECTED]>


signature.asc
Description: Ceci est une partie de message	=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

RE: [freenet-support] Re: Could not initialize network I/O system- 5083

2004-06-02 Thread Niklas Bergh
What does the first line in the freenet.log file say about your java version?

/N

-- Original Message --
From: Jon Covington <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 2 Jun 2004 10:16:09 -0600 

>pings to localhost/loopback work fine...
>
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 02, 2004 10:05 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [freenet-support] Re: Could not initialize network I/O
>system- 5083
>
>
>At a command prompt, try this
>
>C:\ping 127.0.0.1
>
>see what happens, then try
>
>C:\ping localhost
>
>and again see what happens.  Let us know the results.
>___
>Support mailing list
>[EMAIL PROTECTED]
>http://news.gmane.org/gmane.network.freenet.support
>Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
>Or mailto:[EMAIL PROTECTED]
>
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


RE: [freenet-support] Re: Could not initialize network I/O system - 5083

2004-06-02 Thread Jon Covington
pings to localhost/loopback work fine...


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 02, 2004 10:05 AM
To: [EMAIL PROTECTED]
Subject: RE: [freenet-support] Re: Could not initialize network I/O
system- 5083


At a command prompt, try this

C:\ping 127.0.0.1

see what happens, then try

C:\ping localhost

and again see what happens.  Let us know the results.
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


RE: [freenet-support] Re: Could not initialize network I/O system- 5083

2004-06-02 Thread dave
At a command prompt, try this

C:\ping 127.0.0.1

see what happens, then try

C:\ping localhost

and again see what happens.  Let us know the results.

> I am using Win 2K, I have verified TCP/IP filtering is _not_ enabled.
> This
> error occurs whether I have my IDS/Firewall up or if I have it disabled.
>
> -Jon
>
> -Original Message-
> From: Jose M.Arnesto [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 01, 2004 5:03 PM
> To: [EMAIL PROTECTED]
> Subject: [freenet-support] Re: Could not initialize network I/O system -
> 5083
>
>
> On Tue, 1 Jun 2004 16:31:42 -0600, Jon Covington
> <[EMAIL PROTECTED]> wrote:
>
>>Jun 1, 2004 4:09:44 PM (freenet.node.Main, main, NORMAL): starting node
>>Could not initialize network I/O system! Exiting
>>java.io.IOException: Unable to establish loopback connection
>>  at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
>>  at java.security.AccessController.doPrivileged(Native Method)
>>  at sun.nio.ch.PipeImpl.(Unknown Source)
>>  at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source)
>>[..]
>>
>>If you need anything else let me know.
>
>   Are you using a Windows OS by chance? If that is the case,
> check if you have TCP/IP filtering enabled. That may be the cause.
>
>   To find out, open the properties of the network connection (in
> the control panel) that you are using, click on "Internet Protocol
> (TCPIP)", click on "Properties", click on "Advanced", and finally
> select the "Options" tab.
>
>   Kind regards.
> --
> Jose M. Arnesto
> j[insert my surname [EMAIL PROTECTED]
>
> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]
>

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


RE: [freenet-support] Re: Could not initialize network I/O system - 5083

2004-06-02 Thread Jon Covington
I am using Win 2K, I have verified TCP/IP filtering is _not_ enabled.  This
error occurs whether I have my IDS/Firewall up or if I have it disabled.

-Jon

-Original Message-
From: Jose M.Arnesto [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 5:03 PM
To: [EMAIL PROTECTED]
Subject: [freenet-support] Re: Could not initialize network I/O system -
5083


On Tue, 1 Jun 2004 16:31:42 -0600, Jon Covington
<[EMAIL PROTECTED]> wrote:

>Jun 1, 2004 4:09:44 PM (freenet.node.Main, main, NORMAL): starting node
>Could not initialize network I/O system! Exiting
>java.io.IOException: Unable to establish loopback connection
>   at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at sun.nio.ch.PipeImpl.(Unknown Source)
>   at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source)
>[..]
>
>If you need anything else let me know.

Are you using a Windows OS by chance? If that is the case,
check if you have TCP/IP filtering enabled. That may be the cause.

To find out, open the properties of the network connection (in
the control panel) that you are using, click on "Internet Protocol
(TCPIP)", click on "Properties", click on "Advanced", and finally
select the "Options" tab.

Kind regards.
-- 
Jose M. Arnesto
j[insert my surname [EMAIL PROTECTED]

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


[freenet-support] Re: Permanent node default

2004-06-02 Thread Someone
Jonathan Towle schrieb:
I thought the primary difference between permanent and transient was that a
transient node did not store data.  Is this not the case any more?
AFAIK:
Transient did always store data. It simply didn't announce nor accept incoming
requests, which meant that all stored data was requested by the user.
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Permanent node default

2004-06-02 Thread Jonathan Towle
I thought the primary difference between permanent and transient was that a
transient node did not store data.  Is this not the case any more?


- Original Message -
From: "Toad" <[EMAIL PROTECTED]>
To: "Cossack" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 7:19 AM
Subject: Re: [freenet-support] Permanent node default


> ___
> Support mailing list
> [EMAIL PROTECTED]
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:[EMAIL PROTECTED]


___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]


Re: [freenet-support] Permanent node default

2004-06-02 Thread Toad
All nodes, whether "transient" or not, now accept queries and process
them for other nodes. It is unclear whether transient actually means
anything, we will probably remove it soon.

On Wed, Jun 02, 2004 at 07:33:16AM +, Cossack wrote:
> Would it be advantageous to make freenet default to a transient node seeing as 
> most new users are transients. Or even have a dialog box asking them of their 
> node type during installation.
> 
> If you wanted to be really thorough have the freenet client log if it is online 
> at least 100 hours per week and switch it back to a transient node if it isn't, 
> or permanent node if it is.
-- 
Matthew J Toseland - [EMAIL PROTECTED]
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.


signature.asc
Description: Digital signature
___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]

[freenet-support] Permanent node default

2004-06-02 Thread Cossack
Would it be advantageous to make freenet default to a transient node seeing as 
most new users are transients. Or even have a dialog box asking them of their 
node type during installation.

If you wanted to be really thorough have the freenet client log if it is online 
at least 100 hours per week and switch it back to a transient node if it isn't, 
or permanent node if it is.

___
Support mailing list
[EMAIL PROTECTED]
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:[EMAIL PROTECTED]