Hi Rasmus, mail me (and don't cc: roottalk) the hsimple.root file in the attachment. I first want to try it locally. -- Fons Rasmus Ischebeck wrote: > > Hi Fons, > > I agree that using the ~/.rootdpass file is the easiest for us at the > moment. Still, I am not successful: > My password for accessing files via rootd shall be "hello". (I've also > tried my login password, it gives the same results.) > > I entered the following command: > > $ perl -e '$pw = crypt("hello","salt"); print "$pw\n"' > saPPmoXIbs91M > > I created a file ~/.rootdpass that contains: > saPPmoXIbs91M > > I start rootd on the machine ttfsvr2.desy.de: > $ rootd -p 5157 > The process runs in the background: > $ ps -ef | grep rootd > rasmus 10983 1 0 17:05:51 ? 0:00 rootd -p 5157 > > Now I open ROOT on another machine. > within ROOT, I enter: > TFile *myfile = TFile::Open("root://ttfsvr2.desy. > de:5157/Root/ROOT.2.24.04/test/hsimple.root") > ROOT asks for my name (rasmus) and password (hello) > Name (ttfsvr2.desy.de:rasmus): rasmus > Password: hello {not shown} > > I keep getting this error message: > Error in <TNetFile::ReadBuffer>: undefined error > Error in <TNetFile::TFile>: root://ttfsvr2.desy.de:5157 > /Root/ROOT.2.24.04/test/hsimple.root not a ROOT file > > However, when I open the file via NFS, it works: > TFile *mylocalfile = TFile::Open("/home/rasmus/Root/ROOT.2.24.04/test > /hsimple.root") > mylocalfile.ls() > TFile** /home/rasmus/Root/ROOT.2.24.04/test/hsimple.root > Demo ROOT file with histograms > TFile* /home/rasmus/Root/ROOT.2.24.04/test/hsimple.root > Demo ROOT file with histograms > KEY: TH1F hpx;1 This is the px distribution > KEY: TH2F hpxpy;1 py vs px > KEY: TProfile hprof;1 Profile of pz versus px > KEY: TNtuple ntuple;1 Demo ntuple > > (which is just what hsimple.cxx put in the file.) > > Do you have any clue what prevents my rootd from reading the file? > Why is it not recognized as a ROOT file? > > By the way, the authentication seems to work: > if I enter a wrong password, I get the message: > Error in <TNetFile::Authenticate>: undefined error > Error in <TNetFile::TNetFile>: autentication failed for host > ttfsvr2.desy.de > > Checking whether the file name is correct also seems to work: > if I enter a wrong file name, I get a different error message: > TFile *myfile7 = TFile::Open("root://ttfsvr2.desy. > de:5157/Root/ROOT.2.24.04/test/wrongfilename.root") > Name (ttfsvr2.desy.de:rasmus): rasmus > Password: > Error in <TNetFile::TNetFile>: undefined error > (I do not get the message "not a ROOT file" in this case.) > > Can you reproduce the problem? > > Thanks, > > Rasmus. > ___ > > >Hi Ingo, > >concerning the first case did you compile rootd with AFS support? If > >not you have to recompile rootd with AFS support. > >COncerning the second case? Seems like it should not happen. Does the > >machine in question have a normal passwd file or does it use shadow > >passwords. > >In the later case you'll also have to recompile rootd with > >shadow passwd support. > >In general it might be easier to use the > >~/.rootdpass method as described in the comments of the rootd.cxx source > >file. > >Cheers, Fons. > > >Ingo Strauch wrote: > >> > >> Hi rooters! > >> > >> We tried to access a root-file on a remote machine running the root > daemon > >> (rootd -p 5151). The following command gave a strange error: > >> > >> TFile *file = > TFile::Open("root://tortuga.desy.de:5151/root/Example.root"); > >> Name (tortuga.desy.de:strauch): strauch Password: Error in > >> <TNetFile::Authenticate>: wrong passwd > >> Error in <TNetFile::TNetFile>: autentication failed for host > tortuga.desy.de > >> > >> But I'm perfectly sure to have entered my right AFS password... > >> > >> When we try to access a file on a non-afs machine, we get one step > further, > >> but still the error remains strange: > >> > >> root [3] TFile *file = > >> TFile::Open("root://ttfsvr2.desy.de:5151/DAQ/readROOT/oink.root"); > >> Name (ttfsvr2.desy.de:strauch): rasmus Password: Error in > >> <TNetFile::ReadBuffer>: undefined error Error in <TNetFile::TFile>: > root://ttfsvr2.desy.de:5151/DAQ/readROOT/oink.root > >> not a ROOT file root [4] file.ls() > >> TNetFile** > root://ttfsvr2.desy.de:5151/DAQ/readROOT/oink.root > >> TNetFile* > root://ttfsvr2.desy.de:5151/DAQ/readROOT/oink.root > >> > >> The ROOT versions we tried were 2.23/10 and 2.24/04 Machines tortuga: > >> IRIX 6.5 ttfsvr2: Solaris 5.7 > >> > >> Can anybody tell us your experience with the ROOT daemon? > >> > >> Ingo & Rasmus > >> -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET