DEV Community

Discussion on: How to Deploy a Rails Application to AWS with Docker - Part 3

Collapse
 
siddhantmohan profile image
Siddhant

I followed tthis but somehow my task is getting automatically shutdown and restarted again and again, cloudfront logs are:

2020-07-13T01:54:35.600+05:30
yarn install v1.22.4

2020-07-13T01:54:35.917+05:30
[1/4] Resolving packages...

2020-07-13T01:54:37.333+05:30
success Already up-to-date.

2020-07-13T01:54:37.337+05:30
Done in 1.75s.

2020-07-13T01:54:38.325+05:30
yarn install v1.22.4

2020-07-13T01:54:38.628+05:30
[1/4] Resolving packages...

2020-07-13T01:54:40.119+05:30
[2/4] Fetching packages...

2020-07-13T01:54:42.023+05:30
info fsevents@2.1.3: The platform "linux" is incompatible with this module.

2020-07-13T01:54:42.023+05:30
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.

2020-07-13T01:54:42.025+05:30
info fsevents@1.2.13: The platform "linux" is incompatible with this module.

2020-07-13T01:54:42.025+05:30
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.

2020-07-13T01:54:42.085+05:30
[3/4] Linking dependencies...

2020-07-13T01:54:42.093+05:30
warning " > webpack-dev-server@3.11.0" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".

2020-07-13T01:54:42.093+05:30
warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".

2020-07-13T01:54:47.701+05:30
[4/4] Building fresh packages...

2020-07-13T01:54:47.730+05:30
Done in 9.41s.

2020-07-13T01:55:02.519+05:30
Everything's up-to-date. Nothing to do

2020-07-13T01:55:06.280+05:30
D, [2020-07-12T20:25:06.280705 #220] DEBUG -- : [1m[35m (1.0ms)[0m [1m[34mSELECT pg_try_advisory_lock(2903025111434932890)[0m

2020-07-13T01:55:06.300+05:30
D, [2020-07-12T20:25:06.300771 #220] DEBUG -- : [1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m

2020-07-13T01:55:06.311+05:30
D, [2020-07-12T20:25:06.311509 #220] DEBUG -- : [1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]

2020-07-13T01:55:06.318+05:30
D, [2020-07-12T20:25:06.318450 #220] DEBUG -- : [1m[35m (1.1ms)[0m [1m[34mSELECT pg_advisory_unlock(2903025111434932890)[0m

2020-07-13T01:55:06.336+05:30
database has been migrated!

2020-07-13T01:55:09.226+05:30
=> Booting Puma

2020-07-13T01:55:09.226+05:30
=> Rails 6.0.3.2 application starting in staging

2020-07-13T01:55:09.226+05:30
=> Run rails server --help for more startup options

2020-07-13T01:55:10.939+05:30
Puma starting in single mode...

2020-07-13T01:55:10.939+05:30

  • Version 4.3.5 (ruby 2.7.1-p83), codename: Mysterious Traveller

2020-07-13T01:55:10.939+05:30

  • Min threads: 5, max threads: 5

2020-07-13T01:55:10.939+05:30

  • Environment: staging

2020-07-13T01:55:10.939+05:30

  • Listening on tcp://0.0.0.0:8080

2020-07-13T01:55:10.939+05:30
Use Ctrl-C to stop

2020-07-13T01:55:17.332+05:30
I, [2020-07-12T20:25:17.329063 #224] INFO -- : [f033624b-8770-4112-8b05-bb7f3566e0b8] Started GET "/" for 172.31.12.192 at 2020-07-12 20:25:17 +0000

2020-07-13T01:55:17.332+05:30
I, [2020-07-12T20:25:17.330961 #224] INFO -- : [f033624b-8770-4112-8b05-bb7f3566e0b8] Processing by StaticsController#home as HTML

2020-07-13T01:55:17.337+05:30
I, [2020-07-12T20:25:17.337764 #224] INFO -- : [f033624b-8770-4112-8b05-bb7f3566e0b8] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:55:17.338+05:30
I, [2020-07-12T20:25:17.338120 #224] INFO -- : [f033624b-8770-4112-8b05-bb7f3566e0b8] Completed 302 Found in 7ms (Allocations: 536)

2020-07-13T01:55:17.356+05:30
I, [2020-07-12T20:25:17.356581 #224] INFO -- : [4bce0e2c-2eb9-4067-82ec-c8d46d2f6acb] Started GET "/" for 172.31.37.118 at 2020-07-12 20:25:17 +0000

2020-07-13T01:55:17.357+05:30
I, [2020-07-12T20:25:17.357318 #224] INFO -- : [4bce0e2c-2eb9-4067-82ec-c8d46d2f6acb] Processing by StaticsController#home as HTML

2020-07-13T01:55:17.358+05:30
I, [2020-07-12T20:25:17.358182 #224] INFO -- : [4bce0e2c-2eb9-4067-82ec-c8d46d2f6acb] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:55:17.358+05:30
I, [2020-07-12T20:25:17.358390 #224] INFO -- : [4bce0e2c-2eb9-4067-82ec-c8d46d2f6acb] Completed 302 Found in 1ms (Allocations: 371)

2020-07-13T01:55:47.358+05:30
I, [2020-07-12T20:25:47.358200 #224] INFO -- : [7d482232-6a1d-4d7f-b279-4a508d6c8798] Started GET "/" for 172.31.12.192 at 2020-07-12 20:25:47 +0000

2020-07-13T01:55:47.359+05:30
I, [2020-07-12T20:25:47.359128 #224] INFO -- : [7d482232-6a1d-4d7f-b279-4a508d6c8798] Processing by StaticsController#home as HTML

2020-07-13T01:55:47.360+05:30
I, [2020-07-12T20:25:47.360016 #224] INFO -- : [7d482232-6a1d-4d7f-b279-4a508d6c8798] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:55:47.360+05:30
I, [2020-07-12T20:25:47.360237 #224] INFO -- : [7d482232-6a1d-4d7f-b279-4a508d6c8798] Completed 302 Found in 1ms (Allocations: 371)

2020-07-13T01:55:47.386+05:30
I, [2020-07-12T20:25:47.386789 #224] INFO -- : [ad51aec8-ca24-4df3-9c4a-fe0b270f4a9c] Started GET "/" for 172.31.37.118 at 2020-07-12 20:25:47 +0000

2020-07-13T01:55:47.387+05:30
I, [2020-07-12T20:25:47.387553 #224] INFO -- : [ad51aec8-ca24-4df3-9c4a-fe0b270f4a9c] Processing by StaticsController#home as HTML

2020-07-13T01:55:47.388+05:30
I, [2020-07-12T20:25:47.388546 #224] INFO -- : [ad51aec8-ca24-4df3-9c4a-fe0b270f4a9c] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:55:47.388+05:30
I, [2020-07-12T20:25:47.388751 #224] INFO -- : [ad51aec8-ca24-4df3-9c4a-fe0b270f4a9c] Completed 302 Found in 1ms (Allocations: 371)

2020-07-13T01:55:47.557+05:30
D, [2020-07-12T20:25:47.557215 #224] DEBUG -- [Bugsnag]: Request to sessions.bugsnag.com completed, status: 202

2020-07-13T01:56:17.391+05:30
I, [2020-07-12T20:26:17.389284 #224] INFO -- : [fa10091b-ba10-40a7-bca8-c354367d6224] Started GET "/" for 172.31.12.192 at 2020-07-12 20:26:17 +0000

2020-07-13T01:56:17.391+05:30
I, [2020-07-12T20:26:17.389995 #224] INFO -- : [fa10091b-ba10-40a7-bca8-c354367d6224] Processing by StaticsController#home as HTML

2020-07-13T01:56:17.391+05:30
I, [2020-07-12T20:26:17.390748 #224] INFO -- : [fa10091b-ba10-40a7-bca8-c354367d6224] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:56:17.391+05:30
I, [2020-07-12T20:26:17.390890 #224] INFO -- : [fa10091b-ba10-40a7-bca8-c354367d6224] Completed 302 Found in 1ms (Allocations: 371)

2020-07-13T01:56:17.417+05:30
I, [2020-07-12T20:26:17.417779 #224] INFO -- : [77bd4b5c-21ad-4896-b1ff-3a50c4f1351d] Started GET "/" for 172.31.37.118 at 2020-07-12 20:26:17 +0000

2020-07-13T01:56:17.418+05:30
I, [2020-07-12T20:26:17.418630 #224] INFO -- : [77bd4b5c-21ad-4896-b1ff-3a50c4f1351d] Processing by StaticsController#home as HTML

2020-07-13T01:56:17.419+05:30
I, [2020-07-12T20:26:17.419514 #224] INFO -- : [77bd4b5c-21ad-4896-b1ff-3a50c4f1351d] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:56:17.419+05:30
I, [2020-07-12T20:26:17.419734 #224] INFO -- : [77bd4b5c-21ad-4896-b1ff-3a50c4f1351d] Completed 302 Found in 1ms (Allocations: 370)

2020-07-13T01:56:17.551+05:30
D, [2020-07-12T20:26:17.550908 #224] DEBUG -- [Bugsnag]: Request to sessions.bugsnag.com completed, status: 202

2020-07-13T01:56:47.396+05:30
I, [2020-07-12T20:26:47.396093 #224] INFO -- : [9668a89d-5422-4a72-a15a-9c4ef62f9b21] Started GET "/" for 172.31.12.192 at 2020-07-12 20:26:47 +0000

2020-07-13T01:56:47.397+05:30
I, [2020-07-12T20:26:47.397029 #224] INFO -- : [9668a89d-5422-4a72-a15a-9c4ef62f9b21] Processing by StaticsController#home as HTML

2020-07-13T01:56:47.397+05:30
I, [2020-07-12T20:26:47.397894 #224] INFO -- : [9668a89d-5422-4a72-a15a-9c4ef62f9b21] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:56:47.398+05:30
I, [2020-07-12T20:26:47.398179 #224] INFO -- : [9668a89d-5422-4a72-a15a-9c4ef62f9b21] Completed 302 Found in 1ms (Allocations: 370)

2020-07-13T01:56:47.445+05:30
I, [2020-07-12T20:26:47.445049 #224] INFO -- : [66f07b83-37e8-4d51-b7b7-bd5bc0ffb581] Started GET "/" for 172.31.37.118 at 2020-07-12 20:26:47 +0000

2020-07-13T01:56:47.446+05:30
I, [2020-07-12T20:26:47.445939 #224] INFO -- : [66f07b83-37e8-4d51-b7b7-bd5bc0ffb581] Processing by StaticsController#home as HTML

2020-07-13T01:56:47.446+05:30
I, [2020-07-12T20:26:47.446826 #224] INFO -- : [66f07b83-37e8-4d51-b7b7-bd5bc0ffb581] Redirected to 172.31.35.107:32811/users/sign_in

2020-07-13T01:56:47.447+05:30
I, [2020-07-12T20:26:47.447048 #224] INFO -- : [66f07b83-37e8-4d51-b7b7-bd5bc0ffb581] Completed 302 Found in 1ms (Allocations: 370)

2020-07-13T01:56:47.570+05:30
D, [2020-07-12T20:26:47.570039 #224] DEBUG -- [Bugsnag]: Request to sessions.bugsnag.com completed, status: 202

Collapse
 
farleyknight profile image
Farley Knight

Apologies Siddhant for the late reply. I can't quite tell what the problem is from these logs. Do you want to DM me on dev.to and maybe I can help you one-on-one? Let me know. Thanks!