React-native: Could not list contents of `/path/to/project/.buckd/sock` when generating signed apk

Created on 26 Jun 2016  ·  6Comments  ·  Source: facebook/react-native

  • [x] Provide a minimal code snippet / rnplay example that reproduces the bug.
    Only when I was generating signed apk.
  • [x] Provide screenshots where appropriate

When executing ./gradlew assembleRelease:

...
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:bundleReleaseJsAndAssets

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of '/Users/wildcat/WebstormProjects/queshu/.buckd/sock'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

With --debug:

...
22:19:46.365 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory                                                      ]                                            Resolved configuration cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
22:19:46.365 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory                                           ]                                            Deleted 2 resolution results binary files in 0.002 secs
22:19:46.365 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build.
22:19:46.623 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder                                                                             ]                                            Dispatching close input message: CloseInput[id=8f55d3bc-926c-4bc3-b50c-023086203b88.2]
22:19:46.623 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 11: dispatching class org.gradle.launcher.daemon.protocol.CloseInput
22:19:46.624 [INFO] [org.gradle.launcher.daemon.client.DaemonClient] Received result CommandFailure[value=org.gradle.launcher.exec.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Could not list contents of '/Users/wildcat/WebstormProjects/queshu/.buckd/sock'.] from daemon DaemonInfo{pid=42671, address=[b889bab8-f701-4b94-9282-b08c1c4e171a port:55820, addresses:[/0:0:0:0:0:0:0:1, /127.0.0.1]], idle=true, context=DefaultDaemonContext[uid=b59af716-c9d2-453b-97fc-0401a12e14eb,javaHome=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home,daemonRegistryDir=/Users/wildcat/.gradle/daemon,pid=42671,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant]}.
22:19:46.625 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished
22:19:46.626 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection]thread 1: connection stop
  • [x] What's the version of React Native you're using?
    0.28.0
  • [x] Does this occur on iOS, Android or both?
    Only Android
  • [x] Are you using Mac, Linux or Windows?
    Mac OS X 10.11
  • Additional Info:
    When I execute buck in my project direction:
➜  queshu git:(master) ✗ buck
BUILD FAILED: Failed to read NDK version from /Users/wildcat/Library/Android/android-ndk-r11c
Locked

Most helpful comment

I had the same issue... Just delete lock file and buildings works. I think we need there some kind of filter to ignore lock files.
I'll look into it tomorrow.

All 6 comments

I had the same issue... Just delete lock file and buildings works. I think we need there some kind of filter to ignore lock files.
I'll look into it tomorrow.

@K-Leon Thanks.
I initialised a news project, coping the codes to the project, problem solved.

I've recently been getting this error a lot. What were the steps to fix this? I've had to remove the project and re-clone to get it to work, but then the error will randomly popup sometimes again and I have to repeat the process.

Edit: rm -rf ./buckd worked for me. Seemed a bit scary to do, but validated it seems like an okay solution after reading the documentation https://buckbuild.com/command/buckd.html#content

The .buckd directory in the workspace is deleted

as it will just kill your buck process

rm -rf ./buckd also worked for me 👍

rm -rf ./buckd seems good way but its not working on linux !?

Yes

Was this page helpful?
0 / 5 - 0 ratings