Skip to content

Machine Agent URL returns 403 #81

@spuder

Description

@spuder

The cookbook is not able to download from "https://packages.appdynamics.com/machine/4.1.3.1/MachineAgent-4.1.3.1.zip"

This is likely because the filename isn't MachineAgent-4.1.3.1.zip but rather machineagent-bundle-64bit-linux-4.3.7.1.zip

Net::HTTPServerException
           ------------------------
           403 "Forbidden"

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machine_agent.rb

            45: remote_file agent_zip do
            46:   source package_source
            47:   checksum agent['checksum']
            48:   backup false
            49:   mode '0444'
            50:   notifies :run, 'execute[unzip-appdynamics-machine-agent]', :immediately
            51: end
            52:

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/appdynamics/recipes/machine_agent.rb:45:in `from_file'

           remote_file("/tmp/kitchen/cache/AppDynamicsMachineAgent.zip") do
             provider Chef::Provider::RemoteFile
             action [:create]
             default_guard_interpreter :default
             source ["https://packages.appdynamics.com/machine/4.1.3.1/MachineAgent-4.1.3.1.zip"]
             use_etag true
             use_last_modified true
             declared_type :remote_file
             cookbook_name "appdynamics"
             recipe_name "machine_agent"
             checksum nil
             mode "0444"
             remote_domain nil
             remote_user nil
             path "/tmp/kitchen/cache/AppDynamicsMachineAgent.zip"
             owner nil
             group nil
             verifications []
           end

           System Info:
           ------------
           chef_version=13.6.4
           platform=ubuntu
           platform_version=16.04
           ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
           program_name=chef-client worker: ppid=2753;start=20:49:42;
           executable=/opt/chef/bin/chef-client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions