Re: Open RFIO file and SysErrors between UPDATE and READ

From: Gerri Ganis <gerardo.ganis_at_cern.ch>
Date: Mon, 12 Feb 2007 11:30:48 +0100

Dear Marco,

What you tried seems fine. Perhaps there is a problem on the server side. Can you create a new file there, e.g.

TRFIOFile *f = new
TRFIOFile("/castor/cern.ch/user/c/calviani/DST/FIC1/dum.root", "NEW")

?

Also, could you try with TCastorFile

TFile *f =
TFile::Open("castor:/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","UPDATE")

or directly

TFile *f =new
TCastorFile("/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","UPDATE")

?
(TCastorFile is an alternative way to access CASTOR which uses different daemon).

Gerri

Marco Calviani wrote:

> Hi,
> i'm working with TRFIOFile to remotely write files. I'm encountering
> a strange error i'm not able to solve. I've an existing ROOT file i
> want to upgrade adding new entries to an existing TTree. However when
> i try to open the file with this command:
>
> TRFIOFile *f = new
> TRFIOFile("/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","UPDATE")
>
>
> i've got this error:
>
> SysError in <TRFIOFile::TRFIOFile>: file
> /castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root
> can not be opened (Device or resource busy)
>
> I've tried to open it in READ mode
>
> TRFIOFile *f = new
> TRFIOFile("/castor/cern.ch/user/c/calviani/DST/FIC1/data_run8207_0_s4_IDriv16.root","READ")
>
>
> and everything works fine.
>
> It could be something i'm doing wrong?
> regards,
> m
>
> PS: i'm using ROOT version 5.14/00
>
>

-- 
+--------------------------------------------------------------------------+
  Gerardo GANIS    PH Department, CERN
        address    CERN, CH 1211 Geneve 23  
                   room: 32-RC-017, tel / fax: +412276 76439 / 69133
         e-mail    gerardo.ganis_at_cern.ch
+--------------------------------------------------------------------------+
Received on Mon Feb 12 2007 - 11:31:13 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 14 2007 - 17:50:03 CET