# EACCES: permission denied

**URL:** <https://discuss.bitrise.io/t/eacces-permission-denied/19122>\
**Category:** Builds\
**Created:** [January 18, 2022, 6:41pm UTC](https://discuss.bitrise.io/t/eacces-permission-denied/19122 "2022-01-18T18:41:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nuvolar\_mobile\_team](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@Nuvolar\_mobile\_team](https://discuss.bitrise.io/u/Nuvolar_mobile_team)\
**Post date:** [January 18, 2022, 6:41pm UTC](https://discuss.bitrise.io/t/eacces-permission-denied/19122/1 "2022-01-18T18:41:13Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I’m migrating from an Xcode 12.5.X macOS 11.4 (Big Sur) stack to Android&Docker 20.4 one and I’m getting the following error:

```auto
Error: EACCES: permission denied, mkdir '/root/.local/share/Detox'
    at Object.mkdirSync (fs.js:921:3)
    at Object.mkdirsSync (/bitrise/src/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:31:9)
    at Object.createFileSync (/bitrise/src/node_modules/fs-extra/lib/ensure/file.js:40:11)
    at ExclusiveLockfile._ensureFileExists (/bitrise/src/node_modules/detox/src/utils/ExclusiveLockfile.js:123:10)
    at ExclusiveLockfile._lock (/bitrise/src/node_modules/detox/src/utils/ExclusiveLockfile.js:106:10)
    at ExclusiveLockfile.exclusively (/bitrise/src/node_modules/detox/src/utils/ExclusiveLockfile.js:38:16)
    at DeviceRegistry.allocateDevice (/bitrise/src/node_modules/detox/src/devices/DeviceRegistry.js:71:27)
    at AttachedAndroidAllocDriver.allocate (/bitrise/src/node_modules/detox/src/devices/allocation/drivers/android/attached/AttachedAndroidAllocDriver.js:25:48)
    at /bitrise/src/node_modules/detox/src/devices/allocation/DeviceAllocator.js:17:20
    at traceCall (/bitrise/src/node_modules/detox/src/utils/trace.js:41:26)
    at DeviceAllocator.allocate (/bitrise/src/node_modules/detox/src/devices/allocation/DeviceAllocator.js:16:12)
    at Detox._doInit (/bitrise/src/node_modules/detox/src/Detox.js:189:54)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  errno: -13,
  syscall: 'mkdir',
  code: 'EACCES',
  path: '/root/.local/share/Detox'
}

```

## Environment:

Android&Docker 20.4  
Script step 1.1.6

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

## Build log

> **[Log in - Bitrise](https://app.bitrise.io/users/sign_in)**
>
> Bringing back the joy of iOS & Android development through automating build, testing and support cycles.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 17, 2022, 6:41pm UTC](https://discuss.bitrise.io/t/eacces-permission-denied/19122/2 "2022-02-17T18:41:55Z")

</div>

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