Traffic Server
  1. Traffic Server
  2. TS-929

diags.log needs to be writable by nobody

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.1.1
    • Component/s: Logging
    • Labels:

      Description

      diags.log can not be owned by root. you will get warning like this:

      [Aug 21 08:24:13.582]

      {682627392}

      WARNING: <DiagsConfig.cc:347 (DiagsConfig)> couldn't open diags log file '/var/log/trafficserver/diags.log', will not log to this file

      1. patch-chown-diag
        0.4 kB
        Radim Kolar

        Activity

        Hide
        Radim Kolar added a comment -

        changes permissions to nobody like it is done with other log files

        Show
        Radim Kolar added a comment - changes permissions to nobody like it is done with other log files
        Hide
        Leif Hedstrom added a comment -

        hmmm, Initialize.cc would only be compiled if you compile with standalone IO core. And that's unsupported at this point (and not sure if/when it'll be supported). I'm sure that's not what you want though .

        Show
        Leif Hedstrom added a comment - hmmm, Initialize.cc would only be compiled if you compile with standalone IO core. And that's unsupported at this point (and not sure if/when it'll be supported). I'm sure that's not what you want though .
        Hide
        Radim Kolar added a comment -

        you are right. i just checked
        $ ./configure --localstatedir=/var --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.2

        and its really not compiled in

        Show
        Radim Kolar added a comment - you are right. i just checked $ ./configure --localstatedir=/var --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.2 and its really not compiled in

          People

          • Assignee:
            Leif Hedstrom
            Reporter:
            Radim Kolar
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development