[Darshan-users] Cannot create log directory
Jeffrey Layton
laytonjb at gmail.com
Tue May 19 06:49:25 CDT 2020
On Mon, May 18, 2020 at 10:17 PM Snyder, Shane <ssnyder at mcs.anl.gov> wrote:
> Hi Jeff,
>
> I just had to try it out to remind myself, but 'darshan-mk-log-dirs' does
> currently expect the root log directory (i.e., the log path you passed to
> '--with-log-path' config argument, '/usr/local/darshan-logs' in your case)
> to be already created outside of the script. That is a little confusing
> given the name of the utility, in that you'd probably expect it to
> gracefully handle the case where the root doesn't already exist... I just
> created an issue to ensure we make the errors more clear in why the script
> fails, and will probably also just modify the script to create the root if
> it doesn't exist -- I don't see any reason why it shouldn't already be
> doing that.
>
Thanks for the reply! I apologize for not thinking of the need for the
existence of the root directory - I should have caught that.
Thanks again!
Jeff
> Thanks!
> --Shane
> ------------------------------
> *From:* Darshan-users <darshan-users-bounces at lists.mcs.anl.gov> on behalf
> of Jeffrey Layton <laytonjb at gmail.com>
> *Sent:* Monday, May 18, 2020 3:06 PM
> *To:* darshan-users at lists.mcs.anl.gov <darshan-users at lists.mcs.anl.gov>
> *Subject:* [Darshan-users] Cannot create log directory
>
> Good afternoon,
>
> I have a small problem when I build Darshan. It doesn't create the log
> directory, so I used the script darshan-mk-log-dirs.pl. However, I get an
> error:
>
> # ./darshan-mk-log-dirs.pl
> Error: could not mkdir /usr/local/darshan-logs//2020.
>
> This is an Ubuntu system I used sudo to run the script and I also tried as
> root. In either case, I get the same result.
>
> While I can follow the Perl script (it's been a few years since I last
> coded in Perl), I want to make sure I track down the cause of this error.
>
> Thanks!
>
> Jeff
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-users/attachments/20200519/23553880/attachment-0001.html>
More information about the Darshan-users
mailing list