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

Relay broken? #56

Closed
mikemadden42 opened this issue Oct 29, 2017 · 7 comments
Closed

Relay broken? #56

mikemadden42 opened this issue Oct 29, 2017 · 7 comments

Comments

@mikemadden42
Copy link

Is the relay possibly broken or down? I cannot get a sample file to send.

$ croc -send Rick\ Astley\ -\ Never\ Gonna\ Give\ You\ Up.mp4

                                ,_
                               >' )
   croc version                ( ( \ 
                                || \ 
                 /^^^^\         ||
    /^^\________/0     \        ||
   (                    `~+++,,_||__,,++~^^^^^^^
 ...V^V^V^V^V^V^\...............................
 

Sending 47 MB file named 'Rick Astley - Never Gonna Give You Up.mp4'
Code is: ****************
@schollz
Copy link
Owner

schollz commented Oct 29, 2017

What happens when you send it? The relay is up.

@mikemadden42
Copy link
Author

mikemadden42 commented Oct 29, 2017

I don't see it making any progress sending the file.

$ croc -send Rick\ Astley\ -\ Never\ Gonna\ Give\ You\ Up.mp4

                                ,_
                               >' )
   croc version                ( ( \ 
                                || \ 
                 /^^^^\         ||
    /^^\________/0     \        ||
   (                    `~+++,,_||__,,++~^^^^^^^
 ...V^V^V^V^V^V^\...............................
 

Sending 47 MB file named 'Rick Astley - Never Gonna Give You Up.mp4'
Code is: ****************

I see it creating some temporary files. However I never see the process complete.

$ ls -rt Rick*
Rick Astley - Never Gonna Give You Up.mp4
Rick Astley - Never Gonna Give You Up.mp4.enc.3
Rick Astley - Never Gonna Give You Up.mp4.enc.2
Rick Astley - Never Gonna Give You Up.mp4.enc.1
Rick Astley - Never Gonna Give You Up.mp4.enc.0

@mikemadden42
Copy link
Author

Here's the output of running with debug mode.

                               >' )
   croc version                ( ( \ 
                                || \ 
                 /^^^^\         ||
    /^^\________/0     \        ||
   (                    `~+++,,_||__,,++~^^^^^^^
 ...V^V^V^V^V^V^\...............................
 

time="2017-10-29T20:23:30-05:00" level=debug msg="checking code validity"
time="2017-10-29T20:23:30-05:00" level=debug msg="[]"
time="2017-10-29T20:23:30-05:00" level=debug msg="code too short"
time="2017-10-29T20:23:30-05:00" level=debug msg="[]"
time="2017-10-29T20:23:30-05:00" level=debug msg=false
time="2017-10-29T20:23:30-05:00" level=debug msg="[4 subway apollo channel]"
time="2017-10-29T20:23:30-05:00" level=debug msg="[4 subway apollo channel]"
time="2017-10-29T20:23:30-05:00" level=debug msg=true
time="2017-10-29T20:23:30-05:00" level=debug msg=encrypting...
Sending 47 MB file named 'Rick Astley - Never Gonna Give You Up.mp4'
Code is: 4-subway-apollo-channel
time="2017-10-29T20:23:31-05:00" level=debug msg="relay says: who?" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="telling relay: s.4-subway-apollo-channel" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="waiting for ok from relay" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="relay says: who?" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="relay says: who?" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="telling relay: s.4-subway-apollo-channel" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="telling relay: s.4-subway-apollo-channel" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="relay says: who?" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="telling relay: s.4-subway-apollo-channel" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="waiting for ok from relay" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="waiting for ok from relay" code=4-subway-apollo-channel sender?=true
time="2017-10-29T20:23:31-05:00" level=debug msg="waiting for ok from relay" code=4-subway-apollo-channel sender?=true

@schollz
Copy link
Owner

schollz commented Oct 30, 2017

Thanks @mikemadden42 . That all looks fine. Its waiting for the receiver to connect to the relay. Can you run debug on the receiver while you do the transfer?

@mikemadden42
Copy link
Author

mikemadden42 commented Nov 2, 2017

If I send / receive around the same time it works fine. I was assuming I would first need to upload the file and the retrieve it later.

$ croc

                                ,_
                               >' )
   croc version                ( ( \ 
                                || \ 
                 /^^^^\         ||
    /^^\________/0     \        ||
   (                    `~+++,,_||__,,++~^^^^^^^
 ...V^V^V^V^V^V^\...............................
 

Enter receive code: 4-abraham-scoop-austin
Receiving file (47 MB) into: Rick Astley - Never Gonna Give You Up.mp4
ok? (y/n): y


Receiving (<-24.207.128.6042221)..
  79% |███████████████████████████████         | [2m44s:43s]

@schollz
Copy link
Owner

schollz commented Nov 2, 2017

@mikemadden42 There is no upload. croc is just connecting the sender and receiver until the file transfer is over. The file is directly transferred from the first computer to the second.

@mikemadden42
Copy link
Author

That sounds great. That's what I suspected. Please go ahead & close this issue.

@schollz schollz closed this as completed Nov 2, 2017
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