Print

Print


I am having trouble getting the ROOT 4.02.00 command line client to open a file using a simple xrootd configuration. I followed the simple setup example at http://xrootd.slac.stanford.edu/examples/oneserver/index.html, but I keep getting an "authentication attempt unsuccessful" error from ROOT.

Here is my setup:

glast@glast01 $ cat xrootd.cf
xrootd.fslib libXrdOfs.so
oss.readonly
xrootd.export /nfs/farm/g/glast/

I know this configuration works because I am able to read ROOT files (histograms, trees, etc.) using our Java xrootd client. However, when I try to use the ROOT 4.02.00 command line I get this error from ROOT:

root [0] myfile myfile = TFile::Open("root://glast01.slac.stanford.edu//nfs/farm/g/glast/u07/mcenery/systests/GlastRelease/v6r2p1/VerticalGamma100MeV/linux/VerticalGamma100MeV_Histos.root");
SysError in <TWinNTSystem::WinNTRecv>: recv (No such file or directory)
Error in <TWinNTSystem::RecvRaw>: cannot receive buffer
SysError in <TWinNTSystem::WinNTSend>: send (No such file or directory)
Error in <TWinNTSystem::SendRaw>: cannot send buffer
SysError in <TWinNTSystem::WinNTSend>: send (No such file or directory)
Error in <TWinNTSystem::SendRaw>: cannot send buffer
Info in <TAuthenticate::Authenticate>: attempted methods SSH/UidGid are not supported by remote server version
Info in <TAuthenticate::Authenticate>: failure: list of attempted methods: UsrPwd SSH UidGid
Error in <TPSocket::Authenticate>: authentication failed for [log in to unmask]
SysError in <TWinNTSystem::WinNTRecv>: recv (No such file or directory)
Error in <TWinNTSystem::RecvRaw>: cannot receive buffer
SysError in <TWinNTSystem::WinNTSend>: send (No such file or directory)
Error in <TWinNTSystem::SendRaw>: cannot send buffer
SysError in <TWinNTSystem::WinNTSend>: send (No such file or directory)
Error in <TWinNTSystem::SendRaw>: cannot send buffer
Info in <TAuthenticate::Authenticate>: attempted methods SSH/UidGid are not supported by remote server version
Info in <TAuthenticate::Authenticate>: failure: list of attempted methods: UsrPwd SSH UidGid
Error in <TPSocket::Authenticate>: authentication failed for [log in to unmask]
Error in <TNetFile::TNetFile>: can't open connection to rootd on host glast01.slac.stanford.edu at port 1094
Error in <TNetFile::Create>: authentication attempt unsuccessful
root [1]

And this is what I get in the xrootd log file:

glast@glast01 $ tail -f /tmp/xrootd/xrdlog 
050226 10:44:11 3310 XrdLink: ?:45@ntvpn2-008 disconnected after 0:00:00 (matching protocol not found)
050226 10:44:12 3310 XrdLink: ?:45@ntvpn2-008 disconnected after 0:00:00 (matching protocol not found)

In the ROOT stack trace, I see that it is trying to login as "[log in to unmask]". OK, so I try telling ROOT to use anonymous credentials using this:

root [1] TAuthenticate::SetGlobalUser("anonymous");

However, I get the same "authentication attempt unsuccessful" error, except that now the ROOT stack trace reports that "[log in to unmask]" is not authorized.

What am I doing wrong? Is it a ROOT configuration problem (perhaps something needs to go into .rootrc), is it an xrootd configuration problem? What does the "matching protocol not found" mean in the xrootd log file? What protocol is it talking about - perhaps an authentication protocol that I need to configure?

As I mentioned, our Java client is able to read ROOT files from our simple xrootd server without problems. Our Java client sends "anonymous" for the username and "langston@trinity" for the password. This is what I get from the xrootd log file when connecting using our Java client:

glast@glast01 $ tail -f /tmp/xrootd/xrdlog 
050226 11:08:30 3310 XrootdXeq: User logged in as anonymou.12345:45@ntvpn2-008
050226 11:08:38 3310 XrdLink: Unable to receive from anonymou.12345:45@ntvpn2-008; connection reset by peer
050226 11:08:38 3310 XrdLink: anonymou.12345:45@ntvpn2-008 disconnected after 0:00:11 (link read error)

Even though there is a "connection reset by peer" and a "link read error" message, the Java client is still able to read histograms and trees just fine.

Any help on getting the ROOT command line to be able to read files from our xrootd server would be appreciated.

Warmest regards, Matt