Problem in retrieve dcap address file

Dear experts,

I tried to open a dcap address root file :

TFile *_file0 = TFile::Open(“dcap://dcap.pic.es:22125/pnfs/pic.es/data/atlas/atlasscratchdisk/user.jwang/user.jwang.Iter00_Accumulate_outDS_Customed_Part00_20101006173905.101006174117_sub010770092/user.jwang.003107.CombinedMonitoring._00001.root”)
But I got an error:
Error in TPluginHandler::SetupCallEnv: class TDCacheFile not found in plugin DCache

I also tried to use root command to open this file directly but got the same error. So where could be the problem ? I am using the wrong commands ?

Thanks!
Jike

You seem to have a LD_LIBRARY_PATH problem or $ROOTSYS/lib/libDCache.so missing

Rene

[quote=“brun”]You seem to have a problem or $ROOTSYS/lib/libDCache.so missing

Rene[/quote]

Hi Rene,

Thanks for looking into this problem! The root I am using is:
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00d_python2.6/i686-slc5-gcc43-opt/root
If I use root command to open this file directly, I got:
dlopen error: libdcap.so: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00d_python2.6/i686-slc5-gcc43-opt/root/lib/libDCache.so

It looks libdcap.so is missing, so how to fix this problem? Which version has included this lib?

Cheers,
Jike

Hi Jike,

usually, libdcap provided by gLite-UI installation. Please check location of your glite installation.
For me it’s /afs/desy.de/project/glite/glite-UI-3.1.45-0/. Probably it’s a different location at CERN.
Try ‘ini glite’.

Regards,
Tigran.

[quote=“tigran”]Hi Jike,

usually, libdcap provided by gLite-UI installation. Please check location of your glite installation.
For me it’s /afs/desy.de/project/glite/glite-UI-3.1.45-0/. Probably it’s a different location at CERN.
Try ‘ini glite’.

Regards,
Tigran.[/quote]

Hi Tigran,
I can’t get a ‘ini glite’ command , which environment should be sourced ?

Thanks,
Jike

Hi Jike,

Try to add this path:
/afs/cern.ch/sw/lcg/external/dcache_client/1.9.3p1/i686-slc5-gcc43-opt/dcap/lib
to your LD_LIBRARY_PATH

Cheers, Bertrand.

[quote=“bellenot”]Hi Jike,

Try to add this path:
/afs/cern.ch/sw/lcg/external/dcache_client/1.9.3p1/i686-slc5-gcc43-opt/dcap/lib
to your LD_LIBRARY_PATH

Cheers, Bertrand.[/quote]

Hi Bertrand,

After adding the path into the LD_LIBRARY_PATH, the errors disappear. But if I do the command in below, it goes forever. Actually the file I am opening is only several MB. Why root stopping here ?

[jwang@lxplus217]~/scratch0/PVConstraint% root dcap://dcap.pic.es:22125/pnfs/pic.es/da … 00002.root -l
root [0]
Attaching file dcap://dcap.pic.es:22125/pnfs/pic.es/da … 00002.root as _file0…

Thanks,
Jike

Hi Jike,

I don’t know how to use dcache, but here is what I get when trying to access the file (after waiting quite a long time):

[quote]root [0] TFile *f = TFile::Open(“dcap://dcap.pic.es:22125/pnfs/pic.es/data/atlas/atlasscratchdisk/user.jwang/user.jwang.Iter00_Accumulate_outDS_Customed_Part00_20101006173905.101006174117_sub010770092/user.jwang.003107.CombinedMonitoring._00002.root”)
Command failed!
Server error message for [1]: “File not online. Staging not allowed.” (errno 10019).
Failed open file in the dCache.
SysError in TDCacheFile::TDCacheFile: file dcap://dcap.pic.es:22125/pnfs/pic.es/da … 00002.root can not be opened for reading (“File not online. Staging not allowed.”)
[/quote]So you should maybe check with someone from your experiment…

Cheers, Bertrand.