Problem in opening root file in lxplus

Hi All,
I am using MacBook Pro (version 10.11.6). After logging in to lxplus , i
tried to open a root file in lxplus but i found following error.

root [1] TBrowser b;
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error in : GLXBadContext (XID: 6291709, XREQ: 150)

I searched internet for this type of problem, some where i found that this
is a issue of lxplus login.
(FYI i am logging in with ssh -Y ckar@lxplus.cern.ch)
Please give a solution to this issue.

Thank you
Cp

Perhaps opening an X connection would help: ssh -XY user@lxplus.cern.ch

Hi ,
I am getting the same error after using the ssh -XY user@lxplus.cern.ch.

Error message:
chandiprasads-macbook-pro:~ chandiprasadkar$ ssh -XY ckar@lxplus.cern.ch
Password:
Last login: Wed Sep 28 10:45:25 2016 from chandiprasads-macbook-pro.dyndns.cern.ch


  • Welcome to lxplus089.cern.ch, SLC, 6.8
  • Archive of news is available in /etc/motd-archive
  • Reminder: You have agreed to comply with the CERN computing rules
  • cern.ch/ComputingRules
  • Puppet environment: production, Roger state: production
  • Foreman hostgroup: bi/inter/plus/login
  • LXPLUS Public Login Service

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[ckar@lxplus089 ~]$ root -l LifeTimeModel_BsParked.root
root [0]
Attaching file LifeTimeModel_BsParked.root as _file0…

RooFit v3.60 – Developed by Wouter Verkerke and David Kirkby
Copyright © 2000-2013 NIKHEF, University of California & Stanford University
All rights reserved, please read roofit.sourceforge.net/license.txt

root [1] TBrowser b;
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Error in : GLXBadContext (XID: 10486013, XREQ: 150)

Thank you
Cp

Can you share the file?

Hi ,
Thank you for your response.
The sample root file is on my public area .
/afs/cern.ch/user/c/ckar/public/mc_test.root

Cheers
Cp

Hi,

I cannot reproduce the issue connecting from a mac to lxplus.
This works:

. /afs/cern.ch/sw/lcg/external/gcc/4.9/x86_64-slc6-gcc49-opt/setup.sh
. /afs/cern.ch/sw/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc49-opt/root/bin/thisroot.sh
root -l /afs/cern.ch/user/c/ckar/public/mc_test.root

Cheers,
D

Looking at the previous post, I can see that “RooFit” is somehow automatically started …
That probably means that you have “${HOME}/.rootrc” and/or “${HOME}/rootlogon.C” and/or “${HOME}/.rootlogon.C” and/or “./rootlogon.C” and/or “./.rootlogon.C” …
That’s possibly where your problem originates.

Hi,
I don’t know what to do . In my .bashrc file (lxplus) ,i don’t have such type of command . when i log on to lxplus with ssh -XY ckar@lxplus.cern.ch ,i found one thing is missing in bash.

  • Welcome to lxplus104.cern.ch, SLC, 6.8
  • Archive of news is available in /etc/motd-archive
  • Reminder: You have agreed to comply with the CERN computing rules
  • cern.ch/ComputingRules
  • Puppet environment: production, Roger state: production
  • Foreman hostgroup: bi/inter/plus/login
  • LXPLUS Public Login Service

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

And in my bashrc file i have few things

.bashrc

Source global definitions

if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#source /afs/cern.ch/user/c/ckar/thisroot.sh

User specific aliases and functions

Please suggest some to steps to get rid of these.

Thank you in Advance

Chandi

Hi,

do this:

. /afs/cern.ch/sw/lcg/external/gcc/4.9/x86_64-slc6-gcc49-opt/setup.sh
. /afs/cern.ch/sw/lcg/app/releases/ROOT/6.06.08/x86_64-slc6-gcc49-opt/root/bin/thisroot.sh
root -l /afs/cern.ch/user/c/ckar/public/mc_test.root

D

Thank you very much .It works perfectly fine .
One more question ,Do i need to type the command every time after login to lxplus?
Cheers, Cp

yes. Or you setup your bashrc or alike.