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

        Radim Kolar created issue -
        Radim Kolar made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        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
        Radim Kolar made changes -
        Attachment patch-chown-diag [ 12491090 ]
        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
        Leif Hedstrom made changes -
        Fix Version/s 3.1.1 [ 12316496 ]
        Leif Hedstrom made changes -
        Assignee Leif Hedstrom [ zwoop ]
        Leif Hedstrom made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Leif Hedstrom made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development