Skip to content

deploy: history update can fail if container starts slowly, makes superfluous header write #626

@chuck-sys

Description

@chuck-sys

Describe the bug
No such container error while executing inertia <webapp> up.

Below are the logs around the error.

:2019-10-15T03:04:44.288245314Z  ---> db3b423471db
R2019-10-15T03:04:44.288256356Z +Step 8/8 : CMD ["pipenv", "run", "launch"]
E2019-10-15T03:04:44.309796561Z  ---> Running in a3702fc38513
T2019-10-15T03:04:44.376285947Z -Removing intermediate container a3702fc38513
:2019-10-15T03:04:44.376301066Z  ---> 76dafa37d017
G2019-10-15T03:04:44.451185117Z  Successfully built 76dafa37d017
R2019-10-15T03:04:44.461362836Z +Successfully tagged rocket2_rocket2:latest
I2019-10-15T03:04:44.566736851Z container build (387456e0827) has stopped
82019-10-15T03:04:44.687517010Z rocket2 build successful
>2019-10-15T03:04:44.687535627Z Perparing rocket2 container...
92019-10-15T03:04:44.720801699Z rocket2 container created
62019-10-15T03:04:44.720817222Z Starting up rocket2...
�2019-10-15T03:04:45.036853677Z [error 500] failed to update container history following build: (failure fetching container metadata: Error: No such container: )
�2019-10-15T03:04:45.045902766Z 2019/10/15 03:04:45 http: superfluous response.WriteHeader call from github.com/go-chi/render.JSON (responder.go:104)
H2019-10-15T03:04:45.045977059Z [success 201] Project startup initiated!
S2019-10-15T03:04:46.695704835Z container rocket2_nginx_1 (4da9e6c7dac) has stopped
T2019-10-15T03:04:46.695721326Z container stoppage was unexpected, project is active
B2019-10-15T03:04:46.695988524Z Shutting down active containers...
>2019-10-15T03:04:46.701700951Z Stopping /rocket2_rocket2_1...
<2019-10-15T03:04:49.646784528Z Stopping /rocket2_nginx_1...
;2019-10-15T03:04:49.797845222Z Stopping /docker-compose...
S2019-10-15T03:04:50.017728273Z container rocket2_nginx_1 (4da9e6c7dac) has stopped
S2019-10-15T03:04:50.017743715Z container rocket2_nginx_1 (4da9e6c7dac) has stopped
U2019-10-15T03:04:50.017748600Z container rocket2_rocket2_1 (bb784f004e9) has stopped
S2019-10-15T03:04:50.017752936Z container rocket2_nginx_1 (4da9e6c7dac) has stopped
R2019-10-15T03:04:50.017757137Z container docker-compose (11079698074) has stopped

To Reproduce
Steps to reproduce the behavior:

  1. Check out https://github.com/ubclaunchpad/rocket2
  2. inertia init
  3. inertia remote add aws-ec2 and fill in your informations (.pem, username, ip address of AWS EC2 instance)
  4. inertia aws-ec2 init
  5. Set up keys and webhooks on Github's side
  6. inertia aws-ec2 up
  7. See error

Environment (please complete the following information):

  • Client OS: Linux 5.3.1-arch1-1-ARCH
  • VPS OS: AWS EC2 Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type - ami-08d489468314a58df
  • Project Details: https://github.com/ubclaunchpad/rocket2
  • Version: latest

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions