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

Error: EXDEV: cross-device link not permitted #1

Closed
SebastianM-C opened this issue Sep 28, 2021 · 4 comments
Closed

Error: EXDEV: cross-device link not permitted #1

SebastianM-C opened this issue Sep 28, 2021 · 4 comments

Comments

@SebastianM-C
Copy link

Hello,

I tried runnig the add-julia-registry in a self-hosted environment, but I got the following error

Run julia-actions/add-julia-registry@v1
/usr/bin/ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-Rqq5e240pwJv/agent.3043019; export SSH_AUTH_SOCK;
SSH_AGENT_PID=3043021; export SSH_AGENT_PID;
echo Agent pid 3043021;
/usr/bin/ssh-add /tmp/tmp-3043000-xgn58KVZPhVx
Identity added: /tmp/tmp-3043000-xgn58KVZPhVx (private registry deploy key)
/usr/bin/ssh-keyscan github.com
# github.com:22 SSH-2.0-babeld-a3fae306
# github.com:22 SSH-2.0-babeld-a3fae306
# github.com:22 SSH-2.0-babeld-a3fae306
# github.com:22 SSH-2.0-babeld-a3fae306
# github.com:22 SSH-2.0-babeld-a3fae306
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
/usr/bin/git clone [email protected]:MyOrg/MyRegistry.git /tmp/tmp-3043000-W0JHbLbUSYpl
Cloning into '/tmp/tmp-3043000-W0JHbLbUSYpl'...
[Error: EXDEV: cross-device link not permitted, rename '/tmp/tmp-3043000-W0JHbLbUSYpl' -> '/home/username/.julia/registries/MyRegistry/tmp-3043000-W0JHbLbUSYpl'] {
  errno: -18,
  code: 'EXDEV',
  syscall: 'rename',
  path: '/tmp/tmp-3043000-W0JHbLbUSYpl',
  dest: '/home/username/.julia/registries/MyRegistry/tmp-3043000-W0JHbLbUSYpl'
}
@christopher-dG
Copy link
Member

christopher-dG commented Sep 28, 2021

I guess it would help to know a bit about the machine you're running on. Are /tmp and /home on the same disk/partition?

I'm assuming not, and so the reason is that io.mv is for some reason implemented with fs.rename:

@SebastianM-C
Copy link
Author

From what I understand no. /tmp is on a tmpfs and /home is on a /dev/sdbx filesystem.

@christopher-dG
Copy link
Member

Ok yeah makes sense. I'll figure out an alternative mv.

@SebastianM-C
Copy link
Author

Fixed by #2

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