I have the error: Fatal in TROOT::InitSystem: HOME directory not set
I’ve looked around for solutions to this error and the only answer I’ve seen is modifying the source code so it doesn’t kill root. I am trying to run batch jobs with aprun and I get this error when I do: aprun rootapp -o out.root in.root
Also I ran a aprun whoami and it gives: whoami: cannot find name for user ID 593
So aprun is obviously using some exterior user to start these jobs. The problem is that the ROOT code has no way to define the home directory because this user ID 593 has no name to be passed to find the home directory. root.cern.ch/root/html/TSystem.h … eDirectory
I have the error: Fatal in TROOT::InitSystem: HOME directory not set
I’ve looked around for solutions to this error and the only answer I’ve seen is modifying the source code so it doesn’t kill root. I am trying to run batch jobs with aprun and I get this error when I do: aprun rootapp -o out.root in.root
Also I ran a aprun whoami and it gives: whoami: cannot find name for user ID 593
So aprun is obviously using some exterior user to start these jobs. The problem is that the ROOT code has no way to define the home directory because this user ID 593 has no name to be passed to find the home directory. root.cern.ch/root/html/TSystem.h … eDirectory
Does anyone know a fix for this?
Thanks,
Eric[/quote]
If possible, run a bash script that sets the home variable and then runs your code. I realize that this isn’t always easy for the end-user to do, but shouldn’t be too hard for whomever is setting up the batch system framework to do.
I’ve taken your suggestion to check for the HOME shell variable in case the home directory is not defined in the passwd file. The fix is in the trunk and the v5-30-00 and v5-28-00 patches branches.