Skip to content
This repository was archived by the owner on Jun 20, 2025. It is now read-only.
This repository was archived by the owner on Jun 20, 2025. It is now read-only.

ERROR: execute[apt-get update] (aws_opsworks_ecs::setup_ubuntu line 10) had an error: Mixlib::ShellOut::ShellCommandFailed #433

Description

@fierman3

If you use Ubuntu instances in Opsworks layer integrated with AWS ECS cluster, setup cookbooks for 'aws_opsworks_ecs' do not finish successfully, because 'aws_opsworks_ecs' cookbook is setting as docker repository "https://apt.dockerproject.org/repo" in "/etc/apt/sources.list.d/docker.list". Looks like that 'https://apt.dockerproject.org/repo' is not supported anymore, so when cookbooks try to execute 'apt-get update' command fails:

================================================================================
Error executing action `run` on resource 'execute[apt-get update]'
================================================================================
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '100'
---- Begin output of apt-get update ----
STDOUT: Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:5 https://apt.dockerproject.org/repo ubuntu-xenial InRelease
Ign:6 https://apt.dockerproject.org/repo ubuntu-xenial Release
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Err:7 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
404  Not Found
Ign:8 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:9 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Reading package lists...
STDERR: W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
---- End output of apt-get update ----
Ran apt-get update returned 100
 
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_ecs/recipes/setup_ubuntu.rb
 
10: execute "apt-get update" do
11:   retries 3
12:   retry_delay 5
13: 
14:   action :nothing
15: end
16: 
 
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache.internal/cookbooks/aws_opsworks_ecs/recipes/setup_ubuntu.rb:10:in `from_file'
 
execute("apt-get update") do
action [:nothing]
retries 3
retry_delay 5
default_guard_interpreter :execute
command "apt-get update"
backup 5
returns 0
declared_type :execute
cookbook_name "aws_opsworks_ecs"
recipe_name "setup_ubuntu"
end
 
Platform:
---------
x86_64-linux
 
[2020-04-15T08:55:46+00:00] INFO: Running queued delayed notifications before re-raising exception
[2020-04-15T08:55:46+00:00] ERROR: Running exception handlers
[2020-04-15T08:55:46+00:00] ERROR: Exception handlers complete
[2020-04-15T08:55:46+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache.internal/chef-stacktrace.out
[2020-04-15T08:55:46+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-04-15T08:55:46+00:00] ERROR: execute[apt-get update] (aws_opsworks_ecs::setup_ubuntu line 10) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions