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

ERROR: Server Connection Failed #2789

Closed
Akslaton opened this issue Nov 15, 2021 · 6 comments
Closed

ERROR: Server Connection Failed #2789

Akslaton opened this issue Nov 15, 2021 · 6 comments

Comments

@Akslaton
Copy link

  • [x ] I have read the FAQ.
  • [x ] I have searched in existing issues.

Environment

  • OS: Windows 10
  • scrcpy version: win64-v1.20
  • installation method: Windows release
  • device model: Pixel 4a (Running GrapheneOS)
  • Android version: 12

Describe the bug

Over USB Cable, ADB and SCRCPY sees my phone, pushes the SCRCPY Server file, and then fails to connect to the server.

PS C:\platform-tools> ./scrcpy
INFO: scrcpy 1.20 <https://github.com/Genymobile/scrcpy>
C:\platform-tools\scrcpy-server: 1 file pushed, 0 skipped. 94.2 MB/s (37139 bytes in 0.000s)
[server] INFO: Device: Google Pixel 4a (Android 12)
ERROR: Server connection failed

Thank you

@rom1v
Copy link
Collaborator

rom1v commented Nov 15, 2021

Is another scrcpy instance running at the same time? (#2779)

Could you run scrcpy -Vdebug?

@Akslaton
Copy link
Author

I don't think there are any other Scrcpy instances running.

PS C:\platform-tools> ./scrcpy -Vdebug
INFO: scrcpy 1.20 https://github.com/Genymobile/scrcpy
DEBUG: Using server (portable): C:\platform-tools\scrcpy-server
DEBUG: Screensaver enabled
C:\platform-tools\scrcpy-server: 1 file pu...skipped. 79.9 MB/s (37139 bytes in 0.000s)
[server] INFO: Device: Google Pixel 4a (Android 12)
[server] DEBUG: Controller stopped
[server] DEBUG: Using encoder: 'c2.qti.avc.encoder'
[server] DEBUG: Screen streaming stopped
[server] DEBUG: Device message sender stopped
DEBUG: Interrupting socket
DEBUG: Server disconnected
DEBUG: Server terminated
ERROR: Server connection failed

@rom1v
Copy link
Collaborator

rom1v commented Nov 16, 2021

Try with another encoder: https://github.com/Genymobile/scrcpy#encoder

@rom1v
Copy link
Collaborator

rom1v commented Nov 16, 2021

Also, could you test the version from #2783 and see if the console output is different?

@Akslaton
Copy link
Author

Yesterday after work, I seem to have gotten SCRCPY working.
I tried closing a few programs that run in the system tray... I closed Discord, Syncthing and I disconnected my ExpressVPN.
Unfortunately I closed them all at once and then tried SCRCPY, so I have no idea which one was causing the server connection fail error.

I've tried turning those programs back on one at a time to see if the issue returned and it has not, which is king of frustrating from a troubleshooting perspective.

@rom1v
Copy link
Collaborator

rom1v commented Nov 16, 2021

If that happen again, switch to the version from #2783, I'm pretty sure that it is related if you're on Windows.

@rom1v rom1v closed this as completed Dec 5, 2021
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

2 participants