Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

bamboo unable to make directory

Hi Team!

Bamboo is running in docker from atlassian/bamboo-server

I m trying to build the node.js app 

 

npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/node_modules/.staging
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/node_modules/.staging'
npm ERR! { Error: EACCES: permission denied, mkdir '/var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/node_modules/.staging'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/node_modules/.staging' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/npm-debug.log
Failing task since return code of [/usr/bin/node /usr/bin/npm install] was 243 while expected 0
Finished task 'npm configuration' with result: Failed
Running post build plugin 'NCover Results Collector'
Running post build plugin 'Artifact Copier'
Running post build plugin 'npm Cache Cleanup'
Running post build plugin 'Clover Results Collector'
Running post build plugin 'Docker Container Cleanup'
Finalising the build...
Stopping timer.
Build NEW-NEW-JOB1-48 completed.
simple 03-Jun-2019 06:10:21 Running on server: post build plugin 'NCover Results Collector'
simple 03-Jun-2019 06:10:21 Running on server: post build plugin 'Build Hanging Detection Configuration'
simple 03-Jun-2019 06:10:21 Running on server: post build plugin 'Clover Delta Calculator'
simple 03-Jun-2019 06:10:21 Running on server: post build plugin 'Maven Dependencies Postprocessor'
simple 03-Jun-2019 06:10:21 All post build plugins have finished
simple 03-Jun-2019 06:10:21 Generating build results summary...
simple 03-Jun-2019 06:10:21 Saving build results to disk...
simple 03-Jun-2019 06:10:21 Logging substituted variables...
simple 03-Jun-2019 06:10:21 Indexing build results...
simple 03-Jun-2019 06:10:21 Finished building NEW-NEW-JOB1-48.

 

1 answer

1 accepted

0 votes
Answer accepted

Hello @SaiCharan

I see the error you have is happening inside the build working directory folder. This folder is created dynamically by the user running Bamboo which for this particular case is bamboo. By default, this user should be able to have all the access to create and remove folders in this particular location.

Things I would check:

  1. Is this problem happening if you add the task clean working directory at the beginning of the job running node?
  2. When this problem happens, does the folder /var/atlassian/application-data/bamboo/xml-data/build-dir/NEW-NEW-JOB1/node_modules exist?
  3. Is your container running out of storage space?

Let me know what you find.

Thanks Daniel, I just change the owner ROOT to Bamboo For the Folder it worked.

 

Thank You, Daniel.

Like Daniel Santos likes this

You are welcome!
I'm glad that you found the permission issue =]

Like SaiCharan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

250 views 4 6
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