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 won't send files #777

Closed
claytankozmo opened this issue Aug 7, 2024 · 2 comments
Closed

Croc won't send files #777

claytankozmo opened this issue Aug 7, 2024 · 2 comments

Comments

@claytankozmo
Copy link

claytankozmo commented Aug 7, 2024

It worked several dozen times in the past, and all of the sudden wouldn't. I have updated croc using scoop to the newest version, uninstalled and reinstalled with no luck.

https://i.imgur.com/L3DWPLQ.png

@nabadvin
Copy link

nabadvin commented Aug 7, 2024

Same issue here! Using croc version v10.0.11 on Ubuntu 20.04.6 LTS:

$ croc --debug send xxx.pdf 
[debug]	10:55:27 cli.go:212: debug mode on
[debug]	10:55:27 cli.go:216: public IP address: 213.195.117.152
[debug]	10:55:27 croc.go:516: hashed /home/arakelov/xxx.pdf to 305facd19bc57c18 using xxhash
[debug]	10:55:27 croc.go:521: file 0 info: {Name:xxx.pdf FolderRemote:./ FolderSource:/home/arakelov Hash:[48 95 172 209 155 197 124 24] Size:26327 ModTime:2023-10-12 20:43:25.044536244 +0200 CEST IsCompressed:false IsEncrypted:false Symlink: Mode:-rw-rw-r-- TempFile:false IsIgnored:false}
Sending 0 files (25.7 kB)[debug]        10:55:27 croc.go:525: longestFilename: 7
Sending 'xxx.pdf' (25.7 kB)      
Code is: 3035-average-neon-message
On the other computer run

croc 3035-average-neon-message
[debug]	10:55:27 croc.go:683: host: '2a01:4ff:1f0:c10b::1', port: '9009'
[debug]	10:55:27 croc.go:689: got host '2a01:4ff:1f0:c10b::1' and port '9009'
[debug]	10:55:27 croc.go:691: trying connection to [2a01:4ff:1f0:c10b::1]:9009
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9009
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9013
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9010
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9011
[debug]	10:55:27 tcp.go:79: starting with password 'pass123'
[info]	2024/08/07 10:55:27 starting TCP server on 0.0.0.0:9012
[debug]	10:55:27 comm.go:78: dialing to [2a01:4ff:1f0:c10b::1]:9009 with timelimit 100ms
[debug]	10:55:27 comm.go:83: comm.NewConnection failed: dial tcp [2a01:4ff:1f0:c10b::1]:9009: connect: network is unreachable
[debug]	10:55:27 tcp.go:483: comm.NewConnection failed: dial tcp [2a01:4ff:1f0:c10b::1]:9009: connect: network is unreachable
[debug]	10:55:27 croc.go:697: could not establish '[2a01:4ff:1f0:c10b::1]:9009'
[debug]	10:55:27 croc.go:683: host: '5.78.91.237', port: '9009'
[debug]	10:55:27 croc.go:689: got host '5.78.91.237' and port '9009'
[debug]	10:55:27 croc.go:691: trying connection to 5.78.91.237:9009
[debug]	10:55:27 comm.go:78: dialing to 5.78.91.237:9009 with timelimit 5s
[debug]	10:55:27 comm.go:87: connected to '5.78.91.237:9009'
[debug]	10:55:27 comm.go:151: initial read error: EOF
[debug]	10:55:27 tcp.go:500: EOF
[debug]	10:55:27 croc.go:697: could not establish '5.78.91.237:9009'
[debug]	10:55:27 croc.go:704: could not connect to 5.78.91.237:9009: EOF
[debug]	10:55:27 croc.go:810: error from errchan: could not connect to 5.78.91.237:9009: EOF
2024/08/07 10:55:27 could not connect to 5.78.91.237:9009: EOF

It works, though, on a mobile network, using my mobile phone as an access point. So it seems that the error is network dependant.

UPDATE: I found the problem while reading https://github.com/schollz/croc/issues/773
So, I used my own relay and the problem was gone!

@schollz
Copy link
Owner

schollz commented Aug 7, 2024

Hi @nabadvin + @claytankozmo

It appears that the public server is currently at capacity from the sender IP address. When LAN connections aren't established and users aren't utilizing their private relay, the system defaults to the public server. The bandwidth usage of the public server incurs monthly costs for me, leading to a limit on the data that can be sent.

If you could sponsor me on GitHub, I'd be happy to remove this limit for you: GitHub Sponsor.

@schollz schollz closed this as completed Aug 7, 2024
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

3 participants