Anyone one done any gfal access of LFNs and got it working?
Steve
----- Forwarded message from Nick West <[log in to unmask]> -----
From: Nick West <[log in to unmask]>
Subject: Trouble trying to read a file using gfal_open64
Date: Fri, 30 Jun 2006 15:37:48 +0100
To: [log in to unmask]
Thread-Topic: Trouble trying to read a file using gfal_open64
Hi Steve,
Any ideas what I am doing wrong or anyone I could bug? I am trying to
use ROOT's TGFALFile to access a file given it's LFN. Under the
covers TGFALFile does:-
Int_t ret = ::gfal_open64(pathname, flags, (Int_t) mode);
and in my case: pathname =
lfn:/grid/minos/nwest/tape/test/LVJ_F00034638_0000.mdaq.root
flags = 0 RDONLY
mode = 0644 (and not used for read)
but it fails:-
file lfn:/grid/minos/nwest/tape/test/LVJ_F00034638_0000.mdaq.root
can not be opened for reading (Communication error on send)
Now I have found some documentation on gfal_open64:-
http://grid-deployment.web.cern.ch/grid-deployment/gis/GFAL/gfal.3.html
In particular I need to set LCG_GFAL_VO LCG_GFAL_INFOSYS and have a
valid Grid proxy, and I think I have all of these set. To test I
tried getting and releasing a TURL and that looked O.K.:-
lcgui0360:~/<1>scripts> lcg-gt
srm://dcache.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/minos/nwest/test/
LVJ_F00034638_0000.mdaq.root dcap
dcap://dcache-head.gridpp.rl.ac.uk:22125//pnfs/gridpp.rl.ac.uk/data/mino
s/nwest/test/LVJ_F00034638_0000.mdaq.root
-2147033715
-2147033714
lcgui0360:~/<1>scripts>lcg-sd
srm://dcache.gridpp.rl.ac.uk/pnfs/gridpp.rl.ac.uk/data/minos/nwest/test/
LVJ_F00034638_0000.mdaq.root " -2147033715" " -2147033714" 0
Googling around I came across:-
http://savannah.cern.ch/bugs/?func=detailitem&item_id=15487
but I don't think it's that; I can run the lgc-* commands O.K.,
Cheers,
Nick.
----- End forwarded message -----
--
Steve Traylen
[log in to unmask]
http://www.gridpp.ac.uk/
|