Skip to content

Socket Error: Error: write EPIPE. (on android) #3851

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

Closed
aaayushsingh opened this issue Aug 29, 2018 · 8 comments
Closed

Socket Error: Error: write EPIPE. (on android) #3851

aaayushsingh opened this issue Aug 29, 2018 · 8 comments
Assignees

Comments

@aaayushsingh
Copy link

I was facing #3818 so as suggested, I upgraded to 4.2.3 and seems like the error upgraded itself too.

Here is the new error

Unable to apply changes on device: 192.168.1.100:5555. Error is: Socket Error:
Error: write EPIPE.

I can reproduce this on android device as well as emulator both running android 8.1

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 4.2.3
  • Cross-platform modules: 4.2.0
  • Runtime(s): 4.2.0
@KristianDD KristianDD self-assigned this Aug 29, 2018
@aaayushsingh
Copy link
Author

aaayushsingh commented Aug 29, 2018

Also, still getting this

Successfully installed on device with identifier '192.168.1.100:5555'.
Unable to apply changes on device: 192.168.1.100:5555. Error is: Socket connection timeouted..

no more details in console though. I guess #3818 isn't fully fixed

The workaround is to uninstall app each time. Then it runs fine for 1 time.

@Fatme
Copy link
Contributor

Fatme commented Aug 30, 2018

Hi @aaayushsingh,

Can you execute the command with --log trace and send us the output?

@aaayushsingh
Copy link
Author

there were a lot of similar Shasum lines. here's the last few. Most of the logs above this were cleared

Shasum of file path-to-app/platforms/android/app/src/main/assets/app/tns_modules/zone.js/dist/zone-testing-node-bundle.js is f4c41188276e1e8d66483d035ba652ead918b91f
Shasum of file path-to-app/platforms/android/app/src/main/assets/app/tns_modules/zone.js/dist/zone-testing-bundle.js is dea1421ece4d7e62fa3dd18450413769ecf64dc0
spawn: path-to-library/Library/Android/sdk/platform-tools/adb "-s" "192.168.1.100:5555" "pull" "/data/local/tmp/com.appname.can/hashes" "/var/folders/67/3118wy2554j67wbxrd8th6vc0000gn/T/android-device-hash-service-com.appname.can118731-5214-v1upsv.kzoi"
Result when throw error is false:
{ stdout:
'adb: error: failed to stat remote object '/data/local/tmp/com.appname.can/hashes': No such fileor directory\n',
stderr: '',
exitCode: 1 }

@KristianDD
Copy link
Contributor

Hi @aaayushsingh,

In order to investigate the issue properly we will need the full log.

Could you please try to run the command with --log trace | tee clioutput.txt at the end and wait for the error to occur before stopping the CLI. This will produce a text file called clioutput.txt in the current working directory, which will contain the whole output. Then attach the produced file to a response in this issue.

@allenelega
Copy link

Hi @KristianDD
I am having the same issue after upgrading NS 4.2.4.
Please see the full log below. Thank you.

clioutput.txt

@allenelega
Copy link

@KristianDD
After deleting hooks, platforms,node-modules folders, and npm cache clear -f.
Looks like I bypassed the socket connection timeouted issue.

@dtopuzov dtopuzov closed this as completed Dec 1, 2018
@dtopuzov dtopuzov reopened this Dec 1, 2018
@KristianDD
Copy link
Contributor

Closing due to inactivity.

@PixsaOJ
Copy link

PixsaOJ commented Sep 23, 2024

Still an issue today

killing java, ns clean, adb kill-server seems to fix issue temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants