Skip to content
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

amc_setup failure #39

Open
danhiris opened this issue May 31, 2018 · 4 comments
Open

amc_setup failure #39

danhiris opened this issue May 31, 2018 · 4 comments
Labels

Comments

@danhiris
Copy link

When it gets to the amc setup phase of the resource it tells me it can't find amc_setup in $mule_home/bin/

It does not look like that file is being created there.

          ================================================================================
         Error executing action `run` on resource 'execute[run amc setup for mule-esb]'
         ================================================================================
         
         Errno::ENOENT
         -------------
         No such file or directory - /app/mule/bin/amc_setup
         
         Resource Declaration:
         ---------------------
         # In /tmp/kitchen/cache/cookbooks/mule/resources/centos_6.rb
         
         226:     execute "run amc setup for #{new_resource.name}" do
         227:       user new_resource.user
         228:       group new_resource.group
         229:       cwd new_resource.home
         230:       live_stream true
         231:       command "#{new_resource.home}/bin/amc_setup -H #{new_resource.amc_setup} #{new_resource.name}"
         232:       not_if "[ -e #{new_resource.home}/.mule/.agent/keystore.jks ]"
         233:     end
         234:   end
         
         Compiled Resource:
         ------------------
         # Declared in /tmp/kitchen/cache/cookbooks/mule/resources/centos_6.rb:226:in `run_amc_setup'
         
         execute("run amc setup for mule-esb") do
    action [:run]
    default_guard_interpreter :execute
    command "/app/mule/bin/amc_setup -H <!redacted token!> mule-esb"
    backup 5
    declared_type :execute
    cookbook_name "usf_mulesoft"
    domain nil
    user "mule"
    group "mule"
    cwd "/app/mule"
    live_stream true
    not_if "[ -e /app/mule/.mule/.agent/keystore.jks ]"
         end
         
         System Info:
         ------------
         chef_version=14.1.12
         platform=redhat
         platform_version=6.8
         ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
         program_name=/opt/chef/bin/chef-client
         executable=/opt/chef/bin/chef-client
         
       
       ================================================================================
       Error executing action `create` on resource 'mule_centos_6[mule-esb]'
       ================================================================================
       
       Errno::ENOENT
       -------------
       execute[run amc setup for mule-esb] (/tmp/kitchen/cache/cookbooks/mule/resources/centos_6.rb line 226) had an error: Errno::ENOENT: No such file or directory - /app/mule/bin/amc_setup
@danhiris
Copy link
Author

danhiris commented Jun 4, 2018

looks like the cookbook doesn't pick up the necessary binaries as those are not public. I had to add that download to my wrapper cookbook.

@mmattice
Copy link
Contributor

Is this more information on #32 ?

@rhoegg
Copy link
Collaborator

rhoegg commented Jun 11, 2018

I think amc_setup comes from the runtime manager agent actually. See #31

@rhoegg rhoegg added the bug label Jun 11, 2018
@rhoegg
Copy link
Collaborator

rhoegg commented Jun 12, 2018

OK I just realized the amc_setup is bundled in the enterprise zip, and that @danhiris already noticed that. :) Should we possibly detect if a community zip is picked up, but we're installing enterprise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants