8000 trz upload failed · Issue #47 · trzsz/trzsz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

trz upload failed #47

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
zkcrescent opened this issue Nov 6, 2023 · 11 comments
Closed

trz upload failed #47

zkcrescent opened this issue Nov 6, 2023 · 11 comments

Comments

@zkcrescent
Copy link

Traceback (most recent call last):

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/iterm2/main.py", line 381, in main

upload_files(args, loop, connection, session, False, remote_is_windows)

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/iterm2/main.py", line 186, in upload_files

config = transfer.recv_config()

         ^^^^^^^^^^^^^^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/libs/transfer.py", line 80, in recv_config

config = utils.recv_json('CFG', True)

         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/libs/utils.py", line 564, in recv_json

dic = recv_string(typ, may_has_junk)

      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/libs/utils.py", line 479, in recv_string

return decode_buffer(recv_check(typ, may_has_junk)).decode('utf8')

                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/opt/homebrew/lib/python3.11/site-packages/trzsz/libs/utils.py", line 450, in recv_check

raise TrzszError(encode_buffer(line.encode('utf8')), 'colon')

trzsz.libs.utils.TrzszError: [TrzszError] colon: eJwDAAAAAAE=

@lonnywong
Copy link
Member

服务器是什么环境( 操作系统、有没有运行 tmux 或 screen 等 )?
在服务器上运行 trz -v 看看是什么版本。
在本地电脑上运行 trzsz-iterm2 -v 看看是什么版本。

@zkcrescent
Copy link
Author

Apple M1 Pro macOS 13.5.1 , ITERM + TMUX ,
服务器版本: trz (trzsz) go 1.1.6
本地版本: trzsz-iterm2 (trzsz) py 1.1.4

@lonnywong
Copy link
Member

本地安装 https://github.com/trzsz/trzsz-go 试试看会不会有同样的问题?

brew install trzsz-go
brew link --overwrite trzsz-go

然后这样登录服务器:

trzsz ssh xxx

然后 trz 上传,看看会不会有类似的问题?

@lonnywong
Copy link
Member

@zkcrescent 你是不是先运行 tmux ,然后再运行 ssh 登录远程服务器,然后 trz 上传文件的?

@zkcrescent
Copy link
Author

@zkcrescent 你是不是先运行 tmux ,然后再运行 ssh 登录远程服务器,然后 trz 上传文件的?

对的

@zkcrescent
Copy link
Author

本地安装 https://github.com/trzsz/trzsz-go 试试看会不会有同样的问题?

brew install trzsz-go
brew link --overwrite trzsz-go

然后这样登录服务器:

trzsz ssh xxx

然后 trz 上传,看看会不会有类似的问题?

该方法可行~感谢帮助

@zkcrescent
Copy link
Author

顺带问一句如何上传的时候保证权限一致上传

@lonnywong
Copy link
Member

@zkcrescent 你是不是先运行 tmux ,然后再运行 ssh 登录远程服务器,然后 trz 上传文件的?

对的

文档有写的( 第一条 ):https://github.com/trzsz/trzsz#trouble-shooting
中文:https://trzsz.github.io/cn/

另外,也可以用 tssh 代替 trzsz ssh,速度会更快。

@lonnywong
Copy link
Member

顺带问一句如何上传的时候保证权限一致上传

现在还不支持,等我有空实现一下。

@zkcrescent
Copy link
Author

@zkcrescent 你是不是先运行 tmux ,然后再运行 ssh 登录远程服务器,然后 trz 上传文件的?

对的

文档有写的( 第一条 ):https://github.com/trzsz/trzsz#trouble-shooting 中文:https://trzsz.github.io/cn/

另外,也可以用 tssh 代替 trzsz ssh,速度会更快。

好的,感谢支持

lonnywong added a commit that referenced this issue Nov 11, 2023
@lonnywong
Copy link
Member

顺带问一句如何上传的时候保证权限一致上传

@zkcrescent go 版 trzsz v1.1.7 支持保持权限一致了。

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
0