Skip to content

Instantly share code, notes, and snippets.

@jjdevbiz
Created January 8, 2015 21:07
Show Gist options
  • Save jjdevbiz/d22d33b99182d7be8cb6 to your computer and use it in GitHub Desktop.
Save jjdevbiz/d22d33b99182d7be8cb6 to your computer and use it in GitHub Desktop.
chef-server-core-12.0.0-1.el6.x86_64.rpm chef-server-ctl reconfigure
* execute[bifrost_schema] action run
================================================================================
Error executing action `run` on resource 'execute[bifrost_schema]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0, 1], but received '127'
---- Begin output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
STDOUT:
STDERR: Use of uninitialized value $mask in vec at /usr/share/perl5/warnings.pm line 347.
/opt/opscode/embedded/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/Fcntl/Fcntl.so: undefined symbol: Perl_Istack_sp_ptr
---- End output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
Ran sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify returned 127
Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/private-chef/recipes/bifrost_database.rb
34: execute "bifrost_schema" do
35: # The version of the schema to be deployed will the the maximum
36: # available in the oc_bifrost repository. This will be the same
37: # version needed by the code that is deployed here. If we ever
38: # split bifrost's code and schema into separate repositories,
39: # we'll need to deploy to a specific schema tag
40: command <<-EOM.gsub(/\s+/," ").strip!
41: sqitch --engine pg
42: --db-name bifrost
43: --top-dir /opt/opscode/embedded/service/oc_bifrost/db
44: deploy --verify
45: EOM
46: user node['private_chef']['postgresql']['username']
47: # If sqitch is deploying the first time, it'll return 0 on
48: # success. If it's running a second time and ends up deploying
49: # nothing (since we've already deployed all changesets), it'll
50: # return 1. Both scenarios should be considered successful.
51: returns [0,1]
52: end
53:
Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/bifrost_database.rb:34:in `from_file'
execute("bifrost_schema") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify"
backup 5
returns [0, 1]
user "opscode-pgsql"
cookbook_name :"private-chef"
recipe_name "bifrost_database"
end
Running handlers:
[2015-01-08T15:04:05-06:00] ERROR: Running exception handlers
Running handlers complete
[2015-01-08T15:04:05-06:00] ERROR: Exception handlers complete
[2015-01-08T15:04:05-06:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 13 resources updated in 10.895089401 seconds
[2015-01-08T15:04:05-06:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[bifrost_schema] (private-chef::bifrost_database line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0, 1], but received '127'
---- Begin output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
STDOUT:
STDERR: Use of uninitialized value $mask in vec at /usr/share/perl5/warnings.pm line 347.
/opt/opscode/embedded/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/Fcntl/Fcntl.so: undefined symbol: Perl_Istack_sp_ptr
---- End output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
Ran sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify returned 127
Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/bifrost_database.rb:34:in `from_file'
execute("bifrost_schema") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify"
backup 5
returns [0, 1]
@jjdevbiz
Copy link
Author

jjdevbiz commented Jan 8, 2015

/var/opt/opscode *

@Saranya21
Copy link

Hi,

I am facing following error.

Compiled Resource:

Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/bifrost_database.rb:34:in `from_file'

execute("bifrost_schema") do
action "run"
retries 0
retry_delay 2
guard_interpreter :default
command "sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify"
backup 5
returns [0, 1]

I dont have any environment variable set 'PERL5LIB'. What is causing issue. Please help to resolve this.

Thanks.

@Saranya21
Copy link

This is the full error trace

Error executing action `run` on resource 'execute[bifrost_schema]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0, 1], but received '2'
---- Begin output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
STDOUT:
STDERR: Cannot find cff1982f0294dabb9fd8eea1209fa43835762d78 in the plan
---- End output of sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify ----
Ran sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify returned 2

Resource Declaration:
---------------------
# In /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/bifrost_database.rb

 34: execute "bifrost_schema" do
 35:   # The version of the schema to be deployed will the the maximum
 36:   # available in the oc_bifrost repository.  This will be the same
 37:   # version needed by the code that is deployed here.  If we ever
 38:   # split bifrost's code and schema into separate repositories,
 39:   # we'll need to deploy to a specific schema tag
 40:   command <<-EOM.gsub(/\s+/," ").strip!
 41:     sqitch --engine pg
 42:            --db-name bifrost
 43:            --top-dir /opt/opscode/embedded/service/oc_bifrost/db
 44:            deploy --verify
 45:   EOM
 46:   user node['private_chef']['postgresql']['username']
 47:   # Clear PERL5LIB to ensure sqitch only uses omnibus's perl
 48:   # installation
 49:   environment "PERL5LIB" => ""
 50:   # If sqitch is deploying the first time, it'll return 0 on
 51:   # success.  If it's running a second time and ends up deploying
 52:   # nothing (since we've already deployed all changesets), it'll
 53:   # return 1.  Both scenarios should be considered successful.
 54:   returns [0,1]
 55: end
 56:

Compiled Resource:
------------------
# Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/bifrost_database.rb:34:in `from_file'

execute("bifrost_schema") do
  action :run
  retries 0
  retry_delay 2
  default_guard_interpreter :execute
  command "sqitch --engine pg --db-name bifrost --top-dir /opt/opscode/embedded/service/oc_bifrost/db deploy --verify"
  backup 5
  environment {"PERL5LIB"=>""}
  returns [0, 1]
  user "opscode-pgsql"
  declared_type :execute
  cookbook_name "private-chef"
  recipe_name "bifrost_database"
end

I dont have any PERL mentioned here. What might be the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment