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

securing channel...room (secure channel) not ready, maybe peer disconnected #845

Open
churongcon opened this issue Nov 16, 2024 · 1 comment

Comments

@churongcon
Copy link

My sender pc:

On the other computer run:
(For Windows)
    croc 2268-cotton-owner-anita
(For Linux/OSX)
    CROC_SECRET="2268-cotton-owner-anita" croc
Code copied to clipboard[debug] 21:01:38 tcp.go:79: starting with password 'pass123'
[info]  2024/11/15 21:01:38 starting TCP server on 0.0.0.0:9009
[debug] 21:01:38 croc.go:715: could not connect to : could not connect
[debug] 21:01:38 croc.go:821: error from errchan: could not connect to : could not connect
[debug] 21:01:38 tcp.go:79: starting with password 'pass123'
[debug] 21:01:38 tcp.go:79: starting with password 'pass123'
[debug] 21:01:38 tcp.go:79: starting with password 'pass123'
[debug] 21:01:38 tcp.go:79: starting with password 'pass123'
[info]  2024/11/15 21:01:38 starting TCP server on 0.0.0.0:9010
[info]  2024/11/15 21:01:38 starting TCP server on 0.0.0.0:9011
[info]  2024/11/15 21:01:38 starting TCP server on 0.0.0.0:9012
[info]  2024/11/15 21:01:38 starting TCP server on 0.0.0.0:9013
[debug] 21:01:38 croc.go:605: establishing connection
[debug] 21:01:38 comm.go:78: dialing to 127.0.0.1:9009 with timelimit 30s
[debug] 21:01:38 tcp.go:129: client 127.0.0.1:55362 connected
[debug] 21:01:38 comm.go:87: connected to '127.0.0.1:9009'
[debug] 21:01:38 tcp.go:225: Abytes: {"Role":0,"Uᵤ":793136080485469241208656611513609866400481671853,"Uᵥ":18458907634222644275952014841865282643645472623913459400556233196838128612339,"Vᵤ":1086685267857089638167386722555472967068468061489,"Vᵥ":19593504966619549205903364028255899745298716108914514072669075231742699650911,"Xᵤ":7688041165230709187196394131111758950972862912588541668767080703296668001917,"Xᵥ":14790584514876318379444399750474198737091650283946292757001911670267542050285,"Yᵤ":null,"Yᵥ":null,"P":null,"Pw":null,"Vpwᵤ":null,"Vpwᵥ":null,"Upwᵤ":null,"Upwᵥ":null,"Aα":null,"Aαᵤ":null,"Aαᵥ":null,"Zᵤ":null,"Zᵥ":null,"K":null}
[debug] 21:01:38 tcp.go:244: strongkey: 58d547ce747c816e3f0932585e8cbb5146348056aeb61d5629bafd054e89f47d
[debug] 21:01:38 tcp.go:513: strong key: 58d547ce747c816e3f0932585e8cbb5146348056aeb61d5629bafd054e89f47d
[debug] 21:01:38 tcp.go:527: sending password
[debug] 21:01:38 tcp.go:256: waiting for password
[debug] 21:01:38 tcp.go:538: waiting for first ok
[debug] 21:01:38 tcp.go:279: sending '9010,9011,9012,9013'
[debug] 21:01:38 tcp.go:290: waiting for answer
[debug] 21:01:38 tcp.go:556: sending room; 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650
[debug] 21:01:38 tcp.go:567: waiting for room confirmation
[debug] 21:01:38 tcp.go:321: room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 has 1
[debug] 21:01:38 tcp.go:133: room: 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650
[debug] 21:01:38 tcp.go:134: err: <nil>
[debug] 21:01:38 tcp.go:583: all set
[debug] 21:01:38 croc.go:608: banner: 9010,9011,9012,9013
[debug] 21:01:38 croc.go:615: local connection established: &{connection:0xc00039a008}
[debug] 21:01:38 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:38 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:38 croc.go:621: got ping
[debug] 21:01:39 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:39 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:39 croc.go:621: got ping
[debug] 21:01:40 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:40 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:40 croc.go:621: got ping
[debug] 21:01:41 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:41 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:41 croc.go:621: got ping
[debug] 21:01:42 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:42 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:42 croc.go:621: got ping
[debug] 21:01:43 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:43 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:43 croc.go:621: got ping
[debug] 21:01:44 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:44 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:44 croc.go:621: got ping
[debug] 21:01:45 tcp.go:147: checking connection of room 46ed3bbe8a6a5638f2c7c0105f1780f27210fef62b73a4d5bc60ca7ed0f60650 for &{connection:0xc0000540b0}
[debug] 21:01:45 tcp.go:155: room: {first:0xc000392130 second:<nil> opened:{wall:13962891317285362660 ext:3288293701 loc:0x12800c0} full:false}
[debug] 21:01:45 croc.go:621: got ping

My receiver pc:
croc
Enter receive code: 2268-cotton-owner-anita
securing channel...room (secure channel) not ready, maybe peer disconnected

Both pc are windows and use lastest croc version

@schollz
Copy link
Owner

schollz commented Nov 16, 2024

Does it happen every time

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