Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

PermissionError: [Errno 13] Permission denied in kubectl:1.1.6 Edited


When running the following pipeline: 

pipelines:  default:    
step:        name"Convert docker compose"        script:          - mkdir output          - kompose convert --out output        artifacts:          - output/*.yaml    - step:        name"Config kubectl"        script:          - chmod 777 output          - ls -l          - pipeatlassian/kubectl-run:1.1.6            variables:              KUBE_CONFIG$KUBE_CONFIG              KUBECTL_COMMAND"apply"              RESOURCE_PATH"output/"

 I get the following error:

PermissionError: [Errno 13] Permission denied: 'output/redis-master-deployment.yaml'

the folder has the following permissions:

+ ls -ltotal 20-rw-rw-rw-. 1 root root  460 May  8 07:05 Dockerfile-rw-rw-rw-. 1 root root  618 May  8 07:05 azure-pipelines.yml-rw-rw-rw-. 1 root root  809 May  8 07:05 bitbucket-pipelines.yml-rw-rw-rw-. 1 root root  420 May  8 07:05 docker-compose.ymldrwxrwxrwx. 2 root root 4096 May  8 07:05 output 

As far as I can see the folder has the right permissions and the pipe should be able to use them. Is this really a permission error or is something else going wrong?  

1 answer

0 votes

@koen_pijnenburg  looks like you need

chmod -R <permissions_number-or-symbols> <folder>

to enable access in all files in the directory 'output'.


Cheers, Galyna

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you