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

croc can not send file to another #405

Closed
gengwb opened this issue Jul 9, 2021 · 6 comments · Fixed by #422
Closed

croc can not send file to another #405

gengwb opened this issue Jul 9, 2021 · 6 comments · Fixed by #422
Labels

Comments

@gengwb
Copy link

gengwb commented Jul 9, 2021

description: I just want to test croc between mac and ubantu, i send a file on mac , when i recieve the file on ubantu, ubantu raise "securing channel...2021/07/09 14:44:37 room not ready", I check the croc version on both mac and ubantu, it is a same version which is "croc version v9.2.0-d442755"

croc version: v9.2.0-d442755

@gengwb gengwb added the bug label Jul 9, 2021
@mawoka-myblock
Copy link

Maybe try the same with the --debug-flag

@yair-mantis
Copy link

both windows server 2019

PS C:\ring_cli> croc --debug 8441-origami-tictac-legal
[debug] 15:21:36 cli.go:157: debug mode on
[debug] 15:21:36 croc.go:164: options: {IsSender:false SharedSecret:8441-origami-tictac-legal Debug:true RelayAddress:33e.33.133.120:9009 RelayAddress6: RelayPorts:[] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:false DisableLocal:false OnlyLocal:false IgnoreStdin:false Ask:false SendingText:false NoCompress:false IP: Overwrite:false Curve:siec HashAlgorithm:}
connecting...[debug]    15:21:36 croc.go:523: attempt to discover peers
[debug] 15:21:36 croc.go:585: discoveries: []
[debug] 15:21:36 croc.go:586: establishing connection
[debug] 15:21:36 croc.go:602: got host '33e.33.133.120' and port '9009'
[debug] 15:21:36 croc.go:604: trying connection to 33e.33.133.120:9009
[debug] 15:21:36 comm.go:59: connected to '33e.33.133.120:9009'
[debug] 15:21:36 tcp.go:439: strong key: 6a58e8e0358fb819fc78d90a8adefb8e9f058e1ab195f36e31f7a9077b3012aa
[debug] 15:21:36 tcp.go:451: sending password
[debug] 15:21:36 tcp.go:460: waiting for first ok
[debug] 15:21:36 tcp.go:475: sending room
[debug] 15:21:36 tcp.go:484: waiting for room confirmation
[debug] 15:21:36 tcp.go:497: all set
[debug] 15:21:36 croc.go:617: receiver connection established: &{connection:0xc000220040}
[debug] 15:21:36 croc.go:618: banner: 9010,9011,9012,9013
[debug] 15:21:36 croc.go:623: sending ips?
[debug] 15:21:36 croc.go:632: ips data: �
[debug] 15:21:36 croc.go:635: ips unmarshal error: invalid character '\x01' looking for beginning of value
[debug] 15:21:36 croc.go:685: exchanged header message
securing channel...[debug]      15:21:36 croc.go:703: ready
[debug] 15:21:36 message.go:47: writing pake message (unencrypted)
[debug] 15:21:37 compress.go:50: error copying data: unexpected EOF
[debug] 15:21:37 croc.go:963: problem with decoding: unexpected end of JSON input
[debug] 15:21:37 croc.go:729: got error processing: problem with decoding: unexpected end of JSON input
[debug] 15:21:37 croc.go:765: error: problem with decoding: unexpected end of JSON input
2021/08/06 15:21:37 room not ready

@schollz
Copy link
Owner

schollz commented Aug 6, 2021

@yair-mantis can you show version info for both

@LAIHeisenberg
Copy link

@yair-mantis can you show version info for both

i got same problem
v8.6.6-e7ed4fc to v9.3.0-94b2aff

@ProactiveServices
Copy link

I've just come across this problem and think I've solved it. See issue #417. Presumably, the --curve and --hashalogrithm switches should select a default value if it's not passed any value, as well? You need to add:

"Curve": "siec",
"HashAlgorithm": "xxhash"

...to your receive.json config file and

"Curve": "siec",
"HashAlgorithm": ""

to your send.json.

I'm not sure if send.json's HashAlgorithm being sent to null is correct here, but it's what the --remember created for me, and it works.

schollz added a commit that referenced this issue Oct 2, 2021
Do not override defaults with empty values
@gaia
Copy link

gaia commented Sep 28, 2023

I've had the same issue on and off on different machines for months... sometimes i update to the latest version (on both sender and receiver) and it works, sometimes it doesn't help.

[debug] 20:22:25 cli.go:147: debug mode on
[debug] 20:22:25 croc.go:181: options: {IsSender:false SharedSecret:6206-imitate-symbol-satire Debug:true RelayAddress:5.161.69.143:9009 RelayAddress6:[2a01:4ff:f0:23c2::14c:1]:9009 RelayPorts:[] RelayPassword:pass123 Stdout:false NoPrompt:false NoMultiplexing:false DisableLocal:false OnlyLocal:false IgnoreStdin:false Ask:false SendingText:false NoCompress:false IP: Overwrite:false Curve:p256 HashAlgorithm: ThrottleUpload: ZipFolder:false TestFlag:false}
connecting...[debug]    20:22:25 croc.go:684: attempt to discover peers
[debug] 20:22:25 croc.go:749: discoveries: []
[debug] 20:22:25 croc.go:750: establishing connection
[debug] 20:22:25 croc.go:766: got host '2a01:4ff:f0:23c2::14c:1' and port '9009'
[debug] 20:22:25 croc.go:768: trying connection to [2a01:4ff:f0:23c2::14c:1]:9009
[debug] 20:22:25 comm.go:78: dialing to [2a01:4ff:f0:23c2::14c:1]:9009 with timelimit 200ms
[debug] 20:22:25 comm.go:83: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 20:22:25 tcp.go:446: comm.NewConnection failed: dial tcp [2a01:4ff:f0:23c2::14c:1]:9009: connect: network is unreachable
[debug] 20:22:25 croc.go:774: could not establish '[2a01:4ff:f0:23c2::14c:1]:9009'
[debug] 20:22:25 croc.go:766: got host '5.161.69.143' and port '9009'
[debug] 20:22:25 croc.go:768: trying connection to 5.161.69.143:9009
[debug] 20:22:25 comm.go:78: dialing to 5.161.69.143:9009 with timelimit 5s
[debug] 20:22:25 comm.go:87: connected to '5.161.69.143:9009'
[debug] 20:22:25 tcp.go:476: strong key: 5f48a935eccc1e7f9c321bd5d967a13b88c55830057d169c4e6e1f044af2da55
[debug] 20:22:25 tcp.go:490: sending password
[debug] 20:22:25 tcp.go:501: waiting for first ok
[debug] 20:22:25 tcp.go:519: sending room
[debug] 20:22:25 tcp.go:530: waiting for room confirmation
[debug] 20:22:25 tcp.go:546: all set
[debug] 20:22:25 croc.go:781: receiver connection established: &{connection:0xc000392010}
[debug] 20:22:25 croc.go:782: banner: 9010,9011,9012,9013
[debug] 20:22:25 croc.go:790: sending ips?
[debug] 20:22:25 croc.go:799: ips data: �
[debug] 20:22:25 croc.go:802: ips unmarshal error: invalid character '\x01' looking for beginning of value
[debug] 20:22:25 croc.go:855: exchanged header message
securing channel...[debug]      20:22:25 croc.go:873: ready
[debug] 20:22:25 message.go:61: writing pake message (unencrypted)
[debug] 20:22:26 compress.go:50: error copying data: unexpected EOF
[debug] 20:22:26 croc.go:1225: problem with decoding: unexpected end of JSON input
[debug] 20:22:26 croc.go:899: got error processing: problem with decoding: unexpected end of JSON input
[debug] 20:22:26 croc.go:953: error: problem with decoding: unexpected end of JSON input
2023/09/27 20:22:26 room not ready

croc version v9.6.5-8ab65d0 on both. both sender and receiver are in the same LAN (though this happens also when that is not the case)

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

Successfully merging a pull request may close this issue.

7 participants