Print

Print


Hi all,

Are there any known issues trying to create a new file using  
TFile::Open() within ROOT when the parent directory has not been  
created previously?  We seem to be unable to do this on the small  
xrootd deployment we have here at BNL for the Daya Bay group.  With  
xrdcp, the parent directories get created automatically.  Also, there  
is no problem creating the new file from within ROOT if the parent  
directories have been created previously on the selected storage  
server.  Is this a server configuration issue, or possibly something  
missing in ROOT?

We are using ROOT v5.26/00b and xrd version 20091028-1003_dbg.  I  
have attached a ROOT log executing

TFile* file = TFile::Open(url,"RECREATE");

when the url is pointing to a nonexisting directory.  The error we  
get is

101005 17:53:36 001 Xrd: ReadPartialAnswer: Server  
[daya0002.rcf.bnl.gov:1094] answered [kXR_error] (4003)
101005 17:53:36 001 Xrd: CheckErrorStatus: Server  
[daya0001.rcf.bnl.gov:1094] declared: Unable to create /xrootd/bv/ 
test/does-not-exist/file.root; No such file or directory(error code:  
3011)
101005 17:53:36 001 Xrd: Open: Error opening the file /xrootd/bv/test/ 
does-not-exist/file.root on host daya0001.rcf.bnl.gov:1094
Error in <TXNetFile::CreateXClient>: open attempt failed on root:// 
daya0001//xrootd/bv/test/does-not-exist/file.root

I have also attached our xrootd.cf.  Any advice would be much  
appreciated and sincere apologies if this has been discussed and  
answered before.

Thanks!
Ofer Rind

PS  This is the same problem discussed in http://root.cern.ch/phpBB3// 
viewtopic.php?p=41410&sid=a528e02dc23a6c9a6697dd7fa78e3818  (the  
problem was not the server but rather the absence of the parent  
directories).