Re: [ROOT] Problem in reading Castor files from root

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Dec 08 2003 - 19:14:22 MET


Hi Ruben,

 it is clearly an rfio access issue (since also nstouch fails in the
first case. I've copied the CASTOR support team on the mail. Probably
they can help you out.

Cheers, Fons.


On Mon, 2003-12-08 at 18:27, Ruben Shahoyan wrote:
> Hello,
> we have the followoing problem: when we try to open the root file (on 
> Castor) via rfio. When we try to do this from local cern PC (having done 
> klog) it fails, while from lxplus it works. Does anybody have experience
> with such operations? What can be the problem?
> Below are the screenshots of failed (on local pc) and successful (lxplus) 
> trials.
> 
> Bets regards,
> 	Ruben Shahoyan
>  
> offline@na60farm1:~ klog -principal na60cdr
> Password:
> offline@na60farm1:~ klist
> Ticket file:    /tmp/tkt21591
> Principal:      na60cdr@CERN.CH
> 
>   Issued           Expires          Principal
> Dec  8 18:07:45  Dec  9 19:34:06  krbtgt.CERN.CH@CERN.CH
> Dec  8 18:07:45  Dec  9 19:34:06  afs@CERN.CH
> offline@na60farm1:~ nstouch /castor/cern.ch/na60/test/a.root
> /castor/cern.ch/na60/test/a.root: Permission denied
> offline@na60farm1:~ root -b
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.05/07    6 October 2003   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> Compiled for linux with thread support.
> 
> CINT/ROOT C/C++ Interpreter version 5.15.94, June 30 2003
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TFile *f ; f = File::Open("rfio:/castor/cern.ch/na60/test/a.root","")                      
> SysError in <TRFIOFile::TRFIOFile>: file /castor/cern.ch/na60/test/a.root an not be opened for reading (Success)
> (class TFile*)0x0
> root [1]
> 
> 
> ======
> VERSUS
> ======
> 
> [lxplus081] /afs/cern.ch/user/n/na60cdr > klist
> Ticket file:    /tmp/tktp1104032764
> Principal:      na60cdr@CERN.CH
> 
>   Issued           Expires          Principal
> Dec  8 15:52:31  Dec  9 17:18:52  krbtgt.CERN.CH@CERN.CH
> Dec  8 15:52:31  Dec  9 17:18:52  afs@CERN.CH
> [lxplus081] /afs/cern.ch/user/n/na60cdr > nstouch /castor/cern.ch/na60/test/a.root
> [lxplus081] /afs/cern.ch/user/n/na60cdr > root -b
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   3.05/07      27 July 2003   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
> 
> Compiled for linux with thread support.
> 
> CINT/ROOT C/C++ Interpreter version 5.15.94, June 30 2003
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] TFile *f ; f = TFile::Open("rfio:/castor/cern.ch/na60/test/a.root","")
> (class TFile*)0x86893e0
> root [1] f->ls()
> TRFIOFile**             rfio:/castor/cern.ch/na60/test/a.root   
>  TRFIOFile*             rfio:/castor/cern.ch/na60/test/a.root   
>   KEY: TObject  TObject;1       Basic ROOT object
> root [2]
> 
> 
> 
> André David
> ----------------------------------
> The NA60 Experiment at CERN
> 
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET