I see, indeed when you add metadata from input file it will not load gas file automatically, as @jgalan said.
I have updated TRestRun to call LoadConfigFromBuffer() for all the metadata from input file. Hopefully this will solve your problem. We don’t need to call LoadGasFile() explicitally.