Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2532

cf-serverd closes connection when client tries to fetch inexistent file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.10.0b1
    • Fix Version/s: 3.10.0, 3.9.2, 3.7.5
    • Component/s: None
    • Labels:
      None
    • Found in version (details):
      3.10.0b1

      Description

      It seems that the behaviour of cf-serverd when handling TLS protocol requests, was to always close the connection after a REFUSAL - a REFUSAL can happen after an ACL denial, or a file-not-found error.

      This causes issues that were uncovered in 3.10.0b1, in combination with some fixes that allow cf-agent to utilize the cache better.

      In combination with CFE-2511, if cf-serverd closes the connection because of REFUSAL to a file, then cf-agent fails to complete the current or any subsequent files promises.

      Log from cf-serverd;

      verbose: 1.152.96.86>      Received:    STAT /path/to/filename
         info: 1.152.96.86> Failed to canonicalise filename '/path/to/filename' (realpath: No such file or directory)
         info: 1.152.96.86> Closing connection due to illegal request: SYNCH 1481162138 STAT /path/to/filename
         info: 1.152.96.86> Closing connection, terminating thread
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10003 Eystein Maloy Stenberg
                Reporter:
                a10038 jimis (Dimitrios Apostolou)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support

                    Summary Panel