pulling a file from remote machine never finishes #245

Closed
opened 2021-11-13 19:43:23 +00:00 by knoflook · 5 comments
Owner

Describe the current behavior

abra hangs when pulling a file from a remote machine

Steps to reproduce

abra app cp <appname> app:/entrypoint.sh entrypoint
app is a newly deployed traefik instance

~/./a/traefik> git log -1
commit ec47f5c9dd590bd79295303139355627c67cf7c0 (HEAD, tag: 1.0.0+v2.5.2)
Author: decentral1se <lukewm@riseup.net>
Date:   Tue Oct 12 11:41:53 2021 +0200

    chore: first release

> abra -v 
abra version 0.3.1-alpha-rc1-fcbf41e

Describe the expected behavior

pull the file

Any idea how this might be fixed?

nope

Additional information

DEBU[0000] found context connection details &{user1 cc.marinara.xyz 22} for cc.marinara.xyz  caller="/drone/src/pkg/ssh/ssh.go:493 GetContextConnDetails"
DEBU[0000] server SSH host key present in ~/.ssh/known_hosts for cc.marinara.xyz  caller="/drone/src/pkg/ssh/ssh.go:279 GetHostKey"
DEBU[0000] created client for 'cc.marinara.xyz'          caller="/drone/src/pkg/client/client.go:58 New"
DEBU[0000] commandconn: starting ssh with [-o ConnectTimeout=5 -l p0rt -p 22 -- cc.marinara.xyz docker system dial-stdio]  caller="/drone/src/pkg/upstream/commandconn/commandconn.go:49 New"
DEBU[0000] retrieved 'ac8387f9689a' as target container on 'cc.marinara.xyz'  caller="/drone/src/cli/app/cp.go:94 glob..func23"

## Describe the current behavior abra hangs when pulling a file from a remote machine ## Steps to reproduce `abra app cp <appname> app:/entrypoint.sh entrypoint` app is a newly deployed traefik instance ``` ~/./a/traefik> git log -1 commit ec47f5c9dd590bd79295303139355627c67cf7c0 (HEAD, tag: 1.0.0+v2.5.2) Author: decentral1se <lukewm@riseup.net> Date: Tue Oct 12 11:41:53 2021 +0200 chore: first release > abra -v abra version 0.3.1-alpha-rc1-fcbf41e ``` ## Describe the expected behavior pull the file ## Any idea how this might be fixed? nope ## Additional information ``` DEBU[0000] found context connection details &{user1 cc.marinara.xyz 22} for cc.marinara.xyz caller="/drone/src/pkg/ssh/ssh.go:493 GetContextConnDetails" DEBU[0000] server SSH host key present in ~/.ssh/known_hosts for cc.marinara.xyz caller="/drone/src/pkg/ssh/ssh.go:279 GetHostKey" DEBU[0000] created client for 'cc.marinara.xyz' caller="/drone/src/pkg/client/client.go:58 New" DEBU[0000] commandconn: starting ssh with [-o ConnectTimeout=5 -l p0rt -p 22 -- cc.marinara.xyz docker system dial-stdio] caller="/drone/src/pkg/upstream/commandconn/commandconn.go:49 New" DEBU[0000] retrieved 'ac8387f9689a' as target container on 'cc.marinara.xyz' caller="/drone/src/cli/app/cp.go:94 glob..func23" ```
knoflook added the
bug
abra
labels 2021-11-13 19:43:23 +00:00
Owner

Could reproduce this ☺️

abra app cp <appname> app:/entrypoint.sh entrypoint does hang for me but abra app cp <appname> app:/entrypoint.sh . does not where entrypoint -> . which is a path. It seems to hang because entrypoint is not an existing folder on the local file system.

Idk what is causing the root of that issue but I'll add a check for the existence of the local path and expand the documentation for this command.

Could reproduce this ☺️ `abra app cp <appname> app:/entrypoint.sh entrypoint` does hang for me but `abra app cp <appname> app:/entrypoint.sh .` does not where `entrypoint` -> `.` which is a path. It seems to hang because `entrypoint` is not an existing folder on the local file system. Idk what is causing the root of that issue but I'll add a check for the existence of the local path and expand the documentation for this command.
Owner

The remote case does work.

➜  abra (main) ✗ ./abra app cp foo.com myfile app:/DOESNTEXIST  
FATA[0000] Error: No such container:path: ...:/DOESNTEXIST 
The remote case does work. ``` ➜ abra (main) ✗ ./abra app cp foo.com myfile app:/DOESNTEXIST FATA[0000] Error: No such container:path: ...:/DOESNTEXIST ```
Owner

Should be fixed now, lemme know if not 👍

Should be fixed now, lemme know if not 👍
decentral1se added the
awaiting-feedback
label 2021-11-13 22:17:37 +00:00
Owner

Lemme know if this is still happening, closing for now 🌇

Lemme know if this is still happening, closing for now 🌇
Author
Owner

ah sorry i misunderstood the cp syntax. I thought I have to specify the file name for local download, not a directory. Then it's working fine!

ah sorry i misunderstood the cp syntax. I thought I have to specify the file name for local download, not a directory. Then it's working fine!
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#245
No description provided.