Feature #23491

artdaq should create logfile subdirectories which are group writeable

Added by John Freeman over 1 year ago. Updated over 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


From my work on Issue #23477, I've noticed that when artdaq creates a subdirectory of the base log directory, that subdirectory only has write permissions set for the user, and not the user's group. E.g., when I logged into mu2edaq11 and did the following:

source /home/jcfree/artdaq-demo_issue22244/setupARTDAQDEMO   # Specific installation not important
mkdir -p -m 0775 /tmp/issue23477_logs
export ARTDAQ_LOG_ROOT=/tmp/issue23477_logs
boardreader -c "id: 14100 commanderPluginType: xmlrpc rank: 0 application_name: component01 partition_number: 4" &

then if I listed the contents of /tmp/issue23477_logs I got the following:
total 0
drwxr-xr-x 2 jcfree mu2e 65 Oct 29 13:39 component01-mu2edaq11-14100

...i.e., the directory containing the logfile isn't group writeable. In the spirit of Issue #23477, we should make this group-writeable.

Related issues

Related to artdaq Demo - Bug #23477: Logfile issuesClosed10/26/2019


#1 Updated by Eric Flumerfelt over 1 year ago

#2 Updated by Eric Flumerfelt over 1 year ago

I've added an explicit permissions call on artdaq-core:feature/23491_CreateLogDirectoryGroupWriteable, but oddly enough, I don't see the problem without that branch...I'm using s82:e17; maybe something changed in the boost library?

#3 Updated by John Freeman over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

I installed an artdaq-demo area with the --develop option called /home/jcfree/artdaq-demo_issue23491, and used it for run 3053 (/home/jcfree/run_records/3053). I used a special output log directory, /tmp/issue23491_logs. Looking on mu2edaq13, these two subdirectories were created, given that I was running on partition 5:

drwxr-xr-x 2 jcfree mu2e  69 Oct 30 16:36 EventBuilder1-mu2edaq13-15102
drwxr-xr-x 2 jcfree mu2e  67 Oct 30 16:36 DataLogger1-mu2edaq13-15103

Notice, of course, that they're not group writeable. I then switched over to artdaq-core's feature/23491_CreateLogDirectoryGroupWriteable, as well as partition 6, and for run 3054 the following subdirectories got created on mu2edaq13:
drwxrwxr-x 2 jcfree mu2e  69 Oct 30 16:40 EventBuilder1-mu2edaq13-16102
drwxrwxr-x 2 jcfree mu2e  67 Oct 30 16:40 DataLogger1-mu2edaq13-16103

...where the subdirectories are group-writeable. So I consider this issue reviewed.

#4 Updated by John Freeman over 1 year ago

  • Status changed from Resolved to Reviewed

#5 Updated by Eric Flumerfelt over 1 year ago

  • Target version set to artdaq_core v3_05_09
  • Status changed from Reviewed to Closed

Also available in: Atom PDF