popularity question answers views user  
0
Install Oracle Server 11g using Chef - User is not a member of the choosen OS groups

Hi,
my task is to install Oracle server 11g using Chef cookbooks. Im able to prepare the environment as recomanded on Oracle sites, but when I run Chef execute resource “./runInstaller -silent -responseFile <responseFile>” as a oracle user, the installer yells that “User is not a member of the choosen OS groups [dba, dba]”.
But he is for sure, command groups oracle gives: “oracle : dba, root”

I also try to execute command “whoami” just before the install oracle command, but it produces correct results.

When I run the install command by hand from ssh command line, it finishes correctly, the server is installed.

Oracle installer runs the java, is it possible that running java inside the execute command does not respect the desired user choosen by the Chef resource? resource:

execute "installOracleServer" do
  cwd node[:oracle][:server_install_dir]
  command "./runInstaller -silent -waitforcompletion -debug -responseFile " + node[:oracle]["server_response_file"]
  user "oracle"
  action :run
  #notifies :delete, "directory[deleteInstallFiles]"
  ignore_failure true
end

The target system: Linux RHEL5.5

more →
3 706