Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: for build_mysql_1 Cannot create container for service mysql: authorization denied by plugin

Xavi September 29, 2020

getting an error when running npm run env:start from Wordpress develop.

ERROR: for build_mysql_1 Cannot create container for service mysql: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 2, 2020

Hi Xavi,

Are you using a mysql service in your build and are you mounting the mysql volume to a path other than $BITBUCKET_CLONE_DIR?

Based on the error you posted here, this looks to be the most likely reason for this error. For security reasons, we don't allow mapping volumes with a source outside $BITBUCKET_CLONE_DIR.

The workaround in this case would be to mount your volume inside of $BITBUCKET_CLONE_DIR (opt/atlassian/bitbucketci/agent/build/.* or /opt/atlassian/pipelines/agent/build/.*)

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events