Giter Site home page Giter Site logo

Comments (15)

meepmeep avatar meepmeep commented on June 20, 2024 1

This mean that we can't use the "old process" with automated generated code ?

from croc.

schollz avatar schollz commented on June 20, 2024

export secret on both computers

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024

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.

schollz avatar schollz commented on June 20, 2024

@AndrewSkelton @meepmeep try 10.0.1

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024

@schollz

\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.

schollz avatar schollz commented on June 20, 2024

@AndrewSkelton I think you hit the server as binaries were being generated. try it again

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024

@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.

schollz avatar schollz commented on June 20, 2024

are you using environmental variable?

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024

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.

schollz avatar schollz commented on June 20, 2024

and how are you invoking croc at the command line?

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024
## 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.

schollz avatar schollz commented on June 20, 2024

I can't replicate.

try removing your croc config dirs on both computers: ~/.config/croc

from croc.

AndrewSkelton avatar AndrewSkelton commented on June 20, 2024

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.

schollz avatar schollz commented on June 20, 2024

@AndrewSkelton try v10.0.2, I think I found the culprit and fixed it

from croc.

meepmeep avatar meepmeep commented on June 20, 2024

indeed, v10.0.2 fixed it, thank you !!

from croc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.