View Issue Details

IDProjectCategoryView StatusLast Update
0002810GNUnetportabilitypublic2013-09-07 21:23
Reporterbeberking Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformIntel (i686/amd64)OSDebian/KfreeBSDOS VersionUnstable
Product Version0.9.3 
Target Version0.10.0Fixed in Version0.10.0 
Summary0002810: gnunet doesnt work on kfreebsd, filling the logs quickly
Descriptiongnunet 0.9.3-6 was build for kfreebsd but failed badly here, on kfreebsd-adm64:

root@devil:/var/log/gnunetd# rm gnunetd.log ; /etc/init.d/gnunet-server start ; ls -lah gnunetd.log ; sleep 5m ; /etc/init.d/gnunet-server stop ; ls -
lah gnunetd.log
rm: cannot remove `gnunetd.log': No such file or directory
Starting GNUnet: gnunet-service-arm.
-rw-r--r-- 1 gnunet gnunet 0 Mar 2 08:29 gnunetd.log
Stopping GNUnet: gnunet-service-arm.
-rw-r--r-- 1 gnunet gnunet 190M Mar 2 08:34 gnunetd.log

^^ this would be a serious bug if the binary were available

root@devil:/var/log/gnunetd# head -40 gnunetd.log
Mar 02 08:29:59-653312 util-2385 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-653389 util-2385 WARNING Access from `@' denied to service `statistics'
Mar 02 08:29:59-659198 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-659272 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-660666 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-660710 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-661161 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-661203 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-662900 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-662950 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-664640 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-664681 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-667665 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-667726 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:29:59-667857 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-667894 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:29:59-669472 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-669535 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-679530 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-679677 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-687945 transport-udp-2384 WARNING Failed to join IPv6 multicast group: IPv6 broadcasting not running
Mar 02 08:29:59-689653 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-689797 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-699403 util-2385 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-699550 util-2385 WARNING Access from `@' denied to service `statistics'
Mar 02 08:29:59-706571 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-706740 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-707364 util-2385 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-707506 util-2385 WARNING Access from `@' denied to service `statistics'
Mar 02 08:29:59-707787 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-707936 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-713771 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-713916 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:29:59-731788 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-731951 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:29:59-732562 util-2384 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-732705 util-2384 WARNING Access from `@' denied to service `transport'
Mar 02 08:29:59-735105 util-2383 WARNING Access denied to UID -1 / GID -1
Mar 02 08:29:59-735426 util-2383 WARNING Access from `@' denied to service `core'
Mar 02 08:29:59-737819 util-2385 WARNING Access denied to UID -1 / GID -1
root@devil:/var/log/gnunetd# tail -20 gnunetd.log
Mar 02 08:34:59-525011 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-525138 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:34:59-525269 util-2380 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-525308 util-2380 WARNING Access from `@' denied to service `nse'
Mar 02 08:34:59-525464 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-525503 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:34:59-525632 util-2380 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-525671 util-2380 WARNING Access from `@' denied to service `nse'
Mar 02 08:34:59-525816 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-525855 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:34:59-525981 util-2380 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-526035 util-2380 WARNING Access from `@' denied to service `nse'
Mar 02 08:34:59-527880 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-536302 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:34:59-536453 util-2380 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-536497 util-2380 WARNING Access from `@' denied to service `nse'
Mar 02 08:34:59-536633 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-536683 util-2386 WARNING Access from `@' denied to service `peerinfo'
Mar 02 08:34:59-537891 util-2386 WARNING Access denied to UID -1 / GID -1
Mar 02 08:34:59-537945 util-2386 WARNING Access from `@' denied to service `peerinfo'
root@devil:/var/log/gnunetd# grep -c "Mar 02 08:29:59" gnunetd.log
565
root@devil:/var/log/gnunetd# grep -c "Mar 02 08:30:59" gnunetd.log
10001
root@devil:/var/log/gnunetd# grep -c "Mar 02 08:31:59" gnunetd.log
10012
root@devil:/var/log/gnunetd# ls /usr/bin/gnunet-* -lart
-rwxr-xr-x 1 root root 211 May 17 2012 /usr/bin/gnunet-setup
-rwxr-xr-x 1 root root 19224 Nov 24 06:22 /usr/bin/gnunet-peerinfo-gtk
-rwxr-xr-x 1 root root 40152 Nov 24 06:22 /usr/bin/gnunet-gns-gtk
-rwxr-xr-x 1 root root 162144 Nov 24 06:22 /usr/bin/gnunet-fs-gtk
-rwxr-xr-x 1 root root 23312 Nov 24 06:22 /usr/bin/gnunet-statistics-gtk
-rwxr-xr-x 1 root root 194 Jan 27 05:48 /usr/bin/gnunet-gns-import
-rwxr-xr-x 1 root root 13338 Jan 27 05:49 /usr/bin/gnunet-download-manager
-rwxr-xr-x 1 root root 10480 Jan 27 05:49 /usr/bin/gnunet-unindex
-rwxr-xr-x 1 root root 10528 Jan 27 05:49 /usr/bin/gnunet-statistics
-rwxr-xr-x 1 root root 14720 Jan 27 05:49 /usr/bin/gnunet-search
-rwxr-xr-x 1 root root 23200 Jan 27 05:49 /usr/bin/gnunet-publish
-rwxr-xr-x 1 root root 14752 Jan 27 05:49 /usr/bin/gnunet-pseudonym
-rwxr-xr-x 1 root root 14656 Jan 27 05:49 /usr/bin/gnunet-download
-rwxr-xr-x 1 root root 10520 Jan 27 05:49 /usr/bin/gnunet-directory
-rwxr-xr-x 1 root root 14640 Jan 27 05:49 /usr/bin/gnunet-arm
-rwxr-xr-x 1 root root 10448 Jan 27 05:49 /usr/bin/gnunet-resolver
-rwxr-xr-x 1 root root 23208 Jan 27 05:49 /usr/bin/gnunet-peerinfo
-rwxr-xr-x 1 root root 10600 Jan 27 05:49 /usr/bin/gnunet-nat-server
-rwxr-xr-x 1 root root 14704 Jan 27 05:49 /usr/bin/gnunet-namestore
-rwsr-xr-- 1 root gnunet 10568 Jan 27 05:49 /usr/bin/gnunet-helper-fs-publish
-rwxr-xr-x 1 root root 10616 Jan 27 05:49 /usr/bin/gnunet-fs
-rwxr-xr-x 1 root root 10992 Jan 27 05:49 /usr/bin/gnunet-dht-put
-rwxr-xr-x 1 root root 10840 Jan 27 05:49 /usr/bin/gnunet-dht-monitor
-rwxr-xr-x 1 root root 10864 Jan 27 05:49 /usr/bin/gnunet-dht-get
-rwxr-xr-x 1 root root 27472 Jan 27 05:49 /usr/bin/gnunet-daemon-topology
-rwxr-xr-x 1 root root 48416 Jan 27 05:49 /usr/bin/gnunet-daemon-hostlist
-rwxr-xr-x 1 root root 6304 Jan 27 05:49 /usr/bin/gnunet-core
-rwxr-xr-x 1 root root 27376 Jan 27 05:49 /usr/bin/gnunet-service-nse
-rwxr-xr-x 1 root root 39872 Jan 27 05:49 /usr/bin/gnunet-service-namestore
-rwxr-xr-x 1 root root 65128 Jan 27 05:49 /usr/bin/gnunet-service-mesh
-rwxr-xr-x 1 root root 18896 Jan 27 05:49 /usr/bin/gnunet-service-lockmanager
-rwxr-xr-x 1 root root 90328 Jan 27 05:49 /usr/bin/gnunet-service-fs
-rwxr-xr-x 1 root root 60960 Jan 27 05:49 /usr/bin/gnunet-service-dht
-rwxr-xr-x 1 root root 27344 Jan 27 05:49 /usr/bin/gnunet-service-datastore
-rwxr-xr-x 1 root root 56584 Jan 27 05:49 /usr/bin/gnunet-service-core
-rwxr-xr-x 1 root root 52320 Jan 27 05:49 /usr/bin/gnunet-service-ats
-rwxr-xr-x 1 root root 31584 Jan 27 05:49 /usr/bin/gnunet-service-arm
-rwxr-xr-x 1 root root 10456 Jan 27 05:49 /usr/bin/gnunet-rsa
-rwxr-xr-x 1 root root 10472 Jan 27 05:49 /usr/bin/gnunet-transport-certificate-creation
-rwxr-xr-x 1 root root 18944 Jan 27 05:49 /usr/bin/gnunet-transport
-rwxr-xr-x 1 root root 14736 Jan 27 05:49 /usr/bin/gnunet-testing
-rwxr-xr-x 1 root root 89912 Jan 27 05:49 /usr/bin/gnunet-service-transport
-rwxr-xr-x 1 root root 19008 Jan 27 05:49 /usr/bin/gnunet-service-statistics
-rwxr-xr-x 1 root root 14776 Jan 27 05:49 /usr/bin/gnunet-service-resolver
-rwxr-xr-x 1 root root 19080 Jan 27 05:49 /usr/bin/gnunet-service-peerinfo
root@devil:/var/log/gnunetd# dpkg -l |grep gnunet
ii gnunet-client 0.9.3-6 kfreebsd-amd64 secure, trust-based peer-to-peer framework (client)
ii gnunet-common 0.9.3-6 kfreebsd-amd64 secure, trust-based peer-to-peer framework (common)
ii gnunet-gtk 0.9.3-1 kfreebsd-amd64 secure, trust-based peer-to-peer framework (GTK+ client)
ii gnunet-server 0.9.3-6 kfreebsd-amd64 secure, trust-based peer-to-peer framework (server)

I believe this is related to quite some gnunet-helper-* missing.

Also this happended:

devil:~$ sudo gnunet-peerinfo -i
Error in communication with PEERINFO service: Failed to receive response from `PEERINFO' service.
Steps To ReproduceInstall and start gnunet on Debian/KfreeBSD (either i686 or amd64).
Additional InformationThis issue was first reported by Holger Levsen at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702101
TagsNo tags attached.

Activities

Christian Grothoff

2013-03-04 03:46

manager   ~0006908

WARNING Access denied to UID -1 / GID -1 --- somehow the code to determine the current UID/GID is not working on the system. This will cause (most) of the IPC within the peer to fail. There are also some helpers not available on FreeBSD, but that's a separate issue (and certain low-level features will always not be available on some OSes as they need to be ported). The UID/GID check is a different story. I wonder why it works fine on our buildbot.

As for the 'gnunetd.log', I don't know where that filename is coming from. We don't use that log file name since like 0.9.0, so this might be a Debian legacy issue.

Christian Grothoff

2013-09-07 21:23

manager   ~0007423

Some of the issues were not FreeBSD specific; we fixed some permission checks that were set too strictly in the GNU/Linux version as well (since 0.9.3).

As for the missing helpers, some will need to be ported to FreeBSD. But for those we should probably file individual bugs.

Issue History

Date Modified Username Field Change
2013-03-03 14:56 beberking New Issue
2013-03-04 03:46 Christian Grothoff Note Added: 0006908
2013-03-04 03:47 Christian Grothoff Status new => acknowledged
2013-09-07 21:23 Christian Grothoff Note Added: 0007423
2013-09-07 21:23 Christian Grothoff Assigned To => Christian Grothoff
2013-09-07 21:23 Christian Grothoff Status acknowledged => closed
2013-09-07 21:23 Christian Grothoff Resolution open => fixed
2013-09-07 21:23 Christian Grothoff Fixed in Version => 0.10.0
2013-09-07 21:23 Christian Grothoff Target Version => 0.10.0