Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not list contents of /path/to/project/.buckd/sock when generating signed apk #8444

Closed
5 tasks done
imWildCat opened this issue Jun 26, 2016 · 6 comments
Closed
5 tasks done
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@imWildCat
Copy link

imWildCat commented Jun 26, 2016

  • Provide a minimal code snippet / rnplay example that reproduces the bug.
    Only when I was generating signed apk.
  • 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
  • What's the version of React Native you're using?
    0.28.0
  • Does this occur on iOS, Android or both?
    Only Android
  • 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
@K-Leon
Copy link
Contributor

K-Leon commented Jun 27, 2016

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.

@imWildCat
Copy link
Author

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

@jpshelley
Copy link
Contributor

jpshelley commented Feb 9, 2017

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

@emmajam
Copy link

emmajam commented Mar 13, 2017

rm -rf ./buckd also worked for me 👍

@iraniamir
Copy link

iraniamir commented Jan 9, 2018

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

@ghost
Copy link

ghost commented Jan 9, 2018

Yes

@facebook facebook locked as resolved and limited conversation to collaborators Jun 28, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants