-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chef dwh recipe bash code exits 1 on succesful? #356
Comments
Hello, What happens is when you run the kaltura-dwh-config.sh the second time, it already detects the DB has been setup and so it does nothing and exits. And then re-run the kaltura-dwh-config.sh manually so we can understand what it is failing on. |
Jesse, Ive run it with bash -x
the only real issue i see (with no great explanation is this:
|
Indeed bash -x /opt/kaltura/dwh/setup/dwh_setup.sh -uroot -k/opt/kaltura/pentaho/pdi/ -d/opt/kaltura/dwh -hsanitized.com -P3306 So we can understand exactly what SQL script if failing. May the source be with you, Jess Portnoy On Thu, 12 Mar 2015, nukepuppy wrote:
|
ok after more review.. /opt/kaltura/dwh/setup/installation_log.log has these values:
is this attribute: DWH_HOST |
we're using mysql (mysql cookbook recipe from chef) |
DWH_HOST should be the DB host on which you wish to deploy the Analytics May the source be with you, On Thu, 12 Mar 2015, nukepuppy wrote:
|
yeah that now makes sense.... i get this now and thanks for clarification |
Sure, happy to help. May the source be with you, Jess Portnoy On Thu, 12 Mar 2015, nukepuppy wrote:
|
is there some secret to get this recipe that i am missing somehow ?
https://github.com/kaltura/platform-install-packages/blob/Jupiter-10.6.0/chef-repo/cookbooks/kaltura/recipes/dwh.rb
when that runs the bash command runs and it exits 1 without any errors (even claiming it was successful)
the entire code failure is here:
just to prove the point more directly too... when ran via command line
i remove the lock
then i run the base config
then i run the dwh configure script again via CLI
then i verify how did this script exit? it exits 1!!! instead of 0 which is why chef fails (by running $? right after bash command one can see previous commands exit code)
soo any pointers? is something going wrong and it isn't logging what went wrong?
The text was updated successfully, but these errors were encountered: