View Issue Details

IDProjectCategoryView StatusLast Update
0004545GNUnetutil librarypublic2018-06-06 22:24
ReporterlynX Assigned ToChristian Grothoff Due Date
PriorityhighSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.11.0pre66Fixed in Version0.11.0pre66 
Summary0004545: GNUNET_CACHE_HOME directory may not exist
Descriptioncomputer] rgrep GNUNET_CACHE_HOME
./util/util.conf
GNUNET_CACHE_HOME = ${XDG_CACHE_HOME:-$GNUNET_HOME/.cache}/gnunet/

./nse/nse.conf
HISTOGRAM_DIR = $GNUNET_CACHE_HOME/nse/histogram

./nse/nse.conf.in
HISTOGRAM_DIR = $GNUNET_CACHE_HOME/nse/histogram

./arm/arm.conf
# GLOBAL_POSTFIX = -l $GNUNET_CACHE_HOME/{}-%Y-%m-%d.log

./arm/arm.conf.in
# GLOBAL_POSTFIX = -l $GNUNET_CACHE_HOME/{}-%Y-%m-%d.log


Apparently some services define and use a macro called
GNUNET_CACHE_HOME, yet they do not make sure such a
directory even exists. By consequence, my gnunet.log now
looks like this:

May 30 19:06:50-684030 revocation-31179 ERROR `open' failed on file `/home/gnunet/.cache/gnunet//revocation-2016-05-30.log' at common_logging.c:392 with error: No such file or directory
May 30 19:06:50-804175 gnunet-daemon-topology-31180 ERROR `open' failed on file `/home/gnunet/.cache/gnunet//topology-2016-05-30.log' at common_logging.c:392 with error: No such file or directory
May 30 19:06:50-861711 gnunet-daemon-exit-31182 ERROR `open' failed on file `/home/gnunet/.cache/gnunet//exit-2016-05-30.log' at common_logging.c:392 with error: No such file or directory
May 30 19:06:50-863805 fs-31181 ERROR `open' failed on file `/home/gnunet/.cache/gnunet//fs-2016-05-30.log' at common_logging.c:392 with error: No such file or directory
May 30 19:07:16-932868 core-31183 ERROR `open' failed on file `/home/gnunet/.cache/gnunet//core-2016-05-30.log' at common_logging.c:392 with error: No such file or directory

Also, why the double-slash?

computer] grep -c common_logging /home/gnunet/gnunet.log
152

The log is 10 minutes old, and already contains 152 errors because of that.
Not surprising gnunet doesn't run extremely fast on some systems....

I could fix the bug somewhere, but I'm not sure where it makes sense the most.
We don't want to check for existing dirs at every logging operation...
TagsNo tags attached.

Activities

tg

2016-05-31 20:18

reporter   ~0010823

Last edited: 2016-05-31 20:26

updated description

lynX

2016-06-01 12:27

developer   ~0010832

Last edited: 2016-06-01 12:30

Actually you added the description of a different and a lot less important bug. Cleaning this up now.

Christian Grothoff

2016-06-01 17:09

manager   ~0010834

Fixed in SVN 37223.

tg

2016-06-01 22:32

reporter   ~0010847

now the directory is created but var expansion does not work anymore, see 0004555

Issue History

Date ModifiedUsernameFieldChange
2016-05-30 17:21lynXNew Issue
2016-05-30 17:21lynXStatusnew => assigned
2016-05-30 17:21lynXAssigned To => Christian Grothoff
2016-05-30 22:57Christian GrothoffPrioritynormal => high
2016-05-30 22:57Christian GrothoffTarget Version => 0.11.0pre66
2016-05-31 20:18tgNote Added: 0010823
2016-05-31 20:26tgSummaryGNUNET_CACHE_HOME does not exist => config var-expansion does not always work
2016-05-31 20:26tgDescription Updated
2016-05-31 20:26tgNote Edited: 0010823
2016-05-31 20:28tgDescription Updated
2016-06-01 12:27lynXNote Added: 0010832
2016-06-01 12:30lynXSummaryconfig var-expansion does not always work => GNUNET_CACHE_HOME directory may not exist
2016-06-01 12:30lynXDescription Updated
2016-06-01 12:30lynXNote Edited: 0010832
2016-06-01 17:09Christian GrothoffNote Added: 0010834
2016-06-01 17:09Christian GrothoffStatusassigned => resolved
2016-06-01 17:09Christian GrothoffFixed in Version => 0.11.0pre66
2016-06-01 17:09Christian GrothoffResolutionopen => fixed
2016-06-01 22:32tgNote Added: 0010847
2018-06-06 22:24Christian GrothoffStatusresolved => closed