Project

General

Profile

Feature #23491

artdaq should create logfile subdirectories which are group writeable

Added by John Freeman about 1 month ago. Updated 20 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
10/29/2019
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

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

History

#1 Updated by Eric Flumerfelt about 1 month ago

#2 Updated by Eric Flumerfelt about 1 month 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 about 1 month 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 about 1 month ago

  • Status changed from Resolved to Reviewed

#5 Updated by Eric Flumerfelt 20 days ago

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


Also available in: Atom PDF