The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events