Comments (15)
This mean that we can't use the "old process" with automated generated code ?
from croc.
export secret on both computers
from croc.
Hey @schollz thanks for the prompt reply - I've tried exporting different and the same secrets on both machines and get the same error.
from croc.
@AndrewSkelton @meepmeep try 10.0.1
from croc.
\e[0m== Architecture detected as x86_64\e[0m
\e[0m== OS detected as Darwin\e[0m
https://github.com/schollz/croc/releases/download/v10.0.1/croc_v10.0.1_macOS-64bit.tar.gz /var/folders/dl/yg3x4x1s75bbf9ph3yd4jrbr0000gn/T/croc.XXXXXX.6vIxAgSgQ0 croc_v10.0.1_macOS-64bit.tar.gz
curl: (22) The requested URL returned error: 404
\e[0;31m== Return code of download tool returned an unexpected value of 22\e[0m
from croc.
@AndrewSkelton I think you hit the server as binaries were being generated. try it again
from croc.
@schollz - too keen obviously
Same error (10.1 on both machines)
Debug trace seems fine up to the end
[debug] 16:55:30 croc.go:1047: exchanged header message
securing channel...[debug] 16:55:30 croc.go:1065: ready
[debug] 16:55:30 message.go:61: writing pake message (unencrypted)
[debug] 16:55:31 comm.go:151: initial read error: EOF
[debug] 16:55:31 croc.go:1083: got error receiving: EOF
2024/05/23 16:55:31 could not secure channel
from croc.
are you using environmental variable?
from croc.
If I have the same secret on both machines (not sure if that's the assumption?)
[debug] 16:58:06 croc.go:958: data:
[debug] 16:58:06 croc.go:1047: exchanged header message
securing channel...[debug] 16:58:06 croc.go:1065: ready
[debug] 16:58:06 message.go:61: writing pake message (unencrypted)
[debug] 16:58:07 compress.go:50: error copying data: unexpected EOF
[debug] 16:58:07 croc.go:1434: problem with decoding: unexpected end of JSON input
[debug] 16:58:07 croc.go:1091: data:
[debug] 16:58:07 croc.go:1092: got error processing: problem with decoding: unexpected end of JSON input
[debug] 16:58:07 croc.go:1146: error: problem with decoding: unexpected end of JSON input
2024/05/23 16:58:07 room (secure channel) not ready, maybe peer disconnected
Both machines have environment variables set with export CROC_SECRET="xxx"
Echoing on both appears to indicate they're set. (echo $CROC_SECRET
)
from croc.
and how are you invoking croc
at the command line?
from croc.
## Sender
export CROC_SECRET="xxx"
croc send x.tar.gz
Sending 'x.tar.gz' (54.5 kB)
Code is: xxx
On the other computer run
croc xxx
## Receiver
export CROC_SECRET="xxx"
croc xxx
securing channel...2024/05/23 17:09:46 could not secure channel
from croc.
I can't replicate.
try removing your croc config dirs on both computers: ~/.config/croc
from croc.
Thanks for checking @schollz. Clearing the config didn't help. I reverted the machines back to v9.6.14 (which I had left on another machine), and that worked, so not sure what the root cause is, but thanks all the same for checking.
from croc.
@AndrewSkelton try v10.0.2, I think I found the culprit and fixed it
from croc.
indeed, v10.0.2 fixed it, thank you !!
from croc.
Related Issues (20)
- Extend "--transfers" flag to relay in addition to send HOT 1
- Folders and Chinese name files cannot be transferred
- winget integration now requires Microsoft CLA HOT 5
- curl command no longer works HOT 4
- create flag with warning to enable classic mode for passing shared secret
- show hash progress on large files
- files with filenames containing [] or () can no longer be sent HOT 1
- croc truncates files when asked not to overwrite HOT 10
- --yes option does not work as expected HOT 1
- --throttleupload option has no effect HOT 9
- croc --help hangs with broken dns
- Is there support for calling as a Go package or any plans to support it? HOT 1
- Sender still waiting if receiver wrote the correct channel but the incorrect code HOT 3
- Invalid filename detected HOT 7
- Cannot send and receive from Android Termux HOT 10
- Room not ready on any send HOT 1
- Compile 32-bit ARM build with lesser FPU requirements for compatibility with old Raspberry Pi units HOT 3
- There is something with the 10.0.10 win64 zip-file. If I download it, my PC delete it, I cant even unzip it. Virus? HOT 2
- [Question]: Is it possible to show the connection mechanism? HOT 2
- croc --classic Yes/no prompt default is backwards HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from croc.