Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Freenet daemon not working

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

Freenet daemon not working

  • Quote

Post by Pajarico » Wed Dec 29, 2004 5:28 pm

I have configure and updated it, but when i try to run the daemon:

Code: Select all

bash-2.05b# /etc/init.d/freenet start
 * Starting Freenet now...
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
nice: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
sleep: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
ps: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory                                                  [ !! ]

rm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
That is with export LD_ASSUME_KERNEL=2.4.1 uncommented in /etc/init.d/freenet; if i comment it :

Code: Select all

bash-2.05b# /etc/init.d/freenet start
 * Starting Freenet now...                                              [ !! ]
This on amd 64 with glib compiled with nptl and multilib flags.

:wink:
Gentoo: the only software worth paying that is free.
Top
Papaver
n00b
n00b
User avatar
Posts: 8
Joined: Sun Mar 16, 2003 3:38 am
Location: USA

  • Quote

Post by Papaver » Thu Dec 30, 2004 4:17 am

I'm having problems with freenet that started as you described. I haven't fixed it, but have made some sort of process. I hope what I've done so far helps you.

You're using NPTL, so that LD_ASSUME_KERNEL=2.4.1 should indeed be commented out.

One problem is with this line in /etc/init.d/freenet:

Code: Select all

nice -n ${FREENET_NICENESS} sudo -u freenet /usr/bin/start-freenet.sh \
                > /var/freenet/freenet.pid
Be default sudo will not pass environment variables on, so you need to edit /etc/sudoers (via the visudo command). In your /etc/sudoers you should see something like this:

Code: Select all

# Reset environment by default
Defaults        env_reset
# Uncomment to allow people in group wheel to export variables
# %Defaults:%wheel !env_reset
Uncomment that last line, so now you have:

Code: Select all

Defaults:%wheel !env_reset
Now it appears to work:

Code: Select all

# /etc/init.d/freenet start
 * Starting Freenet now...                                         [ ok ]
# 
BUT...

Code: Select all

# cat /var/freenet/freenet.log 
Dec 29, 2004 11:13:31 PM (freenet.node.Main, main, NORMAL): Starting Freenet (Fred) 0.6 node, build #60260 on JVM Sun Microsystems Inc.:Java HotSpot(TM) Server VM:1.4.2-gentoo-1104355787
Dec 29, 2004 11:13:32 PM (freenet.node.Node, main, ERROR): Encountered an unexpected error when locking the lockfile '/var/freenet/lock.lck'. Shutting down.
java.io.IOException: Invalid argument
        at sun.nio.ch.FileChannelImpl.lock0(Native Method)
        at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:788)
        at java.nio.channels.FileChannel.tryLock(FileChannel.java:967)
        at freenet.node.Node.init(Node.java:3583)
        at freenet.node.Main.main(Main.java:476)
# 
And this is as far as I've made it with this problem tonight. Any further insight on this would be greatly appreciated.
Top
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

  • Quote

Post by Pajarico » Thu Dec 30, 2004 6:02 pm

Ok, now my looks like this:

Code: Select all

# Reset environment by default
# Defaults      env_reset
# Uncomment to allow people in group wheel to export variables
 Defaults:%wheel        !env_reset
But now sudo complains about something different:

Code: Select all

bash-2.05b# /etc/init.d/freenet start
 * Starting Freenet now...
>>> sudoers file: syntax error, line 18 <<<
sudo: parse error in /etc/sudoers near line 18
sendmail: Cannot open mail:25                                             [ ok ]
bash-2.05b# 
Although '[ok]' is printed it doesn't connect to http://127.0.0.1:8888/
Gentoo: the only software worth paying that is free.
Top
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

  • Quote

Post by Pajarico » Thu Dec 30, 2004 7:11 pm

Commented again:

Code: Select all

# Defaults:%wheel       !env_reset
Now it works, but is extremely slow, it is normal?

:wink:
Gentoo: the only software worth paying that is free.
Top
Papaver
n00b
n00b
User avatar
Posts: 8
Joined: Sun Mar 16, 2003 3:38 am
Location: USA

  • Quote

Post by Papaver » Thu Dec 30, 2004 9:00 pm

Is it freenet itself that is extremely slow? That's normal, especially for the first few days you're running it.
Top
Arker
Apprentice
Apprentice
Posts: 205
Joined: Tue Sep 10, 2002 12:01 pm
Contact:
Contact Arker
Website

  • Quote

Post by Arker » Fri Jan 07, 2005 3:30 am

Did you ever figure out the problem with that Java IOException regarding the lockfile? I'm having the same issue.

Cheers,
~djc
*LIK*

My other computer is your Windows box.
Top
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

  • Quote

Post by Pajarico » Fri Jan 07, 2005 4:14 pm

Papaver wrote:Is it freenet itself that is extremely slow? That's normal, especially for the first few days you're running it.
I've used freenet a pair of times, and io starting to think that it is not only slow but extremely unstable or buggy. It just sits there, can't connect with anything and totally kills my connection, even when there is no network traffic at all.

:wink:
Gentoo: the only software worth paying that is free.
Top
Ribs
Tux's lil' helper
Tux's lil' helper
Posts: 133
Joined: Sat Nov 16, 2002 1:50 pm
Location: UK

Re: Freenet daemon not working

  • Quote

Post by Ribs » Thu Feb 24, 2005 9:51 pm

Pajarico wrote:I have configure and updated it, but when i try to run the daemon:

Code: Select all

bash-2.05b# /etc/init.d/freenet start
 * Starting Freenet now...
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
nice: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
sleep: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
ps: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
cat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory                                                  [ !! ]

rm: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
Hi, I stumbled accross this thread the other day. I was having the same problem with Freenet. The above problem is caused by glibc.

The current stable version of glibc in Gentoo is either compiled with, or without nptl. Now, if you use a nptl system (which is a good thing(tm)) and the current stable version of glibc (2.3.4.20040808-r1, at time of writing), then you will have a system which does not run well with programs that don't like nptl.

Gentoo recently changed the policy towards glibc. It now compiles it twice, once with, and once without nptl. So you can use the non-nptl version when required, as it is in this case. So the soultion is to use a ~x86 version of glibc for the time being, so you get a glibc which is more compatible. That should kill your shared libraries errors.

This thread is so old I guess everyone already has the soultion, but I thought it worth posting anyway, just in case someone has the same problem.

After fixing glibc, I got the Freenet not working with the following in /var/freenet/freenet.stderr.log:

Code: Select all

Exception in thread "main" java.lang.NoClassDefFoundError: freenet/node/Main
Use the sudoers trick discuessed above to fix this.

-Ribs.
Top
Pajarico
Guru
Guru
User avatar
Posts: 493
Joined: Sat May 01, 2004 5:44 pm
Location: Madrid, España.
Contact:
Contact Pajarico
Website

  • Quote

Post by Pajarico » Thu Feb 24, 2005 11:04 pm

Thanks for the tip. I updated glibc and it compiled both version (nptl and nptl-less). Now freenet starts and stops without dumping errors.

:wink:
Gentoo: the only software worth paying that is free.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic