Skip to content

The push operation failed. However, a manual push was successful. Therefore, an additional parameter --no-push was added.#6850

Open
Klosw wants to merge 6 commits into
Genymobile:masterfrom
Klosw:master
Open

The push operation failed. However, a manual push was successful. Therefore, an additional parameter --no-push was added.#6850
Klosw wants to merge 6 commits into
Genymobile:masterfrom
Klosw:master

Conversation

@Klosw
Copy link
Copy Markdown

@Klosw Klosw commented May 19, 2026

scrcpy 4.0 https://github.com/Genymobile/scrcpy
INFO: ADB device found:
INFO: --> (usb) 9A231FFAZ0098F device Pixel_4
INFO: (tcpip) 192.168.24.193:5555 device SA8255_Cockpit
ERROR: CreateProcessW() error 5
ERROR: Failed to execute: [adb], [-s], [9A231FFAZ0098F], [push], [D:\APP\scrcpy\scrcpy-server], [/data/local/tmp/scrcpy-server.jar]
ERROR: Could not execute "adb push"
ERROR: Server connection failed

D:\APP\scrcpy>adb -s 9A231FFAZ0098F push D:\APP\scrcpy\scrcpy-server /data/local/tmp/scrcpy-server.jar
D:\APP\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 23.6 MB/s (732230 bytes in 0.030s)

The push operation failed. However, manual push was successful. Therefore, an additional parameter --no-push was added, combined with the script runnopush.bat to achieve preview.

push Failed 但是 手动 push 又能成功 所以添加了 一个 --no-push 的参数 结合脚本 runnopush.bat 实现预览

@Klosw Klosw closed this May 19, 2026
@Klosw Klosw reopened this May 19, 2026
@Klosw Klosw changed the title push The push operation failed. However, a manual push was successful. Therefore, an additional parameter --no-push was added. May 19, 2026
@rom1v
Copy link
Copy Markdown
Collaborator

rom1v commented May 19, 2026

The server must be pushed, so I don't see how this option would help.

@Klosw
Copy link
Copy Markdown
Author

Klosw commented May 20, 2026

The server must be pushed, so I don't see how this option would help.

因为在我的电脑上 使用, srcpy 上的 无法 推送 显示推送失败 , 但是手动推送又能成功 . 或者是 让用户手动推送 ,跳过srcpy 的推送 或许是我电脑有些什么特殊性质把 ,这个就放这里把 .

@rom1v
Copy link
Copy Markdown
Collaborator

rom1v commented May 20, 2026

ERROR: CreateProcessW() error 5
ERROR: Failed to execute: [adb], [-s], [9A231FFAZ0098F], [push], [D:\APP\scrcpy\scrcpy-server], [/data/local/tmp/scrcpy-server.jar]
ERROR: Could not execute "adb push"
ERROR: Server connection failed

That's not expected, since adb is in your PATH.

Did you overwrite the ADB environment variable? If so, what if you remove it?
If you did not set it, what if you set it:

set ADB=adb.exe
scrcpy

or

set ADB="D:\APP\scrcpy\adb.exe"
scrcpy

?

@Klosw
Copy link
Copy Markdown
Author

Klosw commented May 21, 2026

ERROR: CreateProcessW() error 5
ERROR: Failed to execute: [adb], [-s], [9A231FFAZ0098F], [push], [D:\APP\scrcpy\scrcpy-server], [/data/local/tmp/scrcpy-server.jar]
ERROR: Could not execute "adb push"
ERROR: Server connection failed

That's not expected, since adb is in your PATH.

Did you overwrite the ADB environment variable? If so, what if you remove it? If you did not set it, what if you set it:

set ADB=adb.exe
scrcpy

or

set ADB="D:\APP\scrcpy\adb.exe"
scrcpy

?

新下载的 4.0版本 可能是我这边的电脑环境问题导致的 , 电脑是域环境 可能是域管理做了限制吧, 能读取到设备 但是无法push serverFile

image
D:\APP\scrcpy-win64-v4.0>set ADB=D:\APP\scrcpy-win64-v4.0\adb.exe

D:\APP\scrcpy-win64-v4.0>scrcpy
scrcpy 4.0 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO:     --> (tcpip)  192.168.190.165:5555            device  SA8255_Cockpit
ERROR: CreateProcessW() error 5
ERROR: Failed to execute: [D:\APP\scrcpy-win64-v4.0\adb.exe], [-s], [192.168.190.165:5555], [push], [D:\APP\scrcpy-win64-v4.0\scrcpy-server], [/data/local/tmp/scrcpy-server.jar]
ERROR: Could not execute "adb push"
ERROR: Server connection failed

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

Successfully merging this pull request may close these issues.

2 participants