Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 231592

Summary: net-p2p/gnunet 0.8.0 - WARNING: `unlink' failed on file `/var/run/gnunetd.pid' at console.c:216 with error: Permission denied
Product: Gentoo Linux Reporter: Oleg Eterevsky <oleg>
Component: [OLD] UnspecifiedAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Oleg Eterevsky 2008-07-12 14:25:17 UTC
gnunetd fails to start with default settings. It writes warning:

WARNING: `unlink' failed on file `/var/run/gnunetd.pid' at console.c:216 with error: Permission denied

It could be fixed by 

mkdir /var/run/gnunetd
chown gnunetd:gnunetd /var/run/gnunetd

and setting 

PIDFILE = /var/run/gnunetd/gnunetd.pid

in /etc/gnunetd.conf

After this is fixed, it fails with the following error:

ERROR: `lt_dlopenext' failed for library `libgnunetmodule_bootstrap' with error: libgnunetutil.so.2: cannot open shared object file: No such file or directory

In fact there is only /usr/lib/libgnunetutil.so.3

My system: Portage 2.1.4.4 (default-linux/amd64/2006.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
Comment 1 Stanislav Ochotnicky (RETIRED) gentoo-dev 2011-01-14 00:59:47 UTC
From the ebuild:
einfo
einfo "To configure"
einfo "	 1) Add user(s) to the gnunetd group"
einfo "	 2) Run 'gnunet-setup' to generate your client config file"
einfo "	 3) Run gnunet-setup -d as root to generate a server config file"
einfo

You are supposed to first configure gnunet before using. Closing as invalid (might have been fixed anyway in the meantime, since gnunet home is now in /var/lib/gnunet)