# Emulator with name Nexus\_6\_API\_26 has a corrupt config.ini file, try fixing it by recreating an emulator

**URL:** <https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438>\
**Category:** Builds\
**Created:** [March 14, 2019, 4:45pm UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438 "2019-03-14T16:45:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi-ts](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@ravi-ts](https://discuss.bitrise.io/u/ravi-ts)\
**Post date:** [March 14, 2019, 4:45pm UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/1 "2019-03-14T16:45:10Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I could not able to run my android tests on bitrise, here is my error log from bitrise along with my yml setup

## Environment:

- Detox: “detox”: “^10.0.12”,
- React Native: “^0.58.4”,
- Node: v8.15.0
- Device: Android emulator on Bitrise
- OS: Android

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

**Linux LTS**

E.g.: Git Clone v3.6.0

## Reproducibility

### Local reproduction

Only on Bitrise

### Local reproduction: Linux / Android (docker based) stack builds

Only on bitrise

### Build emulator step

- script@1.1.5:  
inputs:

- content: |-  
#!/usr/bin/env bash  
cd $ANDROID\_HOME/emulator  
echo no | avdmanager create avd -n Nexus\_6\_API\_26 -k “system-images;android-26;google\_apis;x86” --force  
emulator -avd Nexus\_6\_API\_26 -no-window -no-audio -debug-init \> /dev/null 2\>&1 &  
echo “Waiting emulator…”  
adb wait-for-device shell ‘while [[-z $(getprop sys.boot\_completed)]]; do sleep 1; done; input keyevent 82’  
title: Initiate Android emulator
  - script@1.1.5:  
inputs:
    - content: |+  
#!/usr/bin/env bash  
detox test -c android.emu.cli --device-name Nexus\_6\_API\_26 --loglevel verbose --cleanup  
title: Detox E2E\*\*

## Build log

**configuration=“android.emu.cli” loglevel=“verbose” cleanup=true artifactsLocation=“artifacts/android.emu.cli.2019-03-14 10-47-04Z” deviceName=“Nexus\_6\_API\_26” node\_modules/.bin/jest “e2e” --config=e2e/config.json --maxWorkers=1 ‘–testNamePattern=^((?!:ios:).) _$’  
detox[26902] INFO: [DetoxServer.js] server listening on localhost:33207…  
detox[26902] DEBUG: [AsyncWebSocket.js/WEBSOCKET\_OPEN] opened web socket to: ws://localhost:33207  
detox[26902] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=dca0dbbd-9e47-d712-47f4-b15b3f063780  
detox[26902] DEBUG: [DetoxServer.js/LOGIN\_SUCCESS] role=tester, sessionId=dca0dbbd-9e47-d712-47f4-b15b3f063780  
detox[26902] DEBUG: [exec.js/EXEC\_CMD, #0] /opt/android-sdk-linux/emulator/emulator -list-avds --verbose  
detox[26902] ERROR: [index.js/DETOX\_INIT\_ERROR]  
Error: Emulator with name Nexus\_6\_API\_26 has a corrupt config.ini file (/root/.android/avd/Nexus\_6\_API\_26.avd/config.ini), try fixing it by recreating an emulator.  
at EmulatorDriver.\_fixEmulatorConfigIniSkinName (/bitrise/src/node\_modules/detox/src/devices/drivers/EmulatorDriver.js:30:15)  
at EmulatorDriver.acquireFreeDevice (/bitrise/src/node\_modules/detox/src/devices/drivers/EmulatorDriver.js:91:16)  
at  
at process.\_tickCallback (internal/process/next\_tick.js:188:7)  
detox[26902] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=dca0dbbd-9e47-d712-47f4-b15b3f063780  
detox[26902] ERROR: [EmulatorTelnet.js/TELNET\_ERROR]  
err: Error: connect ECONNREFUSED 127.0.0.1:23  
at Object.\_errnoException (util.js:1022:11)  
at \_exceptionWithHostPort (util.js:1044:20)  
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)  
detox[26902] ERROR: [EmulatorTelnet.js/TELNET\_ERROR]  
err: Error: connect ECONNREFUSED 127.0.0.1:23  
at Object.\_errnoException (util.js:1022:11)  
at \_exceptionWithHostPort (util.js:1044:20)  
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)  
FAIL e2e/ tests /SearchTenantScreen.e2e.spec.js  
● Test suite failed to run  
Timeout - Async callback was not invoked within the 120000ms timeout specified by jest.setTimeout.Error: Timeout - Async callback was not invoked within the 120000ms timeout specified by jest.setTimeout.  
at mapper (…/node\_modules/jest-jasmine2/build/queueRunner.js:25:45)  
Test Suites: 1 failed, 1 total  
Tests: 0 total  
Snapshots: 0 total  
Time: 242.393s  
Ran all test suites matching /e2e/i with tests matching “^((?!:ios:).)_ $”.  
child\_process.js:644  
throw err;  
^  
Error: Command failed: node\_modules/.bin/jest “e2e” --config=e2e/config.json --maxWorkers=1 ‘–testNamePattern=^((?!:ios:).)\*$’  
at checkExecSyncError (child\_process.js:601:13)  
at Object.execSync (child\_process.js:641:13)  
at runJest (/bitrise/src/node\_modules/detox/local-cli/detox-test.js:166:6)  
at run (/bitrise/src/node\_modules/detox/local-cli/detox-test.js:86:7)  
at Object. (/bitrise/src/node\_modules/detox/local-cli/detox-test.js:229:1)  
at Module.\_compile (module.js:652:30)  
at Object.Module.\_extensions…js (module.js:663:10)  
at Module.load (module.js:565:32)  
at tryModuleLoad (module.js:505:12)  
at Function.Module.\_load (module.js:497:3)**

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 18, 2019, 9:32am UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/2 "2019-03-18T09:32:42Z")

</div>

Hy there, could you check this thread on creating emulators? this is a really instable thing on VM-s unfortunately

> [@Android Emulator in 90 seconds](http://discuss.bitrise.io/t/android-emulator-in-90-seconds/1181/8):
>
> Hy there! there are some issues with these steps, I would recommend you change the stac to the LTS ubuntu one, remove the emulator steps and add a script with this in it: #!/usr/bin/env bash # fail if any commands fails set -e # debug log #set -x cd $ANDROID\_HOME/emulator echo no | avdmanager create avd -n Nexus\_5X\_API\_26 -k "system-images;android-26;google\_apis;x86" --force emulator -avd Nexus\_5X\_API\_26 -no-window -no-audio -debug-init \> /dev/null 2\>&1 & echo "Waiting emulator is ready...…

---

<div class="post-metadata">

**Author:** ![ravi-ts](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@ravi-ts](https://discuss.bitrise.io/u/ravi-ts)\
**Post date:** [March 18, 2019, 9:50am UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/3 "2019-03-18T09:50:58Z")

</div>

Yes, I have followed those steps to create emulator and I found the issue with the emulator’s .ini file and it does not have any parameters like **skin.name** and other configurations.

I am trying to add those parameters on my own, I let you know once I done with it.

---

<div class="post-metadata">

**Author:** ![ravi-ts](https://avatars.discourse-cdn.com/v4/letter/r/fbc32d/32.png) [@ravi-ts](https://discuss.bitrise.io/u/ravi-ts)\
**Post date:** [March 19, 2019, 10:01am UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/4 "2019-03-19T10:01:11Z")

</div>

Seems the config.ini file does not contain much data on linux machine also skins folder missing at android home path, But everything is fine on my Mac local machine.

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 20, 2019, 12:45pm UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/5 "2019-03-20T12:45:08Z")

</div>

Hy there, Could you please enable support-user on the settings tab of the app and send us a build’s ulr please, we would like to check out some configs, and fire up some test builds if it’s ok with you

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [March 25, 2019, 12:43pm UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/6 "2019-03-25T12:43:32Z")

</div>

Hy there, could you check this thread on setting up detox tests?  
[http://discuss.bitrise.io/t/app-testing-with-detox/6996](http://discuss.bitrise.io/t/app-testing-with-detox/6996)  
also run this script before you fire up the test:

```auto
- script@1.1.5:
        title: Add Missing Properties
        inputs:
        - content: |-
            #!/usr/bin/env bash
            # fail if any commands fails
            set -e
            # debug log
            set -x

            echo "
            hw.lcd.height=1920
            hw.lcd.width=1080
            hw.lcd.density=161
            skin.name=240x426" >> /root/.android/avd/Nexus_5X_API_26.avd/config.ini

```

---

<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:** [April 24, 2019, 12:43pm UTC](https://discuss.bitrise.io/t/emulator-with-name-nexus-6-api-26-has-a-corrupt-config-ini-file-try-fixing-it-by-recreating-an-emulator/8438/7 "2019-04-24T12:43:34Z")

</div>

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