CircleCI/AppArmor issue for validation on Ubuntu Linux

Hey all,

I’m on Ubuntu 18.04, installed circleci and docker via snap (and the two are linked as per the installation instructions).

I can execute local ci builds fine.

Until recently circleci config validate was working, but as of today I get:

$ circleci config validate
Error: Could not load config file at .circleci/config.yml: open .circleci/config.yml: permission denied

And looking in dmesg I see:

[607668.330776] audit: type=1400 audit(1534427762.045:493): apparmor=“DENIED” operation=“open” profile=“snap.circleci.circleci” name="/home/mattgodbolt/PATH_REDACTED/.circleci/config.yml" pid=12052 comm=“circleci” requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=1000

Can anyone help me debug/diagnose why the apparmor profile for snap.cirlceci.circleci is denying access to this file? Can anyone think why it may have changed?

Thanks, Matt

I spoke too soon, the local builds are also failing:

rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:1370: sending signal 0 to pid 16358 caused "permission denied"

====>> Error executing build steps
CircleCI was unable to run the job runner because we were unable to execute commands in build container.

and in dmesg:

[608745.999589] audit: type=1400 audit(1534428839.731:552): apparmor="DENIED" operation="signal" profile="docker-default" pid=16636 comm="docker-runc" requested_mask="receive" denied_mask="receive" signal=exists peer="unconfined"
[608746.045196] audit: type=1400 audit(1534428839.779:553): apparmor="DENIED" operation="signal" profile="docker-default" pid=26173 comm="docker-containe" requested_mask="receive" denied_mask="receive" signal=kill peer="unconfined"

(with many other similar lines above).

Any ideas? Thanks in advance, Matt

I am also being effected by this.

ERROR: object '' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.
Error: Could not load config file at .circleci/config.yml: open .circleci/config.yml: permission denied

cc @FelicianoTech any ideas here?

No, I don’t know.

As the Local CLI is morphing into the new, CircleCI CLI, I’m no longer leading it. I made a GitHub Issue.

1 Like

For anyone who hasn’t visited the GitHub link, the issue that I found related to this I’ve fixed.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.