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

bootstrap fails with wrong error message during bootstrap

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 3.7.0
    • Fix Version/s: None
    • Component/s: Bootstrap
    • Labels:
      None
    • Environment:
      Ubuntu Linux 16.04, NFS homedir mounted w/ GSSAPI security

      Description

      While trying to bootstrap a system using
      {{sudo cf-agent -B cfmaster
      }}I get this message:
      {{ info: Unable to open directory '/var/cfengine/inputs' during purge of directory tree '/var/cfengine/inputs' (opendir: Permission denied)
      }}
      After doing an strace, I see that the actual problem is this:
      {{open(".", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
      }}

      This is happening because my homedir (which is CWD at the time) is mounted via NFS using "sec=krb5p", and root doesn't have access to enter this directory.

      I' inclined to think that this should not be a failure at all, but it'd be nice if at least the error message displayed reflected the correct directory. As it is, it took a small amount of wasted time trying to identify what was wrong with the permissions in /var/cfengine.

        Attachments

          Activity

            People

            • Assignee:
              a10003 Eystein Maloy Stenberg
              Reporter:
              dannysauer Danny Sauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel