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

[BUG]: rsync error w/ AppleInternal error #3

Closed
matteobe opened this issue May 27, 2021 · 4 comments · Fixed by #4
Closed

[BUG]: rsync error w/ AppleInternal error #3

matteobe opened this issue May 27, 2021 · 4 comments · Fixed by #4
Assignees
Labels
bug Something isn't working

Comments

@matteobe
Copy link

matteobe commented May 27, 2021

I am trying to syncronize my repository to a folder on leomed but I get the following error:

Starting code_sync between /Users/Coding/federated_learning/ and medinfmk:/cluster/dataset/medinfmk/mimicIII/code/ ...
(^C to quit)
rsync: /Users/Coding/federated_learning: invalid numeric value
rsync: /Users/Coding/federated_learning: invalid numeric value
rsync error: syntax or usage error (code 1) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(1337) [client=2.6.9]
rsync error: syntax or usage error (code 1) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(1337) [client=2.6.9]

The code_sync command is packaged in a bash file that looks like this:

#!/bin/sh

# Sync code repository with LeoMed
LOCAL_DIR="$(pwd)"
REMOTE_HOST="medinfmk"
REMOTE_PORT=2222
REMOTE_DIR="/cluster/dataset/medinfmk/mimicIII/code"

code_sync --local_dir "$LOCAL_DIR" --remote_dir "$REMOTE_DIR" --target "$REMOTE_HOST" --port $REMOTE_PORT

I installed the latest version of code_sync (v0.1.0).

Did anyone else see this error before? How can I fix it?

@matteobe matteobe added the bug Something isn't working label Jun 2, 2021
@lokijuhy
Copy link
Owner

lokijuhy commented Jun 2, 2021

@matteobe Do you get the same error if you try the code_sync command directly, without the bash script setting the variables?

@lokijuhy
Copy link
Owner

lokijuhy commented Jun 2, 2021

@matteobe In terms of debugging, could you add a print(cmd) just before the subprocess.call(cmd, shell=True) line and see if if looks fishy?

@matteobe
Copy link
Author

@matteobe Do you get the same error if you try the code_sync command directly, without the bash script setting the variables?

Yes, even separately return the same error, was my default way of using it

@matteobe
Copy link
Author

Update:

Using the Leonhard-mgmt-tools at the commit from last year:
uzh-dqbm-cmi/clusty@9482974

works as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants