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

xrdcp: unable to mkdir by concurrently run xrdcp clients #568

Closed
moscicki opened this issue Aug 18, 2017 · 3 comments
Closed

xrdcp: unable to mkdir by concurrently run xrdcp clients #568

moscicki opened this issue Aug 18, 2017 · 3 comments
Assignees

Comments

@moscicki
Copy link

Version: 4.6.1-1

This is likely caused by two concurrent processes which are xrdcp to a destination path which does not exist. The first one does the mkdir to create the destination path and the other one tries to do the same but fails because the path in the meantime was already created by the first one.

Example:

2017-08-18 17:04:48,062 BackupThread env XRD_LOGLEVEL=Error XrdSecPROTOCOL=sss xrdcp --nopbar --verbose --force --retry 3 --tpc only root://localhost.localdomain//eos/?eos.lfn=fid:564441388&eos.ruid=2&eos.rgid=2 root://eosbackup.cern.ch//eos/backup/instance/user/data/170818/0000dc7c/564441388?eos.ruid=eosarchi&eos.rgid=c3&eos.app=backup_daily

2017-08-18 17:04:48,382 BackupThread ERROR: Transfer FAIL 564441388 spent 0.32 seconds XRDCP ERROR: '[2017-08-18 17:04:48.381064 +0200][Error ][Utility ] Unable to open target root://eosbackup.cern.ch:1094//eos/backup/instance/user/data/170818/0000dc7c/564441388?eos.app=backup_daily&eos.rgid=c3&eos.ruid=eosarchi&oss.asize=30019&tpc.key=0005cad34a05785059970210&tpc.lfn=/eos/&tpc.src=p06253937w63885.cern.ch:1095&tpc.stage=copy: [ERROR] Server responded with an error: [3006] Unable to mkdir /eos/backup/instance/user/data/170818/0000dc7c/; File exists\nRun: [ERROR] Server responded with an error: [3006] Unable to mkdir /eos/backup/instance/user/data/170818/0000dc7c/; File exists\n\n'

@xrootd-dev
Copy link

xrootd-dev commented Aug 18, 2017 via email

@simonmichal
Copy link
Contributor

The client is just setting the mkpath flag in the open request so this behaviour is server-side implementation dependent. So indeed, there is a good chance it is an eos problem.

Michal

@esindril
Copy link
Contributor

This has been fixed on the EOS side.

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

4 participants